Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Disable 'faster room join' Complement tests when testing against Syna…
Browse files Browse the repository at this point in the history
…pse with workers. (#12842)
  • Loading branch information
reivilibre committed May 23, 2022
1 parent 67aae05 commit 7a68203
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/12842.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Disable 'faster room join' Complement tests when testing against Synapse with workers.
9 changes: 8 additions & 1 deletion scripts-dev/complement.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ docker build -t matrixdotorg/synapse -f "docker/Dockerfile" .

extra_test_args=()

test_tags="synapse_blacklist,msc2716,msc3030"

# If we're using workers, modify the docker files slightly.
if [[ -n "$WORKERS" ]]; then
# Build the workers docker image (from the base Synapse image).
Expand All @@ -65,6 +67,10 @@ if [[ -n "$WORKERS" ]]; then
else
export COMPLEMENT_BASE_IMAGE=complement-synapse
COMPLEMENT_DOCKERFILE=Dockerfile

# We only test faster room joins on monoliths, because they are purposefully
# being developed without worker support to start with.
test_tags="$test_tags,faster_joins"
fi

# Build the Complement image from the Synapse image we just built.
Expand All @@ -73,4 +79,5 @@ docker build -t $COMPLEMENT_BASE_IMAGE -f "docker/complement/$COMPLEMENT_DOCKERF
# Run the tests!
echo "Images built; running complement"
cd "$COMPLEMENT_DIR"
go test -v -tags synapse_blacklist,msc2716,msc3030,faster_joins -count=1 "${extra_test_args[@]}" "$@" ./tests/...

go test -v -tags $test_tags -count=1 "${extra_test_args[@]}" "$@" ./tests/...

0 comments on commit 7a68203

Please sign in to comment.