Skip to content

ci: prune the build-core, typecheck and pack-smoke Turbo seeds before saving them - #27067

Merged
os-zhuang merged 3 commits into
mainfrom
claude/issue-26957-prune-turbo-seeds
Oct 28, 2026
Merged

os-zhuang merged 3 commits into
mainfrom
claude/issue-26957-prune-turbo-seeds

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #26957
Part of #25452 (step 2 of its directive, rewritten by ruling 6458731814 to "prune, not drop"; step 3, the pool reading after at least 5 merges, stays open there)

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:把剩下四处 per-sha Turbo 种子(Build Core、Type Check · workspace、两个 pack-smoke 作业)的保存步骤接到现成的 prune-turbo-cache.mjs 后面,种子只留本次运行用到的任务条目;不删种子、不加脚本、不加门禁、不抬池子上限。
  • 为什么改:裁决 6458731814 选 A「修剪,不删」;[Decision] Pull-request CI runs get no Turbo remote-cache token at all 13 sites, so every PR build is cold: grant a read path, or keep PRs on the Actions-cache seed alone #26070 → A 后这些种子是 PR 构建唯一的缓存,但整份保存会把旧种子一路累积进去,挤爆 10 GB 缓存池。
  • 风险与回滚:只动 .github/workflows/ 的四个文件;最坏情况是某次 push 不保存种子(无运行摘要即 save=false),下一个 PR 退回上一份种子;回滚 = revert 本 PR。
  • 先看:.github/workflows/lint.yml(typecheck 两条 turbo 命令加 --summarize,否则修剪会丢掉 typecheck 条目);.github/workflows/publish-smoke.yml(actions/cache 拆成 restore + save,保存门槛与原 post-step 一致);.github/workflows/ci.yml Build Core 尾部。
  • 两分钟验证:node scripts/ci/prune-turbo-cache.mjs --self-test,预期最后一行 prune-turbo-cache self-test: OK (25 case(s) across 5 batteries).
  • 需要你做的:作为 GOVERNED_APPROVERS 审批(或亲手合并)这个 Tier H draft PR。

What changes

Ruling 6458731814, verbatim from #26957: "Letter A, prune, do not drop: the Build Core, Type Check · workspace and pack-smoke per-sha seeds stay, and each seed-save step is wired behind scripts/ci/prune-turbo-cache.mjs --site … exactly as Test Core, Build UI Deps, Type Check UI and Lint UI are today, so a seed holds only the task entries its own run used." and "⛔ The pool limit is not raised here" stands.

Every save site of the three seed families, derived from the YAML at origin/main cb8988ee14 (each actions/cache* step whose key resolves to turbo-build-core-, turbo-typecheck- or turbo-pack-smoke-):

Site (job) File Saves when (unchanged) Turbo run had --summarize? Change
Build Core (build-core) ci.yml always() && push yes (pnpm build --summarize, summary left in .turbo/runs/) prune step --site 'Build Core'; save ANDs save == 'true'
Type Check · workspace (typecheck-workspace), the one designated typecheck writer lint.yml always() && push build yes; turbo run typecheck NO --summarize added to both turbo run typecheck lines; prune step --site 'Type Check · workspace'; save ANDs save == 'true'
Packed-tarball smoke, release candidate (pack-smoke) publish-smoke.yml every run it runs on (workflow_run after Release, workflow_dispatch), job green, exact key missed (the actions/cache post-step) NO (pnpm run build) --summarize added; actions/cache split into actions/cache/restore + actions/cache/save behind the prune, same gate: success() && cache-hit != 'true' && save == 'true'
Packed-tarball smoke, opt-in (pack-smoke) pack-smoke-optin.yml pull_request with needs:pack-smoke, job green, exact key missed NO same as the row above

Restore-only sites, untouched: ci.yml ui-published-artifacts; lint.yml typecheck-source-gates, typecheck-debt, typecheck-consumers; test-nightly-tiers.yml tiers (L186 is a restore, not a save, so no wiring is owed there). The pack-smoke seed is keyed ${{ runner.os }}-turbo-${{ github.job }}-${{ github.sha }}, which is why a grep for the literal turbo-pack-smoke finds nothing.

Wiring notes:

  • --summarize does not enter a task hash (ci.yml Build Core's ASSERTED paragraph: 83 of 83 identical with and without, turbo 2.11.5), and none of the four TURBO_* remote-cache lines is added anywhere, so the PINS in that comment still hold.
  • The pack-smoke save keeps continue-on-error: true and keeps the post-step's semantics: a failed actions/cache post-step never failed the job, and an explicit save step without the flag could have.
  • The two pack-smoke prune steps also carry cache-hit != 'true', so an exact-key hit, which the post-step never saved, does not touch the restored cache either.
  • No --site list is pinned anywhere: git grep -n "prune-turbo-cache" -- scripts packages .github hits only the script itself and ci.yml (its CI-filter path and its --self-test in Build Core), and the script's self-test uses the fixture site name only.

Tests

  • node scripts/ci/prune-turbo-cache.mjs --self-test (script unchanged): prune-turbo-cache self-test: OK (25 case(s) across 5 batteries)., exit 0.
  • End-to-end on a real turbo run, private --cache-dir so the shared cache was untouched: a planted stale entry deadbeef plus pnpm exec turbo run typecheck --filter=@objectstack/sdui-parser --summarize, then the exact prune command of the lint.yml site. Output: kept 1 task entry named by 1 run summary / dropped 3 file(s) the run did not use, save=true; what is left is the typecheck task's three files only. That shows the --summarize this PR adds is what keeps the typecheck entries.
  • pnpm run build --summarize --dry=json echoes turbo run build --filter=!@objectstack/docs --filter=!./ui*/apps/site --summarize --dry=json, so pnpm forwards the flag to turbo in the two pack-smoke jobs.
  • YAML parsed with PyYAML; every changed step rendered (if:, key, command):
Rendered steps
ci.yml build-core | Prune the Turbo cache to this run's tasks (main only) | id=prune-turbo-cache | if="always() && github.event_name == 'push'" | --site 'Build Core'
ci.yml build-core | Save Turbo cache (main only) | if="always() && github.event_name == 'push' && steps.prune-turbo-cache.outputs.save == 'true'" | key=${{ runner.os }}-turbo-${{ github.job }}-${{ github.ref_name }}-${{ github.sha }}
lint.yml typecheck-workspace | Type check workspace packages | 'pnpm exec turbo run typecheck "${UNIVERSE[@]}" --summarize', 'pnpm exec turbo run typecheck "${FILTERS[@]}" --summarize'
lint.yml typecheck-workspace | Prune the Turbo cache to this run's tasks (main only) | id=prune-turbo-cache | if="always() && github.event_name == 'push'" | --site 'Type Check · workspace'
lint.yml typecheck-workspace | Save Turbo cache (main only) | if="always() && github.event_name == 'push' && steps.prune-turbo-cache.outputs.save == 'true'" | key=${{ runner.os }}-turbo-typecheck-${{ github.ref_name }}-${{ github.sha }}
publish-smoke.yml pack-smoke | Setup turbo cache | uses=actions/cache/restore@v6 | id=turbo-cache | key=${{ runner.os }}-turbo-${{ github.job }}-${{ github.sha }}
publish-smoke.yml pack-smoke | Build | pnpm run build --summarize
publish-smoke.yml pack-smoke | Prune the Turbo cache to this run's tasks | id=prune-turbo-cache | if="success() && steps.turbo-cache.outputs.cache-hit != 'true'" | --site 'Packed-tarball smoke (release candidate)'
publish-smoke.yml pack-smoke | Save turbo cache | if="success() && steps.turbo-cache.outputs.cache-hit != 'true' && steps.prune-turbo-cache.outputs.save == 'true'" | key=${{ runner.os }}-turbo-${{ github.job }}-${{ github.sha }}
pack-smoke-optin.yml pack-smoke | Setup turbo cache | uses=actions/cache/restore@v6 | id=turbo-cache | key=${{ runner.os }}-turbo-${{ github.job }}-${{ github.sha }}
pack-smoke-optin.yml pack-smoke | Build | pnpm run build --summarize
pack-smoke-optin.yml pack-smoke | Prune the Turbo cache to this run's tasks | id=prune-turbo-cache | if="success() && steps.turbo-cache.outputs.cache-hit != 'true'" | --site 'Packed-tarball smoke (opt-in)'
pack-smoke-optin.yml pack-smoke | Save turbo cache | if="success() && steps.turbo-cache.outputs.cache-hit != 'true' && steps.prune-turbo-cache.outputs.save == 'true'" | key=${{ runner.os }}-turbo-${{ github.job }}-${{ github.sha }}

Acceptance notes

  • Post-prune seed size: NOT MEASURED: seed size, reason: only a push run on main saves these seeds, so the first reading is the first push run after this lands. Read the prune-turbo-cache: Build Core: … and prune-turbo-cache: Type Check · workspace: … lines (kept N task entries … / dropped N file(s) the run did not use: X MB -> Y MB on disk.) in that run's Build Core and Type Check · workspace logs. The pack-smoke lines (prune-turbo-cache: Packed-tarball smoke (…): …) appear on the next Release-triggered Publish Smoke run, or on a PR carrying needs:pack-smoke. The MB-scale figure on the card is an extrapolation from Test Core, not a measurement.
  • Pool reading (ci: Turbo seeds vs the 10 GB Actions cache pool — measure the pool, then shrink or retire the per-sha seeds #25452 step 3) is not this PR's: it needs at least 5 merges and actions/cache/* read access.
  • Seen, not changed: both pack-smoke restores keep their bare ${{ runner.os }}-turbo- restore-key fallback, which can restore any Turbo seed family. Wiring only; noted, not filed.

Verification

Derived gates (node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack), run on 56f9bbce with each exit code captured before any pipe; reconciled on b782ee2d (the merge of origin/main 3230bdbf, which touches no workflow; the derived list is byte-identical on both):

dispatch-gates --ran
Run reconciliation — 56 derived, 52 run, 4 NOT-MEASURED, 0 UNRUN.
  NOT-MEASURED · DERIVED (4) — your record carries exit 3 for these
    - pnpm check:dts-closure   [recorded exit 3 — PREREQUISITE NOT MET]
    - pnpm check:dual-build-cjs-loads   [recorded exit 3 — PREREQUISITE NOT MET]
    - pnpm check:lean-entry-closure   [recorded exit 3 — PREREQUISITE NOT MET]
    - pnpm check:sourcemap-no-sources-content   [recorded exit 3 — PREREQUISITE NOT MET]
✓ dispatch-gates --ran: 56 derived famil(ies) accounted for — 52 run, 4 NOT-MEASURED (4 DERIVED from a recorded exit 3).

The four NOT-MEASURED gates read a built dist/; this diff changes nothing they read. CI runs them in Build Core. pnpm check:pm-dispatch-gates exited 0 (1935 cases pass in the fast tier). Every other derived family exited 0, among them check:self-test-wired, check:self-test-workflow-commands, check:ci-filter-parity, check:workflow-status-functions, check:workflow-step-name-quoting, check:step-collectors, check:shard-attestation and check:required-contexts.

Governed surface: .github/workflows/**, Tier H. This lands only through a GOVERNED_APPROVERS approval or the maintainer's hand.


Generated by Claude Code

… saving them

Wires scripts/ci/prune-turbo-cache.mjs in front of the four remaining
per-sha Turbo seed saves (Build Core, Type Check · workspace and the two
pack-smoke jobs), as Test Core, Build UI Deps, Type Check UI and Lint UI
already are, so each seed keeps only the task entries its own run used.
The typecheck and pack-smoke turbo runs gain --summarize, which the prune
reads; the pack-smoke jobs split actions/cache into restore + save so the
save can sit behind the prune, keeping the post-step's gate.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYooUn7D13pPguPf727
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: b782ee2d5564616edfbbc21934189d591401cd9c
Local-runs: none
Scope: .github/workflows/ci.yml, .github/workflows/lint.yml, .github/workflows/pack-smoke-optin.yml, .github/workflows/publish-smoke.yml + scripts/ci/prune-turbo-cache.mjs, scripts/ci/assert-turbo-remote-cache.mjs, package.json (root build script), scripts/publish-smoke.sh, .github/workflows/test-nightly-tiers.yml, .github/workflows/os-create-smoke.yml, .github/workflows/release.yml, .github/actions/setup-workspace/action.yml, ui/scripts/tests/turbo-cache-save-bound.test.ts, scripts/check-workflow-status-functions.mjs, scripts/pm/check-expected-skips.mjs

Inputs read: card #26957 body and all 5 comments (ruling 6458731814 letter A; claim 6459608872; os-dev-report 6460037369), PR #27067 body and file list, the net diff origin/main...origin/claude/issue-26957-prune-turbo-seeds (4 files, +90/-8), and the 58 check-runs on the head (47 success, 11 skipped, 0 failure). Rendered by a contract-review subagent at CONTRACT_REVIEW_TIER, adopted by devx seat 2.

① Derived judgments

  • Face and tier — right. Every changed path is under .github/workflows/**, a Tier H governed path (AGENTS.md Prime Directive 14), so the review face is rules and the tier CONTRACT_REVIEW_TIER; Governed Surface Queue Guard is success on the head. The PR is a draft and lands only by a GOVERNED_APPROVERS approval or the maintainer's hand, which the PR body states.
  • Save-site derivation — right, and complete. Every actions/cache@ / actions/cache/save@ step in .github/ on the head was enumerated with its key (14 saves). The three ruled families save at exactly four sites: ci.yml L3016 (turbo-build-core-REF-SHA, push only), lint.yml L5639 (turbo-typecheck-REF-SHA, push only), publish-smoke.yml L262 and pack-smoke-optin.yml L167 (both jobs are pack-smoke, so github.job resolves to the turbo-pack-smoke-SHA family the card's pool reading names). The two remaining combined actions/cache@v6 turbo saves belong to other families (os-create-smoke.yml L95, job create-scaffold-smoke; release.yml L1810, job publish) and are outside ruling 6458731814. setup-workspace saves the pnpm store only. The sites the claim listed as candidates (lint.yml L4840/L5699/L5901, ci.yml L4522 ui-published-artifacts, test-nightly-tiers.yml L183) are actions/cache/restore@v6 steps: restore-only, nothing owed. The dev's "four, not the seat's list" is the tree's answer.
  • Prune precondition at every site — right. The prune reads .turbo/runs/. Build Core: pnpm build --summarize and an assertion call without --move-summary-to (the script moves a summary only under that flag, assert-turbo-remote-cache.mjs L247), so the summary stays. Type Check · workspace: the build step already carried --summarize without a move; the two turbo run typecheck lines gain it. pack-smoke: pnpm run build --summarize forwards to the root script turbo run build --filter=!@objectstack/docs --filter=!./ui*/apps/site. At no site does a turbo run follow the summarized one (Build Core's later steps are node scripts and pnpm check:*; scripts/publish-smoke.sh runs pnpm pack, scaffold installs and the app's own build, never turbo at the repo root), so nothing the seed's consumers read is dropped.
  • Accept-set change — right. Push-only sites keep always() && github.event_name == 'push'; the save is additionally gated on save == 'true'. A cancelled or never-finished build leaves no summary, save=false, and the previous seed stays newest — on main today such a run saved whatever was on disk. No seed is dropped, no script or gate is added, no --site list is pinned, the pool limit is untouched. The four TURBO_* remote-cache lines are not added anywhere, so Build Core's PINS paragraph still holds.
  • Gate verdicts — green. All 47 completed check-runs are success; the 11 skips are label-, event- or path-gated jobs (Packed-tarball smoke (opt-in), 18.x upgrade harness, Dogfood/Temporal push-only lanes, UI Published Artifacts). Lint · CI, release & engine gates (workflow status-function and step-collector gates), Check Changeset, PR-body guards and Test UI (which carries turbo-cache-save-bound.test.ts, scoped to the five ui jobs) are success. Consequence: the new push-only saves and the pack-smoke split were not executed by any run on this head; ④ carries that.

② Semver level

Nothing publishes: the diff is four workflow files, no package source, no changeset. The skip-changeset label is the correct spelling for a diff that publishes nothing from any released package, and Check Changeset is success. The PR body carries Clause-②: no and Metadata-protocol: none, matching claim 6459608872 and ruling 6458731814. Right.

③ Boundary flags

Three open_questions in os-dev-report 6460037369, each answered from the tree:

  1. pack-smoke split into actions/cache/restore + actions/cache/save — A, as shipped; still wiring. A combined actions/cache saves from a runner-generated post step that no workflow key can condition on a later step's output, so the split is the only way to put the save behind the prune. The gate is the post-step's own: it saved on a green job (post-if: success()) whose exact key missed, and the new if is success() && steps.turbo-cache.outputs.cache-hit != 'true' && steps.prune-turbo-cache.outputs.save == 'true', with continue-on-error: true keeping a failed upload non-fatal. The repo already states a main-phase actions/cache/save as its preferred shape (ci.yml, "Cache bookkeeping in the ui jobs"), and Build UI Deps / Type Check UI / Lint UI carry exactly this step pair. No new mechanism.
  2. Type Check · workspace prunes against both summaries; a typecheck that dies before its summary leaves build entries only — A, as shipped. The typecheck step is continue-on-error: true, so a red typecheck still reaches the prune, and turbo writes the run summary on task failure (it records the exit code); only a cancelled job loses it, and then the next push re-seeds the family. On push the *) arm selects the WHOLE universe (./packages/*, ./packages/*/*, ./apps/*), so the kept typecheck hashes are the current hash of every universe package — exactly what a PR's turbo-typecheck-main- restore needs. B would move the build summary aside: a mechanism, not wiring.
  3. --summarize on the typecheck lines for every event — A, as shipped. A summary does not enter a task hash (typecheck inputs exclude .turbo/**; Build Core's ASSERTED paragraph measured 83 of 83 identical), no later step of the lane reads .turbo/runs/ (the assertion reads the summary path from the build's --log-file, before the typecheck), and the cost is one JSON file. A push-only conditional would add shell branching for nothing.

Other dev flags:

④ Design judgment

Judged against the ruling's scenario: a seed that holds only the task entries its own run used, every PR still restoring a warm seed, no seed dropped, wiring only.

.github/workflows/ci.yml (Build Core) — holds. Tried to break it four ways. (i) Summary moved before the prune: no, the Build Core assertion carries no --move-summary-to. (ii) A turbo run after the summarized build whose entries the prune would drop: none (node scripts, pnpm check:*, pnpm --filter @objectstack/spec analyze, an artifact upload). (iii) Consumers of this seed via fallback restore-keys (temporal-conformance, dogfood-verify, ui-deps, type-check-ui, lint-ui, ui-published-artifacts, test-nightly-tiers) need build entries only, and a full pnpm build summary names every build task, cache hits included. (iv) Failure paths: a failed build still writes a summary (the seed then holds what ran, as always() saved before); a cancelled build writes none and the previous seed stays newest, which is strictly better than the whole-directory save on main. No finding.

.github/workflows/lint.yml (Type Check · workspace) — holds. The designated single writer keeps its key and its always() && push gate; the two --summarize additions are the exact precondition the prune needs and are placed before exit 0 on the WHOLE arm. The three sibling lanes restore turbo-typecheck- first and run the same 70-node build filter, so a pruned seed serves them as before. Nuance read and dismissed: typecheck-debt / typecheck-consumers also run turbo run build --filter='./packages/*' --filter='./packages/*/*'; nested-package entries were never in the typecheck lineage except by stale inheritance from a build-core fallback, so nothing warm is lost. No finding.

.github/workflows/publish-smoke.yml and .github/workflows/pack-smoke-optin.yml (pack-smoke) — hold, two should-fix. The restore keeps key and restore-keys byte-for-byte; id: turbo-cache and id: prune-turbo-cache are unique in both jobs; cache-hit != 'true' is robust to 'false' and to an empty output; the if: lines name success() explicitly, which check:workflow-status-functions requires and which passed; check-expected-skips pins only the job's if: and name, both unchanged. In publish-smoke.yml the "Report verdict" step stays before the bookkeeping, so a prune or save problem can never flip the status already written to the release PR head. The prune step carries no continue-on-error, matching every precedent site; the script exits 0 on every run-time path and 3 only on malformed arguments, which the first run would surface. Findings:

  • should-fix (S1): the two new actions/cache/save@v6 steps carry no timeout-minutes. The repository's own rule for main-phase saves (ci.yml "Cache bookkeeping in the ui jobs", and the saves at Build UI Deps, Type Check UI, Lint UI) bounds them at 5 minutes so a stalled upload cannot run the job into its 45-minute ceiling and turn a recorded verdict into cancelled — for the opt-in job, that is the PR's check. Not a regression (the combined post-step was unboundable), so should-fix: add timeout-minutes: 5 to both saves.
  • should-fix (S2): the restore → prune → save split is unexercised on this head: Packed-tarball smoke (opt-in) is skipped (no needs:pack-smoke label), and Publish Smoke runs only after a Release. The YAML-reading gates passed, but no run has executed the new step pair. One labelled run of this PR before it lands is the cheap end-to-end proof; otherwise the first release-triggered Publish Smoke is.

Must-fix: none.

Implemented-by: claude/issue-26957-prune-turbo-seeds
Reviewed-by: session_01QSeKYmTYfaPbLQD4BJfomW

VERDICT: PASS


Generated by Claude Code

Matches the main-phase saves in ci.yml's ui jobs, so a stalled upload
cannot run the job into its ceiling after its verdict is recorded.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYooUn7D13pPguPf727
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: f9c09548f786900fd1b19ff65cb087c61893e661
Local-runs: none
Scope: .github/workflows/ci.yml, .github/workflows/lint.yml, .github/workflows/pack-smoke-optin.yml, .github/workflows/publish-smoke.yml + scripts/check-stall-guard-budget.mjs, ui/scripts/tests/turbo-cache-save-bound.test.ts, .github/workflows/pr-automation.yml

Delta review on the head that follows b782ee2d (record 6461442429, PASS with two should-fix). Inputs: card #26957 body and all 5 comments (unchanged since the first record), PR #27067 body and file list (unchanged body; labels now carry needs:pack-smoke and size/m), the net diff against origin/main (still the same four workflow files, now +92/-8), the one new commit f9c09548f7 ("ci: bound the pack-smoke Turbo seed saves at 5 minutes"), and the 54 check-runs on the head as they stood when this was rendered. Rendered by a contract-review subagent at CONTRACT_REVIEW_TIER, adopted by devx seat 2.

① Derived judgments

  • The delta is exactly two lines, verified against the tree, not the seat's reading. git diff b782ee2d f9c09548f7 adds timeout-minutes: 5 to the Save turbo cache step in publish-smoke.yml (now L263) and in pack-smoke-optin.yml (now L168), both directly under uses: actions/cache/save@v6 and above the existing continue-on-error: true. No other file, step, key, if: or command moved. The first record's ① judgments (face and tier, the four save sites, the prune precondition at every site, the accept-set change, skip-changeset) stand unchanged on this head.
  • The attribute is the repository's own shape. ci.yml's main-phase saves at Build UI Deps, Type Check UI and Lint UI carry timeout-minutes: 5 + continue-on-error: true on an actions/cache/save@v6 step under the "Cache bookkeeping in the ui jobs" rule; the pack-smoke saves now match it. The 45-minute job ceiling on both pack-smoke jobs is nine times the bound, above the rule's "at least twice its bound".
  • Gates that read this attribute — right. check-stall-guard-budget.mjs judges only steps wrapped in run-with-stall-guard.mjs (a step's own timeout-minutes is read there as the guard's ceiling), and neither pack-smoke save is guard-wrapped, so the gate has nothing to say. turbo-cache-save-bound.test.ts pins the five ui jobs of ci.yml only. check-expected-skips pins the pack-smoke job's if: and name, both untouched. size/s → size/m is pr-automation.yml's line-count label, nothing pins it.
  • Check-runs on the head — not terminal when rendered. 54 check-runs: 17 success, 11 skipped, 26 in progress, 0 failure. Terminal and success: Build Core, Governed Surface Queue Guard, PR-body guards, filter, Plan Test Core shards, Build UI Deps, Auto Label, Check PR Size, the first Check Changeset. In progress: the Lint & Type Check lanes (Lint · CI, release & engine gates among them, the lane that carries the workflow-reading gates), Test Core (1/8), the Test UI shards, Type Check UI, Lint UI, Build & E2E UI, Build Docs, and Packed-tarball smoke (opt-in) on the labelled run 40638841420 (the earlier unlabelled event's instance is skipped, as expected). This record was not held for them; the seat reads their conclusions when they land.

② Semver level

Unchanged: nothing publishes, skip-changeset stays right, Clause-②: no and Metadata-protocol: none on the PR body still match the claim and ruling 6458731814. The first Check Changeset on this head is success; the second instance is the label-event skip.

③ Boundary flags

④ Design judgment

.github/workflows/publish-smoke.yml and .github/workflows/pack-smoke-optin.yml — hold. Tried to break the bound two ways. (i) A bound that cuts a healthy save: the ui turbo seeds measured 1 to 19 s over 22 saves under the same 5-minute bound (ci.yml's rule text), and a pruned pack-smoke seed is the build closure alone, the Build Core scale (tens of MB), so five minutes is an order of magnitude of headroom; a cut save is non-fatal (continue-on-error: true) and costs the next run a cold seed only. (ii) A bound that changes the verdict path: the step sits after "Report verdict" in publish-smoke.yml and after the smoke in pack-smoke-optin.yml, is gated on success(), and continue-on-error keeps its outcome out of the job's conclusion — the bound can only shorten how long bookkeeping runs, never what the job says. No finding.

.github/workflows/ci.yml and .github/workflows/lint.yml — untouched by the delta; the first record's judgment (holds, no finding) stands on this head, byte-identical hunks.

Must-fix: none. Should-fix: none new; S2 stays open only until Packed-tarball smoke (opt-in) on this head concludes.

Implemented-by: claude/issue-26957-prune-turbo-seeds
Reviewed-by: session_01QSeKYmTYfaPbLQD4BJfomW

VERDICT: PASS


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

席位核对 — ACCEPT · domain:devx#2 · head f9c09548f7 · 2026-10-28T05:48Z

维护者速读

  • 改了什么:剩下四处 per-sha Turbo 缓存种子(Build Core、Type Check · workspace、两个 pack-smoke 作业)的保存步骤都接到现成的 prune-turbo-cache.mjs 后面,种子只留本次运行实际用到的任务条目。不删种子、不加脚本、不加门禁、不抬缓存池上限。
  • 为什么改:你在裁决 6458731814 里选了 A「修剪,不删」。这些种子是 PR 构建唯一的缓存,但整份保存会把旧种子一路累积进去,挤爆 10 GB 缓存池。
  • 风险与回滚:只动 .github/workflows/ 下四个文件。最坏情况是某次 push 不保存种子(没有运行摘要就 save=false),后面的 PR 退回用上一份种子。回滚即 revert 本 PR。
  • 先看:lint.yml 中 typecheck 两条 turbo 命令加了 --summarize;publish-smoke.yml 和 pack-smoke-optin.yml 把 actions/cache 拆成 restore + save,保存门槛和原来的 post-step 一致,并加了 5 分钟上限。
  • 两分钟验证:本 PR 上挂标签实跑的 Packed-tarball smoke (opt-in) 日志里有 kept 116 task entries、dropped 621 file(s) … 148.7 MB -> 54.9 MB,随后 Cache saved。
  • 需要你做的:受管面(.github/workflows/**),需要 GOVERNED_APPROVERS(os-zhuang 或 hotlong)批准后由本席入队,或你直接合并。已请审。

席位意见:合入。达档契约复核两轮 PASS(6461442429;增量 6461563320),无 must-fix;两条 should-fix 都已关闭:S1 补了上限,S2 在本 head 上实跑,剪枝生效。

Shape: draft → main. The body says Fixes #26957 and Part of #25452. Label skip-changeset (workflows only, nothing publishes), assignee os-justin. 4 files, +92/−8. Report: os-dev-report 6460037369. Patch commit f9c09548f7 adds timeout-minutes: 5 to both pack-smoke saves (S1).

Seat's own read: the wiring holds at every site.

  • Build Core keeps its run summary in .turbo/runs/: the remote-cache assertion runs without --move-summary-to.
  • Type Check · workspace has its build summary and gains the typecheck summary.
  • pack-smoke's pnpm run build --summarize forwards to the root turbo run build.
  • Every save keeps today's gate, ANDed with save == 'true'.

S2, measured on this head: Packed-tarball smoke (opt-in), job 122651980265 (run 40638841420, labelled needs:pack-smoke), conclusion success:
prune-turbo-cache: Packed-tarball smoke (opt-in): kept 116 task entries named by 1 run summary / dropped 621 file(s) the run did not use: 148.7 MB -> 54.9 MB on disk, then Cache saved (53 MB uploaded). This is the first measured post-prune size for one of the three seed families. Build Core's and Type Check · workspace's prune lines come only from the first main push run after landing.

Gates: at head f9c09548f7, 58 check-runs: 47 success, 11 skipped, 0 failure. check-expected-skips --pr 27067: OK (read on the first head; the skip set did not change). check-governed-merges: Tier H, 4 governed paths, 100 lines.

Open questions: all three answered A, the dev's recommendation and the contract review's answer.

  1. Split restore + save.
  2. Prune against all of .turbo/runs.
  3. Use one --summarize spelling for every event.

Out of scope: both pack-smoke restores keep a bare RUNNER_OS-turbo- fallback restore key. This is an observation only, with zero measured pull, and it is in the PR's Acceptance notes. Not filed.

Landing: the PR stays draft. Review is requested from hotlong and os-zhuang. After an APPROVED review, this seat flips it ready and enqueues it.

After landing (owed on #26957 per the ruling): the first main push run's Build Core and Type Check · workspace prune-turbo-cache: lines. Then #25452 step 3, the pool reading.


Generated by Claude Code

@os-zhuang
os-zhuang marked this pull request as ready for review October 28, 2026 06:14
@os-zhuang
os-zhuang enabled auto-merge October 28, 2026 06:14
@os-zhuang
os-zhuang added this pull request to the merge queue Oct 28, 2026
Merged via the queue into main with commit 6817bf1 Oct 28, 2026
59 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-26957-prune-turbo-seeds branch October 28, 2026 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd needs:pack-smoke Opt-in pre-merge pack smoke: self-declared breaking auth/audience change (see CONTRIBUTING.md) size/m skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

3 participants