Every flaky pass in Free Tests is now recorded in Trunk or the flaky-test log (GST-3303) (#4572)

Free Tests now records every test that failed and then passed on its
retry: dispatched runs upload their test results to Trunk, and the quick
tier keeps its flaky-test log.

Why: a retried flake must always leave a record. Of the 13 retried
flakes since Trunk uploads began (11-09), Trunk saw 11; one missing was
on a dispatched run, the other on a main push from before the uploader
reached main. The quick tier's flaky-test log was never uploaded at all.

Nothing to do: no check, test or retry rule changes.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
Garry Tanandcapy-ai[bot] authored and GitHub committed 2026-11-20 20:08:58 +00:00
1 parent 69e67e264d
commit 6a64c49213
4 files changed
+36 -8

No files matched your search

+9 -4
View File
@@ -1540,7 +1540,9 @@ from this file-level ledger.
The aggregate job of `free-tests.yml` downloads every `flake-ledger-*` artifact
of the run and appends `bun run scripts/test-health-report.ts flake-summary <dir>`
to its job summary. The Windows lane uploads `flake-ledger-windows-<shard>`.
to its job summary. The Windows lane uploads `flake-ledger-windows-<shard>`,
and the quick tier on the install-default Bun (`quick-bun-default`) uploads
`flake-ledger-quick`.
Free-suite flake rules:
@@ -1783,8 +1785,8 @@ skipping is a separate decision for Garry, made after that review.
Since GST-1859, every free-suite shard keeps bun's JUnit report from each of
its children, the flaky retry included (`--junit-dir`), and the
`trunk-flaky-tests` job uploads them, failures included, to the Trunk test
collection `7yDVXXE3` ("gstack free suite") on same-repository pull requests
and main pushes. Trunk flags a test as flaky when it fails and then passes on
collection `7yDVXXE3` ("gstack free suite") on same-repository pull requests,
main pushes and dispatch runs (dispatch runs joined in GST-3303). Trunk flags a test as flaky when it fails and then passes on
the same code, or keeps failing on main, and lists it under Flaky Tests at
app.trunk.io/garry-tan. That job is detection only: quarantine is off in the
uploader and in the collection, nothing skips a test, no job needs or reads it,
@@ -1792,7 +1794,10 @@ and an upload failure can't turn a check red. A child killed at its wall
timeout, or one that crashes, writes no report, so Trunk sees none of that
child's results, its passing files included. Such a child also skips the
flaky retry, so the flake ledger has no entry for it; the red shard result is
the only record. The uploader job is the only one that sees
the only record. The quick tier on the install-default Bun
(`quick-bun-default`) retries the same way and uploads its ledger as
`flake-ledger-quick`, but keeps no JUnit report, so its flaky passes reach the
ledger and not Trunk. The uploader job is the only one that sees
`TRUNK_ORG_API_TOKEN` (Trunk's v1 organization token, which the uploader
needs), and it checks out and runs nothing of the pull request's. The [flake
ledger](#flake-ledger), its one-rerun rule and the daily flaky pass are