Skip to content

Commit 12de17e

Browse files
committed
fix config yaml; fix conflicts
2 parents db35425 + c2eaf56 commit 12de17e

17 files changed

Lines changed: 243 additions & 79 deletions

File tree

.circleci/config.yml

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ jobs:
4343
# Run st2 Integration tests
4444
integration:
4545
docker:
46-
- image: circleci/python:3.10
47-
- image: mongo:7.0
48-
- image: rabbitmq:3.13
46+
- image: cimg/python:3.10
47+
- image: mongo:8.2
48+
- image: rabbitmq:4.2
4949
working_directory: ~/st2
5050
steps:
5151
- checkout
@@ -80,9 +80,9 @@ jobs:
8080
# Run st2 Lint Checks
8181
lint:
8282
docker:
83-
- image: circleci/python:3.10
84-
- image: mongo:7.0
85-
- image: rabbitmq:3.13
83+
- image: cimg/python:3.10
84+
- image: mongo:8.2
85+
- image: rabbitmq:4.2
8686
working_directory: ~/st2
8787
steps:
8888
- checkout
@@ -108,13 +108,13 @@ jobs:
108108

109109
# Build & Test st2 packages
110110
packages:
111-
parallelism: 4
111+
parallelism: 2
112112
# 4CPUs & 8GB RAM CircleCI machine
113113
# sadly, it doesn't work with 'setup_remote_docker'
114114
resource_class: large
115115
docker:
116116
# The primary container is an instance of the first list image listed. Your build commands run in this container.
117-
- image: circleci/python:3.10
117+
- image: cimg/python:3.10
118118
working_directory: ~/st2
119119
environment:
120120
- DISTROS: "jammy el9"
@@ -152,14 +152,17 @@ jobs:
152152
docker --version
153153
docker compose version
154154
- run:
155-
name: Download st2-packages repository
155+
name: Clone and patch st2-packages repository
156156
command: |
157157
set -x
158-
PIP_VERSION=$(grep ^PIP_VERSION Makefile)
158+
PIP_VERSION=$(grep ^PIP_VERSION Makefile | grep -o '[0-9.]*$')
159+
echo "St2 makefile file pip version ${PIP_VERSION}"
159160
git clone ${ST2_PACKAGES_REPO} ~/st2-packages
160161
cd ~/st2-packages
161-
git checkout ${CIRCLE_BRANCH} || true
162-
sed -i -e "s/^PIP_VERSION .*$/${PIP_VERSION}/" packages/st2/debian/rules
162+
echo "Patch PIP version used by dh_virtualenv"
163+
sed -ri "s/^PIP_VERSION .*$/PIP_VERSION = ${PIP_VERSION}/" packages/st2/debian/rules
164+
echo "Patch PIP version used by rpm spec"
165+
sed -ri "s/install pip==[^[:space:]]+/install pip==${PIP_VERSION}/" rpmspec/package_venv.spec
163166
- run:
164167
name: Initialize packages Build Environment
165168
command: |
@@ -174,7 +177,7 @@ jobs:
174177
command: |
175178
set -x
176179
# Clean-up running containers
177-
.circle/docker-compose2.sh clean
180+
.circle/docker-compose.sh clean
178181
# Remove st2-packages-vol container
179182
docker rm -v --force st2-packages-vol || true
180183
# Clean-up any created volumes
@@ -193,19 +196,19 @@ jobs:
193196
docker cp . st2-packages-vol:${ST2_GITDIR}
194197
- run:
195198
name: Pull dependent Docker Images
196-
command: .circle/docker-compose2.sh pull ${DISTRO} || .circle/docker-compose2.sh pull ${DISTRO}
199+
command: .circle/docker-compose.sh pull ${DISTRO} || .circle/docker-compose.sh pull ${DISTRO}
197200
working_directory: ~/st2-packages
198201
- run:
199202
name: Build the ${DISTRO} Packages
200203
command: |
201-
.circle/docker-compose2.sh build ${DISTRO}
204+
.circle/docker-compose.sh build ${DISTRO}
202205
# Once build container finishes we can copy packages directly from it
203206
mkdir -p ~/st2/packages/${DISTRO}/log/
204207
docker cp st2-packages-vol:/root/build/. ~/st2/packages/${DISTRO}
205208
working_directory: ~/st2-packages
206209
- run:
207210
name: Test the Packages
208-
command: .circle/docker-compose2.sh test ${DISTRO}
211+
command: .circle/docker-compose.sh test ${DISTRO}
209212
working_directory: ~/st2-packages
210213
- run:
211214
when: always
@@ -227,7 +230,7 @@ jobs:
227230
command: |
228231
set -x
229232
# Clean-up running containers
230-
.circle/docker-compose2.sh clean
233+
.circle/docker-compose.sh clean
231234
# Remove st2-packages-vol container
232235
docker rm -v --force st2-packages-vol || true
233236
# Clean-up any created volumes
@@ -238,7 +241,7 @@ jobs:
238241
deploy:
239242
docker:
240243
# The primary container is an instance of the first list image listed. Your build commands run in this container.
241-
- image: circleci/ruby:2.7
244+
- image: cimg/ruby:2.7
242245
working_directory: /tmp/deploy
243246
environment:
244247
- DISTROS: "jammy el9"

CHANGELOG.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ Redis 8.6
1616

1717
Fixed
1818
~~~~~
19-
19+
* Fix ``TypeError`` when displaying help for actions whose parameters have no ``description`` key. #6375
20+
* Fix utf-8 encode before checking max size #6352
2021

2122
Changed
2223
~~~~~~~

0 commit comments

Comments
 (0)