Repository navigation
Report free-suite results to Trunk Flaky Tests for detection only (GST-1859) - #4187
Merged
capy-ai[bot] merged 4 commits intoNov 9, 2026
Merged
Conversation
…T-1859) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
Review-Finding: p1/red-team#2 reader=red-team Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ct what the docs say about timed-out children Review-Finding: p11/outside-voice#1 reader=outside-voice Review-Finding: p1fc/fix-check#1 reader=fix-check Review-Finding: p1fc/fix-check#2 reader=fix-check Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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 sends every free-suite shard's test results to Trunk Flaky Tests, so Trunk can flag tests that fail and then pass on the same code. It is detection only: nothing is quarantined or skipped, and no check depends on it.
What changed
scripts/test-free-shards.tstakes--junit-dir <dir>(only with--ci-run). The runner already asked bun for a JUnit report in each child's sandbox to count tests; with the flag it also keeps a copy of each child's report, the flaky retry included, one uniquely named file per child. A failed copy is logged and changes no verdict. Shard selection, tiers, retries, timeouts and counts are unchanged.free-suitepasses the flag and uploads the XML asfree-junit-<shard>(if: always(), 7-day retention). It still sees no secrets.trunk-flaky-testsjob downloads those artifacts and runstrunk-io/analytics-uploaderpinned toa86313c7029d22e6ea2d5c346060a224d90053dc(tag v2.1.6), CLI pinned to 0.16.2, into Trunk collection7yDVXXE3for orggarry-tan.Why
Garry chose B1 on GST-1859: try Trunk Flaky Tests (free up to 5 committers) instead of building our own flaky-test tool (GST-82). Trunk Dynamic CI stays in learning mode, unchanged.
Blast radius
TRUNK_ORG_API_TOKENsecret (Trunk's v1 organization token; the existingTRUNK_API_TOKENis a v2 API key, which the uploader can't use). It checks out nothing and runs no pull-request code, haspermissions: {}, and runs only on same-repository pull requests and main pushes.use-cacheis off, so the CLI always comes from Trunk's checksummed release, never from an Actions cache a pull-request job could write. Nopull_request_target.trunk-flaky-tests, the step and the job continue on error, and a missing token skips both steps. The requiredfree-testsaggregate is unchanged. Quarantine is off in the uploader and in the collection.Approvals
Garry, 2026-11-09: "do it" to FOUN-32's status, taking B1 on GST-1859 (detection only).
Plan: exempt: no autoplan round per brief (Garry "do it" B1 on GST-1859, detection only; plan reports/GSTA-427-plan.md)
Agent notes
Review-loop exception: accepted by GStack Minder (Captain) 2026-11-09 via Captain grant a-e1534b10e90a: one scoped fix-check after the review-loop stop at 9ccadc4; review_loop_grant 9ccadc4 (fix-check at 919a508, 0 findings)
Documentation
Documentation: current. Scope: AGENTS.md, CLAUDE.md, CONTRIBUTING.md, README.md and docs/ (read-only release audit, base e077053..ecd0f51); changelog fragment and docs/TESTING_INTERNALS.md rechecked at stage 2.2 against plan items 1, 3 and 4.
GSTA-427. Credentials: the org token was read in Garry's signed-in Trunk session and set with
gh secret setwithout being printed. No key was rotated. The test collection was created through Trunk's v2 API.Refs p1/red-team#2
Refs p11/outside-voice#1
Refs p1fc/fix-check#1
Refs p1fc/fix-check#2
Agent notes