Repository navigation
ci: Trunk Dynamic CI observes free-suite and macOS regressions, learning only (GST-1400) - #4012
Merged
Merged
Conversation
… learning only (GST-1400) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…veat (GST-1400 review) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
garrytan
force-pushed
the
garrytan/gst-1400-trunk-dynamic-ci-learning
branch
from
November 5, 2026 01:50
d5f428e to
7e2628b
Compare
…-check) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ocs cite the pinned source (GST-1400 voices) 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>
2 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.
What changed
Before,
free-tests.ymlhad no Trunk integration. After, a newtrunk-dynamic-cijob ("Trunk Dynamic CI (learning only)") runs Trunk's pinnedtrunk-io/dynamic-ciaction on every same-repository pull request. Trunk records whether it would have run or skippedfree-suiteandmacos-named-regressions, and why. Nothing reads those verdicts, so every job still runs.The first run at f948a10, job 126989004305, and the run at 9f107c0, job 126989903665, logged:
Why
Garry approved A1 on 2026-11-04: learn what Trunk Dynamic CI would skip on gstack's PR CI before turning any skipping on. The free suite costs about 95 machine-hours a day, and macos-named-regressions costs about $35 a day.
Blast radius
needsthe observer, noif:reads it, and it exports no outputs, so switching Trunk to enforcement in its dashboard still skips nothing. Every required check keeps its name and its result.free-testsaggregate, theci-reuse/free-testsprofile, ci-carry, pregate, evals.yml (the train gate), the main backstop, the release gate and windows-smoke are unchanged, and none of them read Trunk.gstack-ship-queue readycounts that check, so rerun it once, and if it fails again, delete the job.Security read (CI workflow change)
trunk-io/dynamic-ci@5bcddbf3615c2b032c21eed1b514c91164bda4a8(v0.1.7, also v1). It is the default-branch HEAD of the upstream repository, not a fork commit.test/workflow-action-pins.test.tscovers it.permissions: {}. The run log shows the GITHUB_TOKEN withMetadata: readonly. The job passesgithub-token: '', so the action makes no GitHub API call.TRUNK_API_TOKENsits in this one job's env. The job has no checkout and norunstep, so no pull request code executes beside the token. It only runs onpull_requestevents from this repository (head.repo.full_name == github.repository), so fork PRs never get it. Nopull_request_targetwas added.src/config.ts,src/api.ts,src/changed-files.tsandsrc/telemetry/index.ts):POST https://api.trunk.io/v2/dynamic-ci/generate-planwithAuthorization: Bearer TRUNK_API_TOKEN. The body holds the repo, head and base SHAs, branch, PR number, run id and attempt, triggering actor, event name, workflow path and the two job keys. It makes at most 3 attempts, each with a 30-second budget.telemetry.api.trunk.iois off (TRUNK_DISABLE_TELEMETRY: 'true').github-tokenis empty. No local git call does anything, because there is no checkout. Trunk fetches the diff through its own GitHub App.free-tests-workflow-wiring,ci-reuse-workflow-wiring,cso-distribution) now allow exactly one reference,secrets.TRUNK_API_TOKEN, in the observer. They are also stricter than before: they catch lowercase, bracket andtoJSON(secrets)forms. A new test pins the observer's whole shape.Review date
Review the learning data one week after merge (2026-11-12 if this merges on 2026-11-05).
docs/TESTING_INTERNALS.md§ Trunk Dynamic CI (learning only) lists what to look for: discount Trunk'srequired-checkvote, because thefree-testsaggregate needs both jobs, and leave out runs where reuse skipped the suite.Pre-Landing Review
REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=0 fixed=0 scope=frozen unbound=2 ledgers_read=5 fix_checks=2
The panel ran a specialist, the Red Team, the targeted gate reader, a native adversarial reader and an outside voice (openai/gpt-6.1-sol). It found 0 CRITICAL issues. It found 13 INFORMATIONAL or Low findings, all below the blocking floor:
windows-free-testssecret guard had become case-sensitive (targeted gate reader).toJSON(secrets)references.github-tokeninput exists at 5bcddbf.Gate edits:
.github/workflows/free-tests.ymladds thetrunk-dynamic-cijob.test/free-tests-workflow-wiring.test.ts,test/ci-reuse-workflow-wiring.test.tsandtest/cso-distribution.test.tsreplace "nosecrets." with an exact one-secret allowlist and add the observer-shape test. The cases these guards still fail on:runstep in the observercontinue-on-errorpull_request_targetDocumentation
Documentation: current. The audit covered
docs/(136 files), the changelog.d fragment and free-tests.yml, base 6bdafb2..a3d6a08.docs/TESTING_INTERNALS.mdgains a "Trunk Dynamic CI (learning only)" section.Approvals
Approved: yes (record r-5091fa61aa1d). The full approval record stays private: this repository is public or its visibility is unknown.