Repository navigation
test(scenarios): split the three-shape no-skip refresh case into one case per shape - #35531
Conversation
…case per shape Each shape runs a full gallery refresh; three in one case outgrew the default 5s per-test budget on a loaded merge-queue shard. Same assertions per shape (kind committed, exactly one run plan). Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CaysxGzF62ACvZ1x9x
📓 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): |
|
repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x {
"issue": null,
"status": "done",
"branch": "claude/scenarios-refresh-test-split",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35531",
"head": "36587a38e3",
"session": "session_01Utp6CaysxGzF62ACvZ1x9x",
"premise_still_valid": true,
"summary": "Split the three-shape loop in refresh.test.ts ('does not skip when one listed app is on an older version, or when the index lists no app') into an it.each of three independent cases (one listed app older; index listing no app; no index), each with the same two assertions (out.kind === 'committed', h.plans length 1). No assertion skipped, removed or weakened; no timeout raised. files_changed: 1 (packages/qa/scenarios/test/export/refresh.test.ts), +13/-9. No changeset: the test file is outside the package files[] (dist, README.md, CHANGELOG.md), so per AGENTS.md Post-Task Checklist step 3 nothing publishes; skip-changeset rides pr_create.",
"tests": "Built the closure: pnpm --workspace-concurrency=2 --filter '@objectstack/scenarios^...' build (lock VERDICT command-exit 0). File run: pnpm --filter @objectstack/scenarios exec vitest run --maxWorkers=2 --reporter=verbose test/export/refresh.test.ts, under the lock, shared-box timings. BEFORE (f727061b88): looped case 910ms; Test Files 1 passed, Tests 17 passed (VERDICT command-exit 0). AFTER (ce5cb4ba53, tree identical to pushed head 36587a38e3): older-version 560ms, empty index 200ms, no index 187ms; Test Files 1 passed, Tests 19 passed (VERDICT command-exit 0). Locally the box is unloaded; the queue figure (5714ms) was on a loaded shard, where each case is expected near the measured ~1.4-1.5s single-refresh reading. pnpm --filter @objectstack/scenarios typecheck: VERDICT command-exit 0; the test file is in the tsc program (--listFiles count 1). No ablation: no tested behaviour changed (test restructure only).",
"gates": "overlap-check --branch=HEAD: VERDICT clean exit 0. dispatch-gates --repo objectstack-ai/objectstack --commands (tree ce5cb4ba53, 1 path): 49 families; 48 :: exit 0; pnpm check:dual-build-cjs-loads :: exit 3 = PREREQUISITE NOT MET (needs a full build's dist) -> NOT MEASURED locally, measured by CI Lint & Repo Gates. --ran reconciliation: 49 accounted, 48 run, 1 NOT-MEASURED (derived from recorded exit 3), 0 UNRUN. PR check-runs: in_progress at report time (not awaited, per os-dev.md). test:repo not run locally (declared to CI; diff does not touch that project).",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST issues/35531/labels skip-changeset; read-back identical, 3213 bytes); relay comment (POST issues/35531/comments, this report). git push x2 (empty branch, commit) not REST.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [],
"deviations": "First commit carried the harness-given model-named Co-Authored-By trailer; the pre-push hook refused it before any push, so the unpushed commit was amended to the model-free pair (Co-authored-by: Claude) per AGENTS.md. Nothing published carries a model identifier."
} |
|
repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x Landing · head
Why: the looped case ran three full refreshes inside vitest's 5000ms default; 3804ms on PR CI, 5714ms on a loaded queue shard (run 44533961485), which dequeued #35459 twice with a diff that does not reach this code. Now three cases with the same assertions; nothing skipped, removed or loosened, no timeout raised. Status: |
Clause-②: no
Metadata-protocol: none
维护者速读
席位核对
What changes
packages/qa/scenarios/test/export/refresh.test.ts: the case "does not skip when one listed app is on an older version, or when the index lists no app" looped over three gallery shapes, each running a fullgalleryRefresh(git init, the fixture crm run, a commit) inside vitest's default 5000 ms per-test budget. It is now anit.eachover the three shapes (one listed app older; an index listing no app; no index), each its own case with the same two assertions (out.kindiscommitted, exactly one run plan). No assertion skipped, removed or weakened; no timeout raised. Test-only, one file.Why: the merge queue (run 44533961485, job 135595686454, Test Core 2/10) timed this case out at 5714 ms against the 5000 ms budget, while PR CI passed it at 3804 ms; a single refresh is about 1.4 to 1.5 s there, so three in one case sit on the budget edge on a loaded shard.
Tests
Local run of the file,
pnpm --filter @objectstack/scenarios exec vitest run --maxWorkers=2 --reporter=verbose test/export/refresh.test.ts, under the shared verify lock (shared-box timings):Before (origin/main f727061): 17/17 pass
After (branch head 36587a3, same tree as the measured ce5cb4ba53): 19/19 pass
pnpm --filter @objectstack/scenarios typecheck: exit 0 (the test file is in the tsc program, counted with--listFiles).Acceptance notes
files[](dist,README.md,CHANGELOG.md), so nothing publishes; labelledskip-changeset.Verification
Derived gate families (dispatch-gates --commands, 49 families)
48 ran with exit 0.
pnpm check:dual-build-cjs-loadsexited 3 (PREREQUISITE NOT MET: reads a full build's dist), so NOT MEASURED locally; CI's Lint and Repo Gates job measures it.dispatch-gates --ranreconciliation: 49 accounted, 48 run, 1 NOT-MEASURED, 0 UNRUN.overlap-check --branch=HEAD: VERDICT clean exit 0.🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CaysxGzF62ACvZ1x9x