Skip to content

fix(framework-build-base): keep ui/ out of the typeless build closure - #38348

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-38143-base-image-ui-closure
Nov 28, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-38143-base-image-ui-closure

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Part of #38143

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户无感:每次合入主干后,云端部署用的框架预构建镜像恢复自动发布,换版本时不用再手动触发构建。
  • 属于“框架基础镜像随主干自动发布”这项工作:上一轮开启了逐次推送发布,但之后一次合入让每次推送的镜像构建都失败了。
  • 出错时只影响这个镜像的构建任务变红、镜像不发布,主干代码和运行时不受影响,改动可以直接撤回。
  • 无

What changes

docker/framework-build-base/Dockerfile only.

  • The typeless build (OS_SKIP_DTS=1) now also excludes @objectstack/dogfood: --filter='!@objectstack/docs' --filter='!./ui/**' --filter='!@objectstack/dogfood'.
  • Before that build, the same filters are read with turbo run build --dry=json, and the step stops when any task in the closure sits under ui/, naming each ui/ package and the package outside ui/ that pulls it in.
  • Two comments are corrected: the header's "same arguments as the downstream stage" note names the one added argument, and the closing note no longer claims that no package outside 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=1 prints "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), because OS_SKIP_DTS leaves packages/spec/dist without .d.ts. The !./ui/** filter takes ui/ packages out of scope only. turbo still builds every dependency of a package in scope (build dependsOn ^build). #38237 (333e6f3) added "@object-ui/data-objectstack": "workspace:*" to the devDependencies of packages/qa/dogfood, which pulls in four ui/ 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 no build script (its task's command in the dry run is NONEXISTENT), and no workspace package depends on it. The image's consumer links packages/* 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 four ui/ ones it pulled in (see the closure diff below).

Why a closure check and not just the filter: the next ui/ dependency from outside ui/ would otherwise fail the same way, minutes into tsc, with an error that names a ui/ 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)
turbo run build --filter='!@objectstack/docs' --filter='!./ui/**' --dry=json
  tasks 97, ui-packages 4: @object-ui/core @object-ui/data-objectstack @object-ui/test-support @object-ui/types
  @objectstack/dogfood#build dependencies under ui/: @object-ui/data-objectstack#build
+ --filter='!@objectstack/dogfood'
  before 97 after 92
  dropped: @object-ui/core @object-ui/data-objectstack @object-ui/test-support @object-ui/types @objectstack/dogfood
  added: (none)
  ui in after: 0
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):

