Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
python-version: '3.8.14'
services:
mongo:
image: mongo:4.4
image: mongo:7.0
ports:
- 27017:27017

Expand Down Expand Up @@ -288,7 +288,7 @@ jobs:
# nosetests_node_ index: 0
services:
mongo:
image: mongo:4.4
image: mongo:7.0
ports:
- 27017:27017
redis:
Expand Down Expand Up @@ -453,7 +453,7 @@ jobs:
python-version: '3.9.14'
services:
mongo:
image: mongo:4.4
image: mongo:7.0
ports:
- 27017:27017

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/microbenchmarks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
python-version: '3.9.14'
services:
mongo:
image: mongo:4.4
image: mongo:7.0
ports:
- 27017:27017

Expand Down
37 changes: 13 additions & 24 deletions .github/workflows/orquesta-integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
python-version: '3.9.14'
services:
mongo:
image: mongo:4.4
image: mongo:7.0
ports:
- 27017:27017

Expand All @@ -82,21 +82,18 @@ jobs:
- 5672:5672/tcp # AMQP standard port
- 15672:15672/tcp # Management: HTTP, CLI

# Used for the coordination backend for integration tests
# NOTE: To speed things up, we only start redis for integration tests
# where it's needed
# redis:
# # Docker Hub image
# image: redis
# # Set health checks to wait until redis has started
# options: >-
# --name "redis"
# --health-cmd "redis-cli ping"
# --health-interval 10s
# --health-timeout 5s
# --health-retries 5
# ports:
# - 6379:6379/tcp
redis:
# Docker Hub image
image: redis
# Set health checks to wait until redis has started
options: >-
--name "redis"
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379/tcp

env:
TASK: '${{ matrix.task }}'
Expand Down Expand Up @@ -147,11 +144,6 @@ jobs:
cp conf/st2.dev.conf "${ST2_CONF}" ; sed -i -e "s/stanley/${ST2_CI_USER}/" "${ST2_CONF}"

sudo -E ./scripts/ci/add-itest-user-key.sh
- name: Run Redis Service Container
timeout-minutes: 2
run: |
docker run --rm --detach -p 127.0.0.1:6379:6379/tcp --name redis redis:latest
until [ "$(docker inspect -f {{.State.Running}} redis)" == "true" ]; do sleep 0.1; done
- name: Permissions Workaround
run: |
echo "$ST2_CI_REPO_PATH"
Expand Down Expand Up @@ -194,9 +186,6 @@ jobs:
name: logs-py${{ matrix.python-version }}
path: logs.tar.gz
retention-days: 7
- name: Stop Redis Service Container
if: "${{ always() }}"
run: docker rm --force redis || true

slack-notification:
name: Slack notification for failed master builds
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:

services:
mongo:
image: mongo:4.4
image: mongo:7.0
ports:
- 27017:27017

Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ in development

Python 3.6 is no longer supported; Stackstorm requires at least Python 3.8.

Newer MongoDB versions are now supported. CI uses MongoDB 7.0.

Several st2.conf database options have been renamed or deprecated. Most of the options will continue to work using their old name.
However, if you use `[database].ssl_keyfile` and/or `[database].ssl_certfile`, you MUST migrate to `[database].tls_certificate_key_file`.
This new option expects the key and certificate in the same file. Use something like the following to create that file from your old files:
Expand Down Expand Up @@ -54,6 +56,9 @@ Changed
* Update mongoengine to 0.29 and pymongo to 4.6.3. The pymongo bump (from 3.x to 4.x) is a major update. #6252
Contributed by @cognifloyd

* Update CI from testing with mongo 4.4 to testing with MongoDB 7.0. #6246
Contributed by @guzzijones

Added
~~~~~
* Continue introducing `pants <https://www.pantsbuild.org/docs>`_ to improve DX (Developer Experience)
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ unit-tests: requirements .unit-tests
@echo "==================== tests ===================="
@echo
@echo "----- Dropping st2-test db -----"
@mongo st2-test --eval "db.dropDatabase();"
@mongosh st2-test --eval "db.dropDatabase();"
@failed=0; \
for component in $(COMPONENTS_TEST); do\
echo "==========================================================="; \
Expand All @@ -847,7 +847,7 @@ endif
@echo "==================== unit tests with coverage ===================="
@echo
@echo "----- Dropping st2-test db -----"
@mongo st2-test --eval "db.dropDatabase();"
@mongosh st2-test --eval "db.dropDatabase();"
failed=0; \
for component in $(COMPONENTS_TEST); do\
echo "==========================================================="; \
Expand Down Expand Up @@ -908,7 +908,7 @@ itests: requirements .itests
@echo "==================== integration tests ===================="
@echo
@echo "----- Dropping st2-test db -----"
@mongo st2-test --eval "db.dropDatabase();"
@mongosh st2-test --eval "db.dropDatabase();"
@failed=0; \
for component in $(COMPONENTS_TEST); do\
echo "==========================================================="; \
Expand All @@ -932,7 +932,7 @@ endif
@echo "================ integration tests with coverage ================"
@echo
@echo "----- Dropping st2-test db -----"
@mongo st2-test --eval "db.dropDatabase();"
@mongosh st2-test --eval "db.dropDatabase();"
@failed=0; \
for component in $(COMPONENTS_TEST); do\
echo "==========================================================="; \
Expand Down Expand Up @@ -1073,7 +1073,7 @@ runners-tests: requirements .runners-tests
@echo "==================== runners-tests ===================="
@echo
@echo "----- Dropping st2-test db -----"
@mongo st2-test --eval "db.dropDatabase();"
@mongosh st2-test --eval "db.dropDatabase();"
@failed=0; \
for component in $(COMPONENTS_RUNNERS); do\
echo "==========================================================="; \
Expand Down