Skip to content

Commit

Permalink
Re-enable running Complement tests against Synapse with workers. (mat…
Browse files Browse the repository at this point in the history
  • Loading branch information
reivilibre authored and azmeuk committed Aug 8, 2022
1 parent 176693d commit 20a4dc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 24 deletions.
27 changes: 3 additions & 24 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -328,29 +328,8 @@ jobs:
- arrangement: monolith
database: Postgres

steps:
- name: Run actions/checkout@v2 for synapse
uses: actions/checkout@v2
with:
path: synapse

- name: Prepare Complement's Prerequisites
run: synapse/.ci/scripts/setup_complement_prerequisites.sh

- run: |
set -o pipefail
POSTGRES=${{ (matrix.database == 'Postgres') && 1 || '' }} WORKERS=${{ (matrix.arrangement == 'workers') && 1 || '' }} COMPLEMENT_DIR=`pwd`/complement synapse/scripts-dev/complement.sh -json 2>&1 | gotestfmt
shell: bash
name: Run Complement Tests
# XXX When complement with workers is stable, move this back into the standard
# "complement" matrix above.
#
# See https://github.com/matrix-org/synapse/issues/13161
complement-workers:
if: "${{ !failure() && !cancelled() }}"
needs: linting-done
runs-on: ubuntu-latest
- arrangement: workers
database: Postgres

steps:
- name: Run actions/checkout@v2 for synapse
Expand All @@ -363,7 +342,7 @@ jobs:

- run: |
set -o pipefail
POSTGRES=1 WORKERS=1 COMPLEMENT_DIR=`pwd`/complement synapse/scripts-dev/complement.sh -json 2>&1 | gotestfmt
POSTGRES=${{ (matrix.database == 'Postgres') && 1 || '' }} WORKERS=${{ (matrix.arrangement == 'workers') && 1 || '' }} COMPLEMENT_DIR=`pwd`/complement synapse/scripts-dev/complement.sh -json 2>&1 | gotestfmt
shell: bash
name: Run Complement Tests
Expand Down
1 change: 1 addition & 0 deletions changelog.d/13420.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Re-enable running Complement tests against Synapse with workers.

0 comments on commit 20a4dc9

Please sign in to comment.