→ typeless build closure: 92 tasks, none under ui/
BUILD-WOULD-RUN: turbo run build --filter=!@objectstack/docs --filter=!./ui/** --filter=!@objectstack/dogfood --concurrency=1

With the dogfood exclusion removed (exit 1, the build never starts):

✗ the typeless build closure reaches ui/: @object-ui/core, @object-ui/data-objectstack, @object-ui/test-support, @object-ui/types
  pulled in by: @objectstack/dogfood (packages/qa/dogfood)

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's verify job runs here as a dry run. It builds this PR's BASE commit (a main that contains 333e6f3) with this PR's Dockerfile, which is the end-to-end reading.

Acceptance notes

  • Part of, not Fixes: 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.
  • The push commits between 333e6f3 and this merge have no image. Each can be backfilled by a workflow_dispatch with its sha, because the image definition always comes from main's checkout.
  • The pull_request trigger covers only this Dockerfile and the workflow, so a future manifest change that pulls 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.
  • The downstream stage this Dockerfile mirrors ("keep them in step") runs the same typeless build with the old filters. Wherever that stage still builds the framework itself rather than starting FROM this image, it hits the same failure on any commit at or after 333e6f3 (carrier: cloud).
  • Changeset: none. docker/ is in no package's files[], so nothing publishes (skip-changeset).

Verification

Read first: docker/framework-build-base/Dockerfile, the second RUN (the inline closure check and the shared set -- 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:build task in the typeless step, and a green Look inside the image step.

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

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>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 28, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 21835be6c407fba7c58aa349fbc52c49efb437e4
Local-runs: none

The face reader puts this one-file diff on the declaration face, so this is the lane's own record at TIER_DEFAULT. It reads the net diff of the head against merge base 5f741ed524, the card and the head's check-runs. No path is a published-schema, governed or narrowing face, and docker/framework-build-base/Dockerfile is not a GOVERNED_SURFACES row.

① Derived judgments

  • The root cause is right. !./ui/** takes ui/ packages out of scope only. Turbo still builds every dependency of a package in scope (build dependsOn ^build). fix(data-objectstack): uploadFile/uploadFiles upload through the storage service presigned flow #38237 gave @objectstack/dogfood a workspace devDependency on @object-ui/data-objectstack, which pulls four ui/ packages into the typeless build, where @object-ui/types fails TS7016 without @objectstack/spec's .d.ts.
  • Excluding dogfood is safe. It is the only package outside ui/ whose manifest names an @object-ui/* package. Its build task has no command (NONEXISTENT in the dry run), and no workspace package depends on it. The image's consumer links packages/* by path to run the framework, and a private regression suite is no part of that. The PR body's closure diff drops exactly five tasks: dogfood and the four ui/ ones.
  • The closure check.
    • It reads turbo run build --dry=json with the same filter list as the build (one set -- list, expanded as "$@" in both), so the two cannot drift.
    • It stops when any task's directory is ui or under ui/, naming each such package and the package outside ui/ whose task depends on one.
    • It is inline because this Dockerfile can package a commit that predates any helper script, which follows the file's existing fail-fast assertion.
    • set -eu makes a failed install or dry run stop the step, as the old && chain did.
  • Comments. The header's "same arguments as the downstream stage" note now names the one added argument, and the closing note no longer claims that no package outside ui/ depends on an @object-ui/* one. Both are true of the tree.

② Semver level

There is no changeset, and none is owed: the Dockerfile publishes no package. Clause-②: no and Metadata-protocol: none are right.

③ Boundary flags

  • The downstream framework stage. The dev report notes, without filing a card, that the downstream framework stage this Dockerfile mirrors runs the same typeless build with the old filters. So wherever an image still builds the framework itself, rather than starting FROM this image, it fails the same way on any framework commit at or after 333e6f3f73. That is outside this diff, and outside this session's repositories, but it is a live break, not a note. It should be filed as a card for the owner of that stage. See N1.
  • The end-to-end reading. A full docker build was not measured locally. The PR's own job, Build framework build base (dry run, no push), is that reading, and it was in progress at this record's writing. The landing waits for it and for all-green.
  • SQL push-down: not applicable.
  • No open_questions.

N1: file the downstream-stage break as its own card, citing 333e6f3f73 and this PR's exclusion, so the stage gets the same argument or starts FROM this image.

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: claude/issue-38143-base-image-ui-closure
Reviewed-by: session_016WV4czzx9dtSEm3jWWL9c3

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

L1 verdict (L1-a): ACCEPT at head 21835be6c407fba7c58aa349fbc52c49efb437e4 (Part of #38143).

Review summary

  • Shape. One file, docker/framework-build-base/Dockerfile, +38/-4. Not governed, no changeset. Clause-②: no · Metadata-protocol: none.
  • The fix. The typeless build also excludes the test-only @objectstack/dogfood. Since fix(data-objectstack): uploadFile/uploadFiles upload through the storage service presigned flow #38237 its devDependency on an @object-ui/* package dragged four ui/ packages into the build through ^build. A --dry=json closure check, sharing one filter list with the build, stops the step when any task is under ui/, and names the ui/ packages and the package that pulls them in.
  • The record. The record 7240854912 at TIER_DEFAULT is PASS with two nits.
  • The end-to-end reading. Build framework build base (dry run, no push) concluded success at this head. It builds the base commit, which contains 333e6f3f73, with this Dockerfile. Its log prints typeless build closure: 92 tasks, none under ui/, which matches the PR body's 97 to 92 closure diff.
  • Gates. Every check-run has concluded: 25 success, 27 skipped, 0 failed. Test Core is skipped by the planner, as expected for a Dockerfile-only diff.

N1, the downstream framework stage. It still runs the old filters, so it breaks the same way on any framework commit at or after 333e6f3f73 wherever it builds the framework itself. It lives outside this session's repositories, so it goes through seat 1 to the owner of that stage.

Next: Tier S. The area marks it ready and lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants