From d65ef848eb14f6e0c69e2a9614776a814d330244 Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Tue, 17 Mar 2026 10:51:53 -0500 Subject: [PATCH] Fix `Build and push complement image` CI job not having Poetry for `complement.sh` (#19578) :x: `Build and push complement image`, https://github.com/element-hq/synapse/actions/runs/23176317296/job/67339146082 ``` scripts-dev/complement.sh: line 227: poetry: command not found ``` Follow-up to https://github.com/element-hq/synapse/pull/19523 This regressed in https://github.com/element-hq/synapse/pull/19476 ### Testing strategy 1. Visit https://github.com/element-hq/synapse/actions/workflows/push_complement_image.yml 1. **Run workflow**: - **Use workflow from:** `madlittlemods/fix-complement-push-image-ci-job-poetry` - **Branch:** `develop` 1. Wait for CI to run and pass :white_check_mark: --- .github/workflows/push_complement_image.yml | 4 ++++ changelog.d/19578.bugfix | 1 + 2 files changed, 5 insertions(+) create mode 100644 changelog.d/19578.bugfix diff --git a/.github/workflows/push_complement_image.yml b/.github/workflows/push_complement_image.yml index 7793172e55..12599457dc 100644 --- a/.github/workflows/push_complement_image.yml +++ b/.github/workflows/push_complement_image.yml @@ -47,6 +47,10 @@ jobs: if: github.event_name == 'push' with: ref: master + # We use `poetry` in `complement.sh` + - uses: matrix-org/setup-python-poetry@5bbf6603c5c930615ec8a29f1b5d7d258d905aa4 # v2.0.0 + with: + poetry-version: "2.2.1" - name: Login to registry uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0 with: diff --git a/changelog.d/19578.bugfix b/changelog.d/19578.bugfix new file mode 100644 index 0000000000..dbaf4be7e8 --- /dev/null +++ b/changelog.d/19578.bugfix @@ -0,0 +1 @@ +Fix `Build and push complement image` CI job not having `poetry` available for the Complement runner script.