Skip to content

test(dogfood): time the package-less tool row pin's reads, not its three installs - #33772

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-xgdbdf
Nov 15, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-xgdbdf

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Steedos · project thread

Fixes #33680

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:AI 家族 bare-name 测试里三条在 it 里装包的用例(无包工具行、CONTROL、第三命名空间),把行保存和 install-local 挪进嵌套 describe 的 beforeAll,读断言留在 it 里,断言逐字未改。
  • 为什么改:每次 install-local 都会重同步整个 showcase(123 个对象 schema、33 条流程),装包占了用例的大部分耗时;在 merge queue 的分片负载下整条用例越过 vitest 默认 5 秒,两次把 PR 踢出队列(fix(mcp): validate_expression keeps the hidden __search companion out of scope #33451、docs(adr): ADR-0150 addendum: a hot upgrade over a still-served version carries at once #33653)。
  • 风险与回滚:只改测试文件,不改产品代码,不发布;回滚即 revert 本 PR。
  • 先看: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.ts move their setup out of the test clock:

  • The [#31985] package-less tool row case becomes a nested describe. Its setup (two PUT /meta/tool/NAME saves, three POST /marketplace/install-local calls in the same two install orders) runs in that describe's beforeAll with a declared 60 s loading budget, like the file's own boot hook. Its reads become it.each(['before the hydrator', 'after the hydrator']), run in declaration order; the assertions are byte-identical to the old loop body.
  • Folded in 9ebd6e3 (loose end R5): the CONTROL — install-local ... fresh ... names (epsilon) and [#31701, #31985] ... THIRD namespace (gamma) cases each become a nested describe whose beforeAll runs the install-local (60 s loading budget) and asserts its status < 300; the reads stay in the it, 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):

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

  • Red before the fix, reproduced: the file under 6 CPU-bound node loops on a 4-core box failed exactly like CI (Test timed out in 5000ms, 5630 ms).
  • Green after, same load, twice on 24c4208 and once on the merged head fad7b8d: 28/28; the two hydrator reads took 220 to 381 ms.
  • On 9ebd6e3: the file 28/28 idle and twice under 6 CPU hogs on 4 cores; the epsilon and gamma its now take 131 to 320 ms (1030 and 1159 ms idle as single its before).
  • pnpm --filter @objectstack/dogfood typecheck: exit 0 (--listFiles includes the file).
  • pnpm lint: exit 0.

Acceptance notes

  • No ablation: the diff changes no tested behaviour, only where the setup's time is clocked.
  • The two sibling cases are folded in 9ebd6e3 (see What changes).
  • Not done here (one loose-ends card after landing): each install-local re-syncing the whole deployment (123 schemas, 33 flows) is a product cost worth its own measurement if the queue keeps hitting install-heavy files.
  • Full dogfood battery not run locally (no ! 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 --ran reconciles 52/52 with 0 NOT-MEASURED. check:dual-build-cjs-loads first 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

  • 1. Schemas start as Zod; packages/spec holds no runtime logic.
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes.
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QsR2jRabTH2KkTRU4d62Uq

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

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

Nothing 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): node scripts/docs-audit/affected-docs.mjs --json 12a0f09fca49bf90747e9cea21d566229c33de70 → packageMentionDocs.

…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
@github-actions github-actions Bot added size/m and removed size/s labels Nov 15, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTEivi2wogPpeo3xd5

Review — PASS (area S3 self-review: test-only PR, #33751 §2.4)

Head-sha: 9ebd6e3

  1. Premise measured: both victims time out at vitest's default 5 s on the same test (jobs 132667862849, 132715484165); the green range 2.2–4.4 s and the local setup share (2.8 s of 3.1 s) show a behaviour clock timing loading. The sys_session lead is shown not to hold.
  2. Diff (one file, +66 −40) read at this head: setup moves into nested beforeAlls with a 60 s loading budget and a status assertion; every read assertion is unchanged; declaration order is unchanged, so the co-owner refusal cases still read before epsilon/gamma install. it.each keeps the before/after-hydrator order.
  3. No ablation owed: no tested behaviour changes. Red-before reproduced under CPU load (5630 ms timeout), green after on 24c4208, fad7b8d and 9ebd6e3.
  4. Declarations: Clause-②: no, Metadata-protocol: none, skip-changeset (test-only): right.
  5. Loose end R5 (two sibling installs inside their it) folded in 9ebd6e3; the body was brought to that head. The install-local full re-sync cost goes to one loose-ends card after landing.
  6. Check-runs on 9ebd6e3: every run success or expected skip, none failing or pending.

Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTEivi2wogPpeo3xd5

席位核对

ACCEPT · area S3 · 2026-11-15T10:42Z · head 9ebd6e38b47c0e8013de91194f8b5ed3f5352e89

  • Review: PASS 6893134791 at this head (area self-review, test-only PR).
  • check-governed-merges.mjs --pr 33772: NOT governed, 106 changed lines ≤ 3000 — ordinary queue landing.
  • Check-runs on this head: all success or expected skip; mergeable_state clean.
  • Declarations: Clause-②: no, Metadata-protocol: none, skip-changeset.
  • Fixes Queue-flake anchor: test/bare-name-one-holder-ai-family.dogfood.test.ts #33680. Landing (pr_ready + automerge_enable) follows once the maintainer's landing line for this area is written.

Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTEivi2wogPpeo3xd5

Landing · area S3 · 2026-11-15T11:07Z · head 9ebd6e38b47c0e8013de91194f8b5ed3f5352e89 (unchanged since review PASS 6893134791 and ACCEPT 6893145679; mergeable_state clean).

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

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 15, 2026 11:07
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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)

probe reading
head 9ebd6e38 = ACCEPT 6893145679 head
check-runs on head 33 success, 20 skipped, 0 failed
check-governed-merges --pr 33772 NOT governed
behind main 9 (< 15)

State: pr_ready + automerge_enable now; #33680 closes by its Fixes keyword on MERGED.

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

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Queue-flake anchor: test/bare-name-one-holder-ai-family.dogfood.test.ts

1 participant