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

Commit 90e9b4f

Browse files
authored
Do not fail build if complement with workers fails. (#13266)
1 parent 0312ff4 commit 90e9b4f

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

.github/workflows/tests.yml

+24-3
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,6 @@ jobs:
328328
- arrangement: monolith
329329
database: Postgres
330330

331-
- arrangement: workers
332-
database: Postgres
333-
334331
steps:
335332
- name: Run actions/checkout@v2 for synapse
336333
uses: actions/checkout@v2
@@ -346,6 +343,30 @@ jobs:
346343
shell: bash
347344
name: Run Complement Tests
348345
346+
# XXX When complement with workers is stable, move this back into the standard
347+
# "complement" matrix above.
348+
#
349+
# See https://github.com/matrix-org/synapse/issues/13161
350+
complement-workers:
351+
if: "${{ !failure() && !cancelled() }}"
352+
needs: linting-done
353+
runs-on: ubuntu-latest
354+
355+
steps:
356+
- name: Run actions/checkout@v2 for synapse
357+
uses: actions/checkout@v2
358+
with:
359+
path: synapse
360+
361+
- name: Prepare Complement's Prerequisites
362+
run: synapse/.ci/scripts/setup_complement_prerequisites.sh
363+
364+
- run: |
365+
set -o pipefail
366+
POSTGRES=1 WORKERS=1 COMPLEMENT_DIR=`pwd`/complement synapse/scripts-dev/complement.sh -json 2>&1 | gotestfmt
367+
shell: bash
368+
name: Run Complement Tests
369+
349370
# a job which marks all the other jobs as complete, thus allowing PRs to be merged.
350371
tests-done:
351372
if: ${{ always() }}

changelog.d/13266.misc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Do not fail build if complement with workers fails.

0 commit comments

Comments
 (0)