Compare commits

...

5 Commits

Author SHA1 Message Date
Kegan Dougal
83d89a9235 Debug log level 2023-10-25 10:20:22 +01:00
Kegan Dougal
3050e32835 Try -p 1 2023-10-18 16:36:20 +01:00
Kegan Dougal
e989d040dc limit concurrency to 2 2023-10-18 16:03:14 +01:00
Kegan Dougal
b32b8a469a Changelog 2023-10-18 14:28:38 +01:00
Kegan Dougal
162225f4e1 complement: enable dirty runs 2023-10-18 14:27:09 +01:00
3 changed files with 7 additions and 2 deletions

View File

@@ -640,7 +640,7 @@ jobs:
- run: |
set -o pipefail
COMPLEMENT_DIR=`pwd`/complement synapse/scripts-dev/complement.sh -json 2>&1 | synapse/.ci/scripts/gotestfmt
COMPLEMENT_DIR=`pwd`/complement synapse/scripts-dev/complement.sh -json -p 1 2>&1 | synapse/.ci/scripts/gotestfmt
shell: bash
env:
POSTGRES: ${{ (matrix.database == 'Postgres') && 1 || '' }}

1
changelog.d/16518.misc Normal file
View File

@@ -0,0 +1 @@
Enable dirty runs on Complement CI, which is significantly faster.

View File

@@ -103,6 +103,7 @@ done
# enable buildkit for the docker builds
export DOCKER_BUILDKIT=1
export SYNAPSE_TEST_LOG_LEVEL=DEBUG # XXX REMOVE
# Determine whether to use the docker or podman container runtime.
if [ -n "$PODMAN" ]; then
@@ -219,6 +220,9 @@ test_packages="./tests/csapi ./tests ./tests/msc3874 ./tests/msc3890 ./tests/msc
# All environment variables starting with PASS_ will be shared.
# (The prefix is stripped off before reaching the container.)
export COMPLEMENT_SHARE_ENV_PREFIX=PASS_
# Enable dirty runs, so tests will reuse the same container where possible.
# This significantly speeds up tests, but increases the possibility of test pollution.
export COMPLEMENT_ENABLE_DIRTY_RUNS=1
# It takes longer than 10m to run the whole suite.
extra_test_args+=("-timeout=60m")
@@ -274,7 +278,7 @@ fi
export PASS_SYNAPSE_LOG_TESTING=1
# Run the tests!
echo "Images built; running complement"
echo "Images built; running complement with ${extra_test_args[@]} $@ $test_packages"
cd "$COMPLEMENT_DIR"
go test -v -tags "synapse_blacklist" -count=1 "${extra_test_args[@]}" "$@" $test_packages