Repository navigation
Every flaky pass in Free Tests is now recorded in Trunk or the flaky-test log (GST-3303) - #4572
Merged
Merged
Conversation
…test log (GST-3303) Dispatched Free Tests runs now upload their JUnit to Trunk, and the quick tier uploads its flaky-test log as flake-ledger-quick. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
…edgers (GST-3303) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
3 tasks done
Merged
capy-ai Bot
added a commit
that referenced
this pull request
Nov 20, 2026
- Two /ship approval records stop needing workarounds. (#4549) - For contributors: the paid auto-decide check counts a start step that ran while the skill loaded. (#4543) - The destructive-command check closes three ways past its disk-wipe and force-push blocks. (#4534) - A green CI run still counts when the repository's artifact storage is full. (#4536) - `/cso` now audits repositories that track symlinks. (#4567) - A doc-sync eval stops failing when the audit child drops one field from its result line. (#4555) - The browse daemon no longer picks port 10080, which Chromium refuses to open. (#4554) - Opted-in telemetry now says why a skill run ended, which coding agent and model family ran it, and whether an upgrade worked. (#4542) - A preregistration with only its write-up and plain data now gets the write-up review: one reviewer, one round. (#4544) - When owner rulings don't clear a stopped review, `gstack-review-read` now says which findings are left. (#4553) - The prompt-routing hook now names your installed bug-fix skill on bug reports, alone, and never puts /verify ahead of it. (#4539) - Owner rulings now close a stopped review whose findings were logged in a findings file. (#4568) - /ship can finish after the owner accepts a stopped review's findings as open notes. (#4552) - /ship no longer starts the full test suite on your machine when CI's earlier run can't be reused (GST-3277). (#4565) - The prompt-routing hook no longer acts on words inside backticks. (#4566) - In Claude Code, a gstack skill's start step now runs when the skill loads, so the model can't skip it. (#4509) - gstack's telemetry backend only accepts writes through its own validated endpoint, and the community dashboard now counts real use. (#4537) - gstack now says what it's adding before it adds a background job or a browser extension. (#4538) - For contributors: every flaky pass in Free Tests is now recorded. (#4572) - For contributors: Free Tests on pull requests starts its test shards one round of small jobs sooner. (#4570) - Secret values written as `name=value` at the end of a path are now hidden. (#4571) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Merged
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
What changed
Dispatched Free Tests runs now upload to Trunk, and the quick tier keeps its flaky-test log.
Before/after as text: Dispatched Free Tests runs now upload to Trunk, and the quick tier keeps its flaky-test log
trunk-flaky-testsalso runs onworkflow_dispatch. Only someone with write access can dispatch, and the job still checks out and runs nothing from the branch, and is the only job that sees the token.quick-bun-defaultuploads its flaky-test log asflake-ledger-quick(always, ignored when empty, kept 90 days), so the run's flaky-pass summary andtest:healthcount it. It keeps no JUnit report, so its retries reach that log, not Trunk. docs/TESTING_INTERNALS.md says so in its sections on Trunk and the flaky-test log.Why
A test that fails and then passes on its retry is green but not fixed, so it has to leave a record somewhere. A dispatched run on test/spawn-sync.test.ts (run 44494151996) left none in Trunk, and every flaky pass in the quick tier was thrown away. Now both are kept.
Blast radius
Only the Trunk upload job's trigger and one new upload step in the quick tier change. The upload job is fail-open at step and job level (
continue-on-error: true), nothing needs it, and it haspermissions: {}. A dispatch run already needs write access and runs that branch's own workflow file, so it gives nobody a new way to reach the token (free-tests.yml:899-930 read). Every reader offlake-ledger-*matches on the name prefix (scripts/lib/ci-history.ts:345, lib/factory-scorecard.ts:340), and the run summary reads aflake-ledger-quickfolder correctly (script ran).How the gap was found
Every
flake-ledger-*log since 11-09 03:25Z (13 entries) was matched to its test in Trunk collection 7yDVXXE3 and to that run's test runs. 11 show a failure and a success in the same run, and Trunk's Pass on Retry monitor flagged them. Run 44494151996 (dispatch, test/spawn-sync.test.ts) has no Trunk runs, because the uploader skipped dispatch events. Run 42560717406 (main push, 11-09 04:14Z) predates the uploader on main.Pre-Landing Review
Pre-Landing Review: 1 issues — 0 auto-fixed, 1 asked (0 fixed, 1 skipped), 0 deferred, 0 noted.
Four readers checked the final change: a batched specialist (testing, security, state machines) found nothing, and a second-model review found nothing. Two notes stay open, neither blocking:
free_runner,free_shardsorfree_jobsset) now upload to Trunk too, which can add timing noise to a detection-only collection. Noted for a follow-up that narrows the condition to dispatches with empty sizing inputs.Exploratory QA
Smoke check:
flake-summaryover a folder holding aflake-ledger-quicklog beside a shard log lists both files, the quick one under shardquick(pass). No plan checks: this is a bug fix with no plan file.Scope Drift
Scope Check: CLEAN. The four changed files, plus the docs audit's one clause, match the stated fix.
Plan Completion
No plan file: bug fixes need no plan review.
Verification Results
No plan obligations. Smoke check: 1 PASS, 0 FAIL, 0 BLOCKED, 0 NOT RUN.
TODOS
No TODO items completed in this PR.
Tests
Agent notes
Refs GST-3303 (follow-up on audit change 6: the retry stays under R9).
Approvals
No approvals recorded for branch ci/trunk-flaky-dispatch.
Plan: exempt: bug fix, no plan review needed (R4)
Plan check: exempt bug fix
REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=2 fixed=0 scope=frozen dispatches=2 est_input_tokens=5651
Gate edits: none detected (3 listed, 2 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Documentation
Status: updated. One factual fix in docs/TESTING_INTERNALS.md, no blockers.
Scope: base a529769 to head 10d9d5a on ci/trunk-flaky-dispatch, committed changes only (4 files: .github/workflows/free-tests.yml, changelog.d/ci-flaky-passes-always-recorded.md, docs/TESTING_INTERNALS.md, test/free-tests-workflow-wiring.test.ts). Nothing was staged, unstaged or untracked. Docs that mention the flake ledger or Trunk were checked against the workflow.
Documentation health:
flake-ledger-quickartifact next to the per-shard and Windows ledgers. The Trunk section already covered dispatch runs and the quick tier.Coverage debt: No new public commands, flags or settings. The CI behavior change (Trunk upload on workflow_dispatch, plus the quick-tier ledger artifact) is described in docs/TESTING_INTERNALS.md. No gaps.
Diagram drift: None. No diagrams reference these jobs.