Skip to content

ci(e2e): stop after ten failures or twenty minutes - #45

Merged
SteveGilvarry merged 1 commit into
ZoneMinder:mainfrom
SteveGilvarry:ci/e2e-fail-fast
Oct 30, 2026
Merged

SteveGilvarry merged 1 commit into
ZoneMinder:mainfrom
SteveGilvarry:ci/e2e-fail-fast

Conversation

@SteveGilvarry

Copy link
Copy Markdown
Member

Summary

The seeded e2e job had no fail-fast. With retries: 2 and two workers, a stack that is dead from the first test (a privacy dialog over every page, 2026-10-29, run 40950658970) sent 75 tests through three 60 s timeouts each and ran 42 minutes before being cancelled, with the diagnosis already in the first minute of the log.

In CI only, Playwright now stops after 10 failures and after 20 minutes. A healthy run of the step takes 4 to 6 minutes; no real regression so far has failed more than a handful of specs at once. Local runs are unchanged, so a developer still sees every failure.

Test plan

  • playwright test --list loads the config under CI=1
  • eslint on the config
  • CI on this PR: the seeded run finishes in its usual time

🤖 Generated with Claude Code

https://claude.ai/code/session_01QfVAntXNaj2MLj5tsw7YQ2

A dead stack used to cost the job its whole 90-minute budget. With
retries 2 and two workers, a modal over every page sent 75 tests
through three 60 s timeouts each; the run was 42 minutes in when it
was cancelled, and the log had said everything it was going to say
in the first minute.

Ten failures is more than any real regression has produced at once,
and a healthy seeded run takes 4-6 minutes, so twenty is a ceiling on
a run that is merely slow. Both apply in CI only; a local run keeps
going so a developer sees every failure.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QfVAntXNaj2MLj5tsw7YQ2
@SteveGilvarry
SteveGilvarry merged commit e32f69d into ZoneMinder:main Oct 30, 2026
6 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant