Skip to content

test(scenarios): split the three-shape no-skip refresh case into one case per shape - #35531

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/scenarios-refresh-test-split
Nov 19, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/scenarios-refresh-test-split

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Clause-②: no
Metadata-protocol: none

维护者速读

  1. 用户能看到什么变化:用户无感,只改了一条测试的写法。
  2. 为什么做:这条测试把三次完整的画廊刷新塞进一个用例,在合并队列的繁忙机器上超过五秒上限而失败,挡住了别的改动入队。
  3. 出错会怎样:最坏只是这条测试本身失败,不影响任何发布内容,回滚即可。
  4. 要你做什么:无。

席位核对

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 full galleryRefresh (git init, the fixture crm run, a commit) inside vitest's default 5000 ms per-test budget. It is now an it.each over the three shapes (one listed app older; an index listing no app; no index), each its own case with the same two assertions (out.kind is committed, 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
does not skip when one listed app is on an older version, or when the index lists no app 910ms
Test Files  1 passed (1)
     Tests  17 passed (17)
After (branch head 36587a3, same tree as the measured ce5cb4ba53): 19/19 pass
does not skip when one listed app is on an older version 560ms
does not skip when the index lists no app 200ms
does not skip when the gallery has no index 187ms
Test Files  1 passed (1)
     Tests  19 passed (19)

pnpm --filter @objectstack/scenarios typecheck: exit 0 (the test file is in the tsc program, counted with --listFiles).

Acceptance notes

  • The first case of the three keeps most of the old wall time locally (it pays the first crm-fixture run); on the queue shard each case is expected near the 1.4 to 1.5 s single-refresh reading, well inside 5000 ms.
  • No changeset: the test file is not in the package's files[] (dist, README.md, CHANGELOG.md), so nothing publishes; labelled skip-changeset.

Verification

Derived gate families (dispatch-gates --commands, 49 families)

48 ran with exit 0. pnpm check:dual-build-cjs-loads exited 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 --ran reconciliation: 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

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

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 94fb8db2d170543fbd770f89849164d4b51e2e48 → packageMentionDocs.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x
os-dev-report

{
  "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."
}

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x

Landing · head 36587a38e3 · no-card, test-only (+12/−8, one test file), self-landed by the area · 2026-11-19T14:37Z

Probe Reading
Checks at head 36587a38e3 33 success, 21 skipped, 0 failed
check-governed-merges.mjs --pr 35531 NOT governed, 20 lines
Mergeable clean
Contract record none owed (Clause-②: no, Metadata-protocol: none; no published file changes, skip-changeset)

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: pr_ready + automerge_enable. On MERGED the area re-queues #35459.

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

Labels

size/s 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.

1 participant