From 232a270d45124259e54c031b6b23baa246fab9de Mon Sep 17 00:00:00 2001 From: Dan Callahan Date: Thu, 7 Apr 2022 11:02:34 +0100 Subject: [PATCH] Clarify a CI workflow step for Twisted trunk Signed-off-by: Dan Callahan --- .github/workflows/twisted_trunk.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/twisted_trunk.yml b/.github/workflows/twisted_trunk.yml index dbd43ff693..de44428b1c 100644 --- a/.github/workflows/twisted_trunk.yml +++ b/.github/workflows/twisted_trunk.yml @@ -59,10 +59,14 @@ jobs: steps: - uses: actions/checkout@v2 - name: Patch dependencies - run: >- - ln -s -T /venv /src/.venv && - .ci/patch_for_twisted_trunk.sh && - unlink /src/.venv + # Note: The script below runs poetry against a virtualenv in /src/.venv/ + # ...but the sytest-synapse container expects it to be in /venv/ + # So we temporarily symlink it, run poetry, then remove the link. + # Tidying up is important because `/src` is a mounted volume. + run: | + ln -s -T /venv /src/.venv + .ci/patch_for_twisted_trunk.sh + rm /src/.venv working-directory: /src - name: Run SyTest run: /bootstrap.sh synapse