Repository navigation
fix(framework-build-base): keep ui/ out of the typeless build closure - #38348
Conversation
The !./ui/** filter takes ui/ packages out of scope only; turbo still builds the dependencies of every package in scope. The dogfood suite's devDependency on @object-ui/data-objectstack dragged four ui/ packages into the OS_SKIP_DTS build, where @object-ui/types fails TS7016 against a spec dist with no .d.ts, so every push run since has failed. Exclude the test-only dogfood suite (no build script, no dependents), and read the closure with --dry=json before building: any task under ui/ stops the build and names the package that pulls it in. Claude-Session: https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: The face reader puts this one-file diff on the declaration face, so this is the lane's own record at ① Derived judgments
② Semver levelThere is no changeset, and none is owed: the Dockerfile publishes no package. ③ Boundary flags
N1: file the downstream-stage break as its own card, citing N2: the check's message tells a reader to put "a test-only puller that no downstream links" in the exclusion filters. That is the rule this PR applies, but a future reader may not see that every such exclusion has to be mirrored in the downstream stage too, while N1 stands. Half a sentence would say so. No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): ACCEPT at head Review summary
N1, the downstream framework stage. It still runs the old filters, so it breaks the same way on any framework commit at or after Next: Tier S. The area marks it ready and lands it. |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cxRDKprCtjpEdtiPFW Area landing · 2026-11-28T15:02Z · PR #38348 (Part of #38143) at head 21835be: not governed (check-governed-merges: 0 of 1 path on the register), 42 changed lines. L1-a ACCEPT 7241147313 on contract record 7240854912 (TIER_DEFAULT, PASS); every check concluded, 25 success, 0 failed, and the verify job built main with this Dockerfile (closure 92 tasks, none under ui/). Area o1-F readies it and enables auto-merge. |
Part of #38143
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
docker/framework-build-base/Dockerfileonly.OS_SKIP_DTS=1) now also excludes@objectstack/dogfood:--filter='!@objectstack/docs' --filter='!./ui/**' --filter='!@objectstack/dogfood'.turbo run build --dry=json, and the step stops when any task in the closure sits underui/, naming eachui/package and the package outsideui/that pulls it in.ui/depends on an@object-ui/*one.Root cause, read from the failing push run 46153615363, job 141005357401: the step
pnpm exec turbo run build --filter='!@objectstack/docs' --filter='!./ui/**' --concurrency=1prints "Running build in 93 packages" with no@object-ui/*package in scope, then runs@object-ui/types:build. That task fails with TS7016 "Could not find a declaration file for module '@objectstack/spec/ui'" (and/shared,/data,/api,/kernel,/system,/ai), becauseOS_SKIP_DTSleavespackages/spec/distwithout.d.ts. The!./ui/**filter takesui/packages out of scope only. turbo still builds every dependency of a package in scope (builddependsOn^build). #38237 (333e6f3) added"@object-ui/data-objectstack": "workspace:*"to the devDependencies ofpackages/qa/dogfood, which pulls in fourui/packages. At b503291, the last green run, dogfood's manifest names no@object-ui/*package.Why excluding dogfood is safe: it is the only package outside
ui/that depends on an@object-ui/*package (git grep '"@object-ui/' -- '*package.json' ':!ui/**'finds only its manifest). It has nobuildscript (its task's command in the dry run isNONEXISTENT), and no workspace package depends on it. The image's consumer linkspackages/*by path to run the framework, and a private regression-test suite is no part of that. The exclusion takes out exactly five packages: dogfood and the fourui/ones it pulled in (see the closure diff below).Why a closure check and not just the filter: the next
ui/dependency from outsideui/would otherwise fail the same way, minutes into tsc, with an error that names aui/package and not the manifest that caused it. The check follows this Dockerfile's existing fail-fast pattern (the authorable-surface baseline assertion). It sits inline because this Dockerfile can package a commit whose tree predates any helper script. It shares one filter list (set --) with the build, so the two cannot drift apart.Tests
turbo closure before / after, on this branch's base 5f741ed (contains 333e6f3)
the RUN step itself, joined the way the Dockerfile parser joins it and run under dash (the image's /bin/sh), install and real build stubbed
As written (exit 0):
With the dogfood exclusion removed (exit 1, the build never starts):
No local Docker daemon was available, so the full image build was not run locally. This PR touches
docker/framework-build-base/**, so the workflow'sverifyjob runs here as a dry run. It builds this PR's BASE commit (amainthat contains 333e6f3) with this PR's Dockerfile, which is the end-to-end reading.Acceptance notes
Part of, notFixes: the card's acceptance ("a cloud pin round to a fresh objectstack main commit finds its base image already published with no manual dispatch") is read after merge, on the first post-merge push run and a pin round.workflow_dispatchwith itssha, because the image definition always comes from main's checkout.ui/into the closure still surfaces first on a push run. It now fails in seconds, with the offending package named, and not in tsc.docker/is in no package'sfiles[], so nothing publishes (skip-changeset).Verification
Read first:
docker/framework-build-base/Dockerfile, the secondRUN(the inline closure check and the sharedset --filter list).Two-minute check: open this PR's
Build framework build base (dry run, no push)job. Expect a log line→ typeless build closure: 92 tasks, none under ui/, no@object-ui/types:buildtask in the typeless step, and a greenLook inside the imagestep.Local gates on 21835be (
dispatch-gates.mjs --commands, 9 derived, all exit 0):check-closing-keyword-parity(+--self-test),check-comment-mask-corpus,check:adr-anchors,check:driver-memory-census,check:gitlink-declared,check:nul-bytes,check:refd-timer-probe,check:watch-hint-literal.overlap-check: VERDICT clean exit 0.Generated by Claude Code