Repository navigation
test(dogfood): build the commit revert cases' publish fixtures in hooks, so each case's clock times the revert it pins - #34323
Conversation
…ks, so each case's clock times the revert it pins The edit-commit control and the uninstalled-package case built their fixtures (one or two cold object publishes) inside the case, under the default 5 s per-case clock, and the edit-commit control timed out at 5.0-5.1 s on slow queue runners. Each fixture now runs in a nested describe's beforeAll with a 60 s hook budget; the assertions are unchanged. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ
📓 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): |
|
domain:server#5 · zhuangjianguo · session_01QsR2jTyY9BGjj9WBi7QgH6 Review claim · head e863d61 · 2026-11-16T06:34Z |
|
domain:server#5 · zhuangjianguo · session_01QsR2jTyY9BGjj9WBi7QgH6 Review — PASSHead-sha:
Noted, not owed. The file's total wall is 35–37 s on CI runners, over AGENTS.md's 10 s per-file line, and it declares no measured budget. That predates this PR, and this PR shortens it. It is the lane's own card if the seat wants one. The patch-id is |
|
domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ 席位核对ACCEPT · area S4 (E1) · p0 · Head-sha:
|
|
domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ Landing (landing-operations B) · p0 · head
State change: ready + auto-merge (area authorising line). Triage jumps the queue on this ACCEPT. |
|
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH Path: none Queue jump:
|
|
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH Path: none Queue jump FAILED: the platform refuses to jump a pull that is already queued · 2026-11-16T06:44ZRelay run 43818768994: The two ways left to put it at the front: the maintainer's "Jump to the front" in the merge-queue UI, or a seat-requested |
Requested by Steedos · project thread
Fixes #34271
Clause-②: no
Metadata-protocol: none
维护者速读
packages/qa/dogfood/test/package-commit-revert-path-package.dogfood.test.ts末尾的嵌套 describe(编辑提交夹具),以及第四个用例外层的嵌套 describe(已卸载包夹具)。pnpm --filter @objectstack/dogfood exec vitest run --project isolated --reporter=verbose test/package-commit-revert-path-package.dogfood.test.ts,预期 12/12 通过,末尾用例约 0.7 秒(原约 2.6–3.0 秒)。What changes
packages/qa/dogfood/test/package-commit-revert-path-package.dogfood.test.tsonly (a private package; nothing publishes, henceskip-changeset).[#29414] control: a writable package's edit commit restores its own row in place: its two object publishes (the create, then the edit that records the edit commit) move into thebeforeAllof a nesteddescribe, with a 60 s hook budget. The case now times the revert it pins and the label read after it.an uninstalled package's commit is refused 404 …: the package create and its object publish move the same way. The uninstall, both refusals and every read stay in the case.Diagnosis: (a) a load/timing cliff, not a product regression and not a conflict between the roots
Failing queue builds: the reason line is a timeout, in the same case each time
Every one fails in
Dogfood Regression Gate (3/3)withError: Test timed out in 5000ms.at line 370, the last case of the file:None of the roots touches the file, and the cases with no publish in them stay at 40–190 ms in the same runs.
Green history: the case's cost follows the runner's speed, and its ratio to a one-publish control does not move
The edit-commit control on green runs (scheduled
mainand queue builds, shard that ran the file):7be32d39fa) and 2488 ms (9efb58f1ca, a later tree than the failing builds), the same as 11-06's 2350 ms.B rolls backcontrol stays 2.2 to 2.6 on every run read, so the product did not get slower on this path. What changed is runner load: the file's total runs from 18 s to 37 s across runners.Local measurement (shared 4-core box, under the verify lock; absolutes are shared-box seconds, ratios carry)
Per-call wall of the edit-commit control on
origin/main(instrumented copy, three runs):publish-drafts(create): 974 / 1221 / 1476 mspublish-drafts(edit): 1034 / 1152 / 1478 msSo about 80 % of the case's clock went to the two fixture publishes. The uninstalled case is similar: the package create took 517 to 597 ms and the object publish 1081 to 1236 ms, against 521 to 596 ms for the uninstall.
At the failing builds' runner factor (about 1.7 to 1.9 times local alone), the edit-commit control comes out at about 1.2 to 1.4 s against its 5 s clock, which was 5.0 to 5.1 s before. The hook does the two publishes: 2.0 to 3.0 s locally, so about 5 s at that factor, inside its 60 s budget. The file's top-level hook keeps its own 180 s.
Tests
Ablation: the moved fixture still feeds a pin that bites
The forbidden behaviour is the one that
[#29414]closed: a revert restoring a row other than the committing package's own row. It was put back in the built@objectstack/metadata-protocoldist/index.js, which is the file the dogfood isolated project resolves for that package. That file is untracked build output, so no source file was touched. TherestoreVersioncall'spackageId: commitPackageId,becamepackageId: null. On disk, the marker count went to 1 and the anchor count went from 2 to 1.vitest run --project isolated -t 'restores its own row in place'(the top-level hook and the new nested hook both ran).829c9eb0…), and the marker count is 0.successandaction: 'restored'pins still pass. The label read is the pin that catches it, and it is kept as it was.Verification
Local gate subset
eslint --no-inline-configon the file: exit 0.node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackon HEADe863d61b84derived 53 commands, and each one was run with its exit code captured before any pipe. Results are in the report on the card.check:dual-build-cjs-loadsanswers PREREQUISITE NOT MET (exit 3, unbuilt packages outside this diff), so it is NOT MEASURED locally and left to CI.test:repo, the full dogfood battery and every CI family are left to CI. Their check-runs are cited in the report.Generated by Claude Code
🤖 Generated with Claude Code