ci(frontend): upload Playwright artifacts when E2E tests fail#7774
Conversation
E2E failures on the production deploy gate currently leave nothing to debug with - traces, screenshots and DOM snapshots die with the runner. Upload e2e/test-results and the Playwright report as a run artifact on failure. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 3 Skipped Deployments
|
Docker builds report
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7774 +/- ##
==========================================
+ Coverage 98.56% 98.57% +0.01%
==========================================
Files 1459 1460 +1
Lines 56134 57082 +948
==========================================
+ Hits 55327 56271 +944
- Misses 807 811 +4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
|
Visual Regression19 screenshots compared. See report for details. |
Thanks for submitting a PR! Please check the boxes below:
docs/if required so people know about the feature.Changes
When the E2E gate fails on the production deploy (or staging/ECS runs), the Playwright traces, screenshots and DOM snapshots die with the runner, so failures like the ones blocking today's deploy can only be debugged by reproducing locally.
This uploads
e2e/test-resultsand the Playwright report as a run artifact when the E2E step fails:github.run_attemptto avoid the immutable-name collision inupload-artifact@v4when a failed job is re-run.if: failure()), andif-no-files-found: ignorecovers failures before Playwright starts.How did you test this code?
Validated the action YAML parses. The step only runs on E2E failure in CI; the paths match Playwright's configured
outputDir(e2e/test-results) and report directory, verified against a local failing run.