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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ Changes land on `main` through PRs, and the kit's tests in `test/` must pass. Ru
- `--shard i/n`: the i-th of n shards (n from 1 to 8), balanced by the running Node major's weights in `test/timings.json`.
- `--repeat n`: run every chosen file n times; a failure on any run fails the run.

`test/flaky.json` lists the known flaky files, at most 20, each with the evidence it is a flake, what is known of its cause, and the last day it counts. A listed file that fails runs once more after the others; if that passes, the run passes and prints `FLAKY: <file> …` (on GitHub also as a warning). Nothing else is ever retried, a file that fails twice fails the run, and `--repeat` retries nothing. Fixing a listed file's cause takes it off the list.
`test/flaky.json` lists the known flaky files, at most 20, each with the evidence it is a flake (the runs where it failed, then passed on the same commit), what is known of its cause and who owns its fix, the last day it counts (at most 31 days ahead: renew it with fresh evidence, or fix it), and optionally `tests`, the tests in it known to flake, each by its path (its parents' names and its own, joined by ` > `). An entry whose reason or cause still starts with `TODO` counts for nothing. A listed file that fails runs once more after the others; if that passes, the run passes and prints `FLAKY: <file> …` (on GitHub also as a warning and in the job's step summary). With `tests`, only a failure of those tests is retried that way. An unlisted file that fails is retried once too, when at most 3 unlisted files failed: passing then, it is a flake, but the run still fails, and prints `NOT LISTED FLAKY: <file> …` with the ready-made entry to add (this run, job and commit as its evidence, the failing tests, 14 days; fill in the cause and the fix's owner). When no test failed (a crash, a timeout, a hook) it prints no entry and says why: an entry without `tests` would pass any failure of the file. A file that fails twice always fails the run, and `--repeat` retries nothing. Fixing a listed file's cause takes it off the list.

A release is a `vX.Y.Z` tag on `main` with a GitHub Release whose notes have three sections, because projects' supervisors read them to decide what to fold in:

Expand Down
12 changes: 11 additions & 1 deletion test/flaky.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"about": "Known flaky test files: test/run.mjs retries each once when it fails, prints FLAKY when the retry passes, and retries nothing else. At most 20. Each entry: reason (the evidence it is a flake: the same commit went green on a rerun), cause (what is known, and what is not), until (the last day it counts; past it the file is not retried, so fix it or renew it with fresh evidence). Counts are flaky CI jobs: 'fresh' is 77 jobs that failed and went green on a rerun of the same commit in 200 test.yml runs, 2026-12-01 to 12-03; 'older' is 800 runs before that (research/devteam-speed-ideation raw/ci/all.tsv).",
"about": "Known flaky test files: test/run.mjs retries each once when it fails, prints FLAKY when the retry passes; an unlisted file that fails is retried too, but fails the run either way and prints the entry it would need (NOT LISTED FLAKY). At most 20. Each entry: reason (the evidence it is a flake: the same commit went green on a rerun, by run id), cause (what is known, what is not, and the ticket or PR that owns the fix), until (the last day it counts, at most 31 days ahead; past it the file is not retried, so fix it or renew it with fresh evidence), and optionally tests (the tests known to flake, each by its path: its parents' names and its own joined by ' > '; only a failure of those is retried). A reason or cause starting with TODO is refused. Counts are flaky CI jobs: 'fresh' is 77 jobs that failed and went green on a rerun of the same commit in 200 test.yml runs, 2026-12-01 to 12-03; 'older' is 800 runs before that (research/devteam-speed-ideation raw/ci/all.tsv).",
"files": {
"test/dashboard-inbox-panel.controls.test.mjs": {
"reason": "kit-1214's two waits in 'every control from the panel': 3 failures in 5 bounded loops of this file on one loaded machine (kit-1130), each started under load 20 with the load rising to 31-61 mid-run: test:1255 'closed: the page, the panel on Inbox' twice, test:1249 'the review's close' once; CI shows this file's older shapes as 25 of 77 fresh flaky jobs, 23 older failures",
Expand Down Expand Up @@ -60,6 +60,16 @@
"reason": "1 of 77 fresh flaky jobs, 7 older",
"cause": "'artifact notes on main go to the responder while it can take them' and the drawing case: a wait on the responder session. Not found",
"until": "2027-01-03"
},
"test/dashboard-inbox-panel.views.test.mjs": {
"reason": "failed and went green on a rerun of the same commit twice on 2026-12-05: run 47464377468 attempt 1, job 'kit (22, chrome 1/5)', a 30 s wait for the Inbox panel timed out (PR #997 head 42347592, no dashboard change); run 47519526820 attempt 1, job 'kit (24, chrome 1/5)', the panel wait at 900px timed out (PR #978 head 456aefba, no dashboard change); main's own run of that shard passed",
"cause": "not yet known: the same kind of fixed-time panel wait under a loaded runner as its sibling dashboard-inbox-panel.controls (kit-1214, kit-1130); no ticket owns it yet, devteam-dev is told to file one",
"until": "2027-01-04"
},
"test/gateway-grant.test.mjs": {
"reason": "failed and went green on a rerun of the same commit on 2026-12-05: run 47516355250 attempt 1, job 'kit (18, rest 8/8)', the file hit its 120 s watchdog (its timing is 3.4 s) on Node 18 only, passing on Node 20, 22 and 24 in the same run (PR #982 head 6effc7a6, no gateway change)",
"cause": "not yet known: a hang seen on Node 18 only, under a loaded runner; no ticket owns it yet, devteam-dev is told to file one (Node 18 may leave CI, which would retire this entry)",
"until": "2027-01-04"
}
}
}
Loading
Loading