summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2022-07-13 08:30:42 -0400
committerGitHub <noreply@github.com>2022-07-13 08:30:42 -0400
commit90e9b4fa1e51a271e3cf46d38efd5d93c0c99857 (patch)
tree1f69421f9d5334ba0fdc3b6a042bf857f2805fc3
parentFix "add user" admin api error when request contains a "msisdn" threepid (#13... (diff)
downloadsynapse-90e9b4fa1e51a271e3cf46d38efd5d93c0c99857.tar.xz
Do not fail build if complement with workers fails. (#13266)
Diffstat (limited to '')
-rw-r--r--.github/workflows/tests.yml27
-rw-r--r--changelog.d/13266.misc1
2 files changed, 25 insertions, 3 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 4bc29c8207..c8b033e8a4 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -328,9 +328,6 @@ jobs:
           - arrangement: monolith
             database: Postgres
 
-          - arrangement: workers
-            database: Postgres
-
     steps:
       - name: Run actions/checkout@v2 for synapse
         uses: actions/checkout@v2
@@ -346,6 +343,30 @@ jobs:
         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
+
+    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=1 WORKERS=1 COMPLEMENT_DIR=`pwd`/complement synapse/scripts-dev/complement.sh -json 2>&1 | gotestfmt
+        shell: bash
+        name: Run Complement Tests
+
   # a job which marks all the other jobs as complete, thus allowing PRs to be merged.
   tests-done:
     if: ${{ always() }}
diff --git a/changelog.d/13266.misc b/changelog.d/13266.misc
new file mode 100644
index 0000000000..d583acb81b
--- /dev/null
+++ b/changelog.d/13266.misc
@@ -0,0 +1 @@
+Do not fail build if complement with workers fails.