From 315329f344fe22837444515526041fbfff7d0b2a Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Tue, 12 May 2026 01:35:33 +0530 Subject: [PATCH] chore: update E2E tests workflow to capture logs on cancellation and add shared volume for backend services --- .github/workflows/e2e-tests.yml | 4 ++-- docker/docker-compose.e2e.yml | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 2b7b6f1a7..d2338f092 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -130,7 +130,7 @@ jobs: # ─── Failure diagnostics ─────────────────────────────────────────── - name: Dump backend stack logs on failure - if: failure() + if: ${{ failure() || cancelled() }} run: | mkdir -p ./compose-logs docker compose -f docker/docker-compose.e2e.yml logs --no-color --timestamps \ @@ -160,7 +160,7 @@ jobs: retention-days: 14 - name: Upload backend stack logs - if: failure() + if: ${{ failure() || cancelled() }} uses: actions/upload-artifact@v7 with: name: backend-stack-logs diff --git a/docker/docker-compose.e2e.yml b/docker/docker-compose.e2e.yml index b34d8d82d..2d55595f7 100644 --- a/docker/docker-compose.e2e.yml +++ b/docker/docker-compose.e2e.yml @@ -109,6 +109,8 @@ services: environment: <<: *backend-env SERVICE_ROLE: api + volumes: + - shared_temp:/shared_tmp extra_hosts: - "host.docker.internal:host-gateway" ports: @@ -147,6 +149,8 @@ services: environment: <<: *backend-env SERVICE_ROLE: worker + volumes: + - shared_temp:/shared_tmp depends_on: backend: { condition: service_healthy } healthcheck: @@ -172,3 +176,6 @@ networks: # redis stay off this network entirely. ingress: driver: bridge + +volumes: + shared_temp: