Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/incidents/xe_test_fix_from_evidence.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# xe. `xe_test_fix_from_evidence`

**What happened:** Runs that fixed a team's failing end-to-end tests guessed. Most fix pull requests were opened on a cause the run itself called inferred and not reproduced, and several only added messages for the next failure. Waits went into page objects for causes outside the test. A test failing every run was filed as flaky, and runs the sandbox's network refused were counted as the test failing. One failure got a run per test and another weeks later, a merged fix whose test failed again was never looked at, and every proof was twenty runs whatever the test's failure rate.

**The guarantee:** A fix follows the evidence (`common::e2e::fix_evidence`). No code change without a reproduction: a repeat run failing, or a kept report with the exact error and its trace, screenshot or page; runs that never reached the page don't count. One class from a closed set (app bug, test bug, test data or environment, timing race, CI infrastructure, third party), which must fit the evidence, decides where the fix goes: an app bug in the app and never in the test, infrastructure and third parties to quarantine with an owner, reason, ticket and expiry. A sleep, a raised timeout, retries, a loosened assertion, a skip or a broadened selector is refused unless a quoted trace line justifies it, and a sleep never is. The description names the cause, the class, the trace lines, why the change fixes it and the pass rates. The repeat count follows the measured failure rate, on the head and the target that failed. A sibling failure joins the open run, and a failure after the merge reopens the same run.
Loading