From a0258e91d5d7932e1ebec01c75b94534e31b13d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Goinvic?= Date: Thu, 26 Mar 2026 12:41:26 +0100 Subject: [PATCH] Run ESS tests in CI --- .github/workflows/tests.yml | 25 +++++++++++++++++++++++++ .gitignore | 3 +++ changelog.d/19608.misc.md | 1 + 3 files changed, 29 insertions(+) create mode 100644 changelog.d/19608.misc.md diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c3dd8b14e5..fed443fc93 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -808,6 +808,31 @@ jobs: # custom `.ci/complement_package.gotpl` template to render the output. run: cat /tmp/gotest-in-repo-complement.log | gotestfmt -hide "successful-downloads,successful-tests,empty-packages" + ess: + if: "${{ !failure() && !cancelled() && needs.changes.outputs.integration == 'true' }}" + needs: + - linting-done + - changes + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + + - name: Install ESS test dependencies + uses: element-hq/setup-ess-cluster-action@release/v2 + + - name: Build Synapse docker image to local registry + run: | + docker build -t localhost:5000/synapse:ci -f ./docker/Dockerfile . + docker push localhost:5000/synapse:ci + + - name: Build Additional values file + run: | + yq eval -n '.synapse.image.registry = "localhost:5000" | .synapse.image.repository = "synapse" | .synapse.image.tag = "ci"' > ci-values.yml + + - name: Run ESS tests + run: pytest-ess --pull-chart --chart-version 26.3.0 --test-suite "synapse" --additional-test-values-file ci-values.yml -- -vv + cargo-test: if: ${{ needs.changes.outputs.rust == 'true' }} runs-on: ubuntu-latest diff --git a/.gitignore b/.gitignore index e333f2320b..9831d3c219 100644 --- a/.gitignore +++ b/.gitignore @@ -79,3 +79,6 @@ book/ # Don't include users' poetry configs /poetry.toml + +# ess +/charts diff --git a/changelog.d/19608.misc.md b/changelog.d/19608.misc.md new file mode 100644 index 0000000000..36dbf6ae7a --- /dev/null +++ b/changelog.d/19608.misc.md @@ -0,0 +1 @@ +CI: Run ESS tests against Synapse current changes.