Repository navigation
ci(console): add the six other packed manifests to the console-dist key and the console filter - #24470
Merged
Conversation
… other manifests objectui packs
scripts/build-console.sh packs @objectstack/{spec,core,types,client,formula,
sdui-parser,lint} into objectui's install on a pin that carries
.objectstack-sha, and objectui's objectstack-pin.mjs refuses one whose
dependency names its lockfile does not record. The console-dist cache key and
the `console` path filter named spec's manifest only, so a dependency or entry
change to the other six never moved the key or selected Console Pin Gate, and
the refusal surfaced first on a release lane.
Add packages/{core,types,client,formula,sdui-parser,lint}/package.json to all
three spellings of the key (restore, verify env, save; byte-identical) and to
the `console` filter. check-ci-filter-parity stays green: 15 entries, 12 build
inputs, 3 guards, one key spelling in 3 places.
Measured over the 2727 first-parent commits of main in the 30 days to
ec951e2: 54 moved an existing key input, 11 moved one of the six, and 10 of
those 11 also moved packages/spec/package.json (seven Version Packages merges,
fixed group 0, and three dependency bumps). The key now moves on 55.
Claude-Session: https://claude.ai/code/session_01FM29ZqLTrnPNXxijioZwMp
Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
维护者速读改了什么:CI 里 console 构建缓存的键和 为什么改:console 构建现在会把这 7 个包都装进 objectui。如果其中某个包的依赖变了,而缓存键里没有它的清单,那么 PR 上命中旧缓存、不会重新验证,问题要拖到发版切 RC 时才暴露。加上后,改这 6 个包清单的 PR 会在自己身上就触发 console 重建。 风险与代价(含回滚):实测过去 30 天缓存键的失效次数从 54 次变成 55 次,几乎没有额外成本,因为这 7 个包同属一个 changesets 固定组,通常一起改。改动要等 席位意见:建议批准。三处键的写法完全一致, 你要做的:给本 PR 一次批准(APPROVED review)。 席位核对ACCEPT ·
Generated by Claude Code |
os-zhuang
approved these changes
Oct 19, 2026
os-zhuang
marked this pull request as ready for review
October 19, 2026 06:11
This was referenced Oct 19, 2026
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.
Fixes #24441
Clause-②: no
What changes
One file,
.github/workflows/ci.yml(+15 / -4):packages/{core,types,client,formula,sdui-parser,lint}/package.jsonnext topackages/spec/package.json. Theconsole-pinjob spells the key in three places, and all three change: the restore step'skey, the verify step'sCONSOLE_DIST_CACHE_KEYenv, and the save step'skey. The three stay byte-identical: the key expression has one distinct string, found 3 times.consolepath filter now names the same six paths. A push that moves only one of them now selects Console Pin Gate.There is no new gate and no script edit. Workflows publish nothing, so there is no changeset (
skip-changeset).Why
scripts/build-console.shpacks every@objectstack/*package that objectui overrides into objectui's install, from this tree (OBJECTSTACK_ROOT=... node scripts/objectstack-pin.mjs build). It does this on a pin that carries.objectstack-sha. objectui's pin script refuses a packed manifest in two cases: its runtime dependency names differ from what objectui's lockfile records, or an entry file is missing. Before this change, the key and the filter named only spec's manifest:packages/core/package.jsonskipped Console Pin Gate on that push, because the filter did not match.build-console.sh, so the pin script never ran.The refusal first fired at
cut-rc.yml'spnpm objectui:build, or at the publish step.Premise check (measured at origin/main
ec951e29e)grep -n console-dist .github/workflows/ci.ymlfinds three: the restorekey(line 3011), the verify envCONSOLE_DIST_CACHE_KEY(3075) and the savekey(3088). All three were identical.release.ymlkeeps its own narrower key (.objectui-sha,build-console.shand the zod range) on purpose. It is not touched.build-console.shreads the set at run time from objectui's rootpackage.json: thepnpm.overridesnames that start with@objectstack/. At objectuiorigin/main29c19cc1a6the set is exactly client, core, formula, lint, sdui-parser, spec and types..objectui-sha=0707b4ae37) has no.objectstack-shaand no@objectstack/*override, so the OBJECTSTACK_ROOT block does not run at this pin..objectstack-shaarrived in objectui at749ed76(objectui#12963), 34 commits after the pin. The six manifests start to matter at the first pin bump to that commit or later..objectui-sha, which is already in the key. What this change catches is a manifest change that lands after the bump..changeset/config.jsonhas one fixed group of 73 packages, and all seven are in group 0. So a Version Packages merge moves all seven manifests in one commit, spec's included, and costs one rebuild, not seven.scripts/pm/git-history.mjs(--since=2026-09-19 --until=2026-10-19 --ref=ec951e29e, first-parent; the floor, 2026-09-05, predates the window; no fetch):main, 2026-09-19 to 2026-10-19packages/spec/package.json)54d32e514: a newexportsentry inpackages/lint/package.json)So the key now moves on 55 commits instead of 54: one extra cold console build in 30 days, +1.9%. The one extra commit is a manifest entry change, which is one of the things the pin script checks.
Verification (head
33a410f07)node scripts/check-ci-filter-parity.mjs: exit 0 before and after the change.all 9 console entr(ies) are literal paths; 6 are build inputs the console dist key hashes and 3 are declared guards; the key is spelled one way in all 3 place(s).all 15 console entr(ies) are literal paths; 12 are build inputs the console dist key hashes and 3 are declared guards; the key is spelled one way in all 3 place(s) the console-pin job uses it.node scripts/check-ci-filter-parity.mjs --self-test: exit 0, 131 assertions. The anchor line its report-path fixture looks for (packages/spec/tsup.config.tsin the filter) is unchanged.ci.ymlstill parses (yaml: 10 jobs).node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackagainst merge baseec951e29e; 1 path, 19 changed lines):PREREQUISITE NOT MET, because they need a fullpnpm build:check:dts-closure,check:dual-build-cjs-loads,check:lean-entry-closureandcheck:sourcemap-no-sources-content. These are Build Core's dist guards. This diff changes no package source and no build config, and CI's Build Core runs them on this PR. Declared as a narrowing: NOT MEASURED locally.--ranreconciliation:49 derived famil(ies) accounted for — 45 run, 4 NOT-MEASURED, exit 0..github/workflows:check-platform-checklist-watchdog(gate and self-test), and the self-tests ofselect-shard-timings-run,pr-labelsandrelease-verify-npm. All exit 0.check:console-injectionandcheck:console-shaexit 0 but passed vacuously, because there is no local console dist.pull_requestormerge_group. Its first run on this change ismain's push battery after the merge. A coldbuild-console.sh(clone plus vite build) is NOT MEASURED locally.Acceptance notes
build-console.shderives at run time. If objectui adds an eighth@objectstack/*override, the key will not name it until someone adds it here. No gate holds the two lists together, and the card rules out a new gate. Carrier: none.tsup.config.tsis keyed for that reason; the other six are not. No such change appeared in the window. Noted, not filed. Carrier: none.32 of the 3219 first-parent commits ... moved one, dated 2026-08-31 to9905e61ca2);this key moves only when the pin does. That was already inexact before this change, because spec's manifest was in the key.维护者速读(草稿)
改了什么
CI 里有一套控制台(Console)构建缓存。原来它的缓存钥匙和触发条件只看 spec 一个包的清单文件(package.json)。现在把另外六个包的清单文件也算进去:core、types、client、formula、sdui-parser、lint。控制台构建会把这六个包和 spec 一起装进 objectui。本次只改一个 workflow 文件,共 19 行。
为什么改
控制台构建会把这七个包从本仓库打包,装进 objectui。objectui 那边会核对这些包的依赖是否和它的锁文件一致,不一致就拒绝构建。原来这六个包的依赖一变,CI 既不触发控制台构建,也不让缓存失效,问题要等到切 RC 发版时才第一次暴露。改完以后,问题会在合入 main 的那次推送上暴露。
风险与代价(含回滚)
.objectstack-sha,所以这次改动要等下一次把 objectui pin 升到749ed76或更新之后才真正起作用。席位意见
你要做的
看一眼 diff。同意就在本 PR 上给一个 APPROVED 审批。之后由席位负责落地。
Generated by Claude Code