Repository navigation
test(app-shell): three zh tests await the lazy studio catalogue before reading moved strings - #26914
Closed
objectstack-fleet[bot] wants to merge 2 commits into
Closed
objectstack-fleet[bot] wants to merge 2 commits into
objectstack-fleet[bot] wants to merge 2 commits into
Conversation
…tudio zh catalogue The zh-CN cases read `getByLabelText(/软件包 ID/)` right after the form renders; that label is `engine.packages.create.id`, a row of the lazy `studio` i18n namespace since the package/form/editor strings moved there. Load the zh catalogue at module scope, the shape the other studio-namespace zh tests in app-shell use. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jVTqmjzhQU2Rqq79mu
…zh catalogue `discardDraftLabel-12690` finds the `丢弃草稿` button (`engine.edit.discardDraft`) and `environmentOverlay-12141` reads the read-only banner (`engine.edit.readOnlyTypeBanner`) in zh-CN. Both rows moved into the lazy `studio` namespace with the editor strings, so each case raced the zh chunk. Load the catalogue at module scope. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jVTqmjzhQU2Rqq79mu
Contributor
Author
|
Seat note (domain:ui seat 4) — head
One re-run of each failed run once it completes. |
Contributor
Author
|
Seat close · Superseded. Main already loads the zh studio catalogue in all three files: #26839 ( Generated by Claude Code |
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.
Requested by Steedos · project thread
Fixes #26863
Clause-②: no
Metadata-protocol: none
维护者速读
await loadStudioCatalogue('zh'),再跑用例:PackageFormDialog.validationTiming、ResourceEditPage.discardDraftLabel-12690、ResourceEditPage.environmentOverlay-12141。只改测试,不动源码,不动 i18n 包。ui/packages/app-shell/src/views/metadata-admin/PackageFormDialog.validationTiming.test.tsx(新增的 import 与 await 两行及注释)。pnpm --dir ui exec vitest run packages/app-shell/src/views/metadata-admin/PackageFormDialog.validationTiming.test.tsx,应见 5 passed。What changes
Each of the three test files below now loads the lazy
studiozh catalogue at module scope (await loadStudioCatalogue('zh')from@object-ui/i18n/namespaces/studio), the shape #26800 used and the twenty siblings #26815 already carry. The cost moves into the import phase, outside any test or hook timeout, perui/AGENTS.mdtest discipline.PackageFormDialog.validationTiming.test.tsx软件包 ID,显示名称(getByLabelText)engine.packages.create.id,engine.packages.create.nameResourceEditPage.discardDraftLabel-12690.test.tsx丢弃草稿button (getByRole), then the confirm and toastengine.edit.discardDraft,engine.edit.discardDraftConfirm,engine.edit.draftDiscardedResourceEditPage.environmentOverlay-12141.test.tsx出于安全考虑,永远不会开放由包提供的条目)engine.edit.readOnlyTypeBannerNo shipped code, no
ui/packages/i18nchange, no skip, no quarantine, no timeout change. Test-only and publishes nothing, so no changeset (as #26800 had none).Tests
The sweep. The population is every app-shell test file without the preload that names a zh locale in code or holds a literal found in a studio zh value: 238 files (the card's own file excluded, it was already fixed). They ran with the studio zh loader held never-resolving (
scripts/ablation-replace.mjsonui/packages/i18n/src/namespaces/studio/index.ts, restored, blob equals HEAD):Test Files 2 failed | 236 passed (238),Tests 2 failed | 2368 passed (2370). The two failures are the twoResourceEditPagefiles above, the same red CI showed fordiscardDraftLabel-12690on PR #26877 (Test UI 9/16). Every other file in the population is judged safe on that run: it reads no lazy studio zh row, or it already reads a zh row only after the catalogue has landed.Red before, green after. The studio zh loader delayed 4000 ms, under the shared verify lock, at head
a51a0622:Test Files 3 passed (3),Tests 20 passed (20)Test Files 3 failed (3),Tests 5 failed / 15 passed (20):Unable to find a label with the text of: /软件包 ID/(the card's CI signature),/显示名称/twice, the丢弃草稿button, andexpected 'This metadata type is read-only…' to contain '出于安全考虑'Every mutation was restored and proven (
blob == HEAD,git diff HEADempty).Cold module graph, alone and in company. Each touched file alone: 5/5, 3/3 and 12/12 tests passed. Each in its full-run Test UI shard's app-shell company, computed with
ui/scripts/test-shard-partition.mjs(planShards, the same plan the sequencer uses; it putsvalidationTimingon shard 10/16, the shard CI showed red): shard 10, 102 files, 755 tests passed; shard 2, 104 files, 1010 tests passed; shard 13, 107 files, 1139 tests passed.Acceptance notes
packages/app-shellfiles. A whole-shard run (369 files across theunit,dom,dom-heavyand console projects) was stopped by hand at 18 min: the non-TTY reporter prints nothing until the end, which read as a stall. CI's Test UI runs the full shards.Verification
Type-check and derived gates
All at head
a51a0622, in a worktree offorigin/maina20824f3.pnpm exec turbo run type-check --filter=@object-ui/app-shell --concurrency=2underscripts/pm/os-verify-lock.sh:VERDICT command-exit 0, 64/64 tasks (app-shelltype-checkcovers its test files).node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived 24 commands; every one exited 0. The PR-body gates (check-closing-keyword-parity, pluscheck-changeset-no-major --base origin/mainandcheck-adr-0087-registration) ran against this body throughGITHUB_EVENT_PATH.pnpm check:type-check-debtunder the lock:0 raw tsc error(s) total, none above its recorded number.pnpm --dir ui exec vitest run scripts/under the lock, after a spec rebuild:Test Files 178 passed | 2 skipped (180),Tests 5065 passed | 2 skipped (5067).dispatch-gates --ran:24 derived famil(ies) accounted for — 24 run, 0 NOT-MEASURED.pnpm check:new-line-citations(fromui/):0 new citation(s).Generated by Claude Code