Skip to content

Upload Playwright artifacts only when e2e tests fail - #992

Merged
Goosetaf merged 1 commit into
mainfrom
ci/playwright-artifacts-on-failure
Oct 28, 2026
Merged

Goosetaf merged 1 commit into
mainfrom
ci/playwright-artifacts-on-failure

Conversation

@Portals

@Portals Portals commented Oct 28, 2026

Copy link
Copy Markdown
Member

Summary

  • Upload the Playwright HTML report only when the e2e job fails (previously on every non-cancelled run). The raw e2e/test-results/ upload already ran only on failure.
  • Switch Playwright to screenshot: only-on-failure, video: retain-on-failure and trace: retain-on-failure, so the artifacts hold only the failing tests instead of every test's recordings.

Notes

  • With CI retries (2), the failing attempts' traces and videos are still kept, including for flaky tests that pass on retry. Because the job is green in that case, nothing gets uploaded.

🤖 Generated with Claude Code

Upload the HTML report only on failure and keep screenshots, videos
and traces only for failing tests, so artifacts contain just what is
needed to debug a red run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Portals
Portals requested a review from Goosetaf as a code owner October 28, 2026 12:06
@Goosetaf
Goosetaf merged commit a3d14b6 into main Oct 28, 2026
2 checks passed
@Goosetaf
Goosetaf deleted the ci/playwright-artifacts-on-failure branch October 28, 2026 13:31
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.

2 participants