Skip to content

CI/E2E: Upload website and backend container logs on failures#1232

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/ci-e2e-download-container-logs
Draft

CI/E2E: Upload website and backend container logs on failures#1232
Copilot wants to merge 2 commits into
mainfrom
copilot/ci-e2e-download-container-logs

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 29, 2026

Summary

E2E failures could hide runtime errors occurring inside containers; this adds direct access to website and backend logs from failed CI runs. The workflow now captures those container logs and publishes them as a downloadable artifact only on failure.

  • Failure-only log capture
    • Add a CI step gated by failure() && !cancelled() to collect docker compose logs for website and backend.
  • Downloadable diagnostics artifact
    • Upload /tmp/container-logs/ as container-logs (30-day retention), alongside the existing Playwright report.
  • Scope
    • No changes to test execution paths; only post-failure observability in .github/workflows/e2e.yml.
- name: Collect website/backend container logs
  if: ${{ failure() && !cancelled() }}
  run: |
    mkdir -p /tmp/container-logs
    docker compose -f ../docker-compose.yml logs --no-color website > /tmp/container-logs/website.log || true
    docker compose -f ../docker-compose.yml logs --no-color backend > /tmp/container-logs/backend.log || true

Screenshot

N/A (CI workflow-only change)

PR Checklist

  • All necessary documentation has been adapted.
  • The implemented feature is covered by an appropriate test.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dashboards Ready Ready Preview, Comment May 29, 2026 8:32am

Request Review

Copilot AI changed the title [WIP] Add functionality to download container logs for test runs CI/E2E: Upload website and backend container logs on failures May 29, 2026
Copilot AI requested a review from fengelniederhammer May 29, 2026 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI/E2E: Download container logs for test runs

2 participants