Repository navigation
test(dogfood): time the package-less tool row pin's reads, not its three installs - #33772
Conversation
…ree installs The AI-family pin saved two rows and ran three install-locals inside one `it`, so vitest's default 5 s test clock timed loading: each install re-syncs the whole showcase (~0.9 s idle), and under queue shard load the test crossed 5 s. The saves and installs move to a nested describe's beforeAll with a loading budget; the before/after-hydrator reads become two its with unchanged assertions. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRabTH2KkTRU4d62Uq
…-xgdbdf Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRabTH2KkTRU4d62Uq
📓 Docs Drift CheckNothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 0 changed package(s)), so this run has no opinion about the docs. What this run could not see
Coarse fallback — 0 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
…not their installs The CONTROL and third-namespace cases in the AI-family file installed a package inside their `it`, on vitest's default 5 s clock. Each install moves to a nested describe's beforeAll with a loading budget; the reads stay in the `it`, unchanged apart from indentation. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRabTH2KkTRU4d62Uq
|
domain:server#5 · zhuangjianguo · session_01QsR2jTEivi2wogPpeo3xd5 Review — PASS (area S3 self-review: test-only PR, #33751 §2.4)Head-sha: 9ebd6e3
Generated by Claude Code |
|
domain:server#5 · zhuangjianguo · session_01QsR2jTEivi2wogPpeo3xd5 席位核对ACCEPT · area S3 · 2026-11-15T10:42Z · head
Generated by Claude Code |
|
domain:server#5 · zhuangjianguo · session_01QsR2jTEivi2wogPpeo3xd5 Landing · area S3 · 2026-11-15T11:07Z · head Ready + auto-merge under the maintainer's landing line for area S3 (project thread, 2026-11-15T11:06Z: 「本区通过复审的 PR 都可以 ready + auto-merge」). Generated by Claude Code |
|
domain:server#5 · zhuangjianguo · session_01QsR2jRsWwTRkuRCyQwvpAG Landing · 2026-11-15T11:07Z Authority: maintainer line 「server 车道通过复审、检查全绿的非受管 PR,你可以 ready + auto-merge」 (seat thread, 2026-11-15T11:06Z)
State: pr_ready + automerge_enable now; #33680 closes by its Fixes keyword on MERGED. |
Requested by Steedos · project thread
Fixes #33680
Clause-②: no
Metadata-protocol: none
维护者速读
it里装包的用例(无包工具行、CONTROL、第三命名空间),把行保存和 install-local 挪进嵌套 describe 的 beforeAll,读断言留在 it 里,断言逐字未改。packages/qa/dogfood/test/bare-name-one-holder-ai-family.dogfood.test.ts新的三个嵌套 describe(beforeAll 的 60 秒装包预算与其后的 it)。cd packages/qa/dogfood && pnpm exec vitest run --reporter=verbose test/bare-name-one-holder-ai-family.dogfood.test.ts,预期 28 个全绿,三条用例的 it 各在 0.5 秒内。What changes
Three pins in
packages/qa/dogfood/test/bare-name-one-holder-ai-family.dogfood.test.tsmove their setup out of the test clock:[#31985]package-less tool row case becomes a nesteddescribe. Its setup (twoPUT /meta/tool/NAMEsaves, threePOST /marketplace/install-localcalls in the same two install orders) runs in that describe'sbeforeAllwith a declared 60 s loading budget, like the file's own boot hook. Its reads becomeit.each(['before the hydrator', 'after the hydrator']), run in declaration order; the assertions are byte-identical to the old loop body.CONTROL — install-local ... fresh ... names(epsilon) and[#31701, #31985] ... THIRD namespace(gamma) cases each become a nesteddescribewhosebeforeAllruns the install-local (60 s loading budget) and asserts its status < 300; the reads stay in theit, unchanged apart from indentation (git diff -w: +13 −2). Declaration order is unchanged, so the co-owner refusal cases still read the package list before epsilon and gamma install.No assertion, test clock of a behaviour read, or product file changes.
Why
Diagnosis (card #33680, triage 6890622593):
Error: Test timed out in 5000ms.: 5139 ms in job 132667862849 (PR fix(mcp): validate_expression keeps the hidden __search companion out of scope #33451) and 5046 ms in job 132715484165 (PR docs(adr): ADR-0150 addendum: a hot upgrade over a still-served version carries at once #33653). The dogfood config sets notestTimeout, so this is vitest's default 5 s.syncSchemas() ran,Schema sync complete {"synced":123}andRe-synced 33 flow(s) after metadata reload.No driver available for object 'sys_session'lead does not hold: 0 hits in victim 1, 1 hit in victim 2, and that line sits inside another worker's boot log while this file's stack was still up.So this is a load/timing cliff in the test's structure: a behaviour clock timing loading. Not a flake in the product, not a race, not a conflict between queued PRs.
Tests
Test timed out in 5000ms, 5630 ms).its now take 131 to 320 ms (1030 and 1159 ms idle as singleits before).pnpm --filter @objectstack/dogfood typecheck: exit 0 (--listFilesincludes the file).pnpm lint: exit 0.Acceptance notes
!in the title, no narrowing arm); the queue's Dogfood Regression Gate carries it.Verification
Derived gates (dispatch-gates --commands)
At 24c4208: 52 derived, 52 run, every one exit 0;
dispatch-gates --ranreconciles 52/52 with 0 NOT-MEASURED.check:dual-build-cjs-loadsfirst answered exit 3 (workspace not built) and was rerun green after the full build. At 9ebd6e3: the same 52 families re-derived and rerun, all exit 0, 52/52, 0 NOT-MEASURED.Human Minimum
packages/specholds no runtime logic.pnpm lintpasses.main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01QsR2jRabTH2KkTRU4d62Uq