Skip to content

test(rest): give the view CONTROL read the budget its cold lint load needs - #33433

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/area-A3-rest-view-timeout
Nov 14, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/area-A3-rest-view-timeout

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread

Summary

Test-only. packages/rest/src/meta-qualified-item-route.test.ts › "CONTROL — a type ADR-0150 does not address by package (view) is served as before" timed out (Test timed out in 5000ms) in two merge-queue builds for #33322 (runs 43633136778: 5089ms, 43637152754: 5281ms). It passed in a third queue build on the same code (43633195065: 2816ms).

Why

It is the file's only served view read. metadata-diagnostics.ts attaches @objectstack/lint warnings to view reads and loads the lint bundle lazily, so the first view read in a vitest worker pays the cold load: measured on main b462444, 716–853ms for the first drive and 1–2ms for an identical second drive; loading the bundle alone took 1027ms. On a loaded runner that load passes 5s. Nothing hangs. It only shows when the queue runs rest uncached (e.g. a PR that changes turbo.json).

What changes

  • The one test gets a 30s budget, with a comment naming the cold load it pays for. Assertions unchanged.

Local: origin/main 4 runs and main + #33322 2 runs, 302/302 each.

No changeset (test-only).

🤖 Generated with Claude Code

https://claude.ai/code/session_016WV4d1D3AzXvEhBbz79Pmi

…needs

The CONTROL case in meta-qualified-item-route.test.ts is the file's only
served `view` read, so it pays the one-off cold load of `@objectstack/lint`
that metadata-diagnostics attaches lazily: about 0.8s on an idle box, and
5.1s and 5.3s on two loaded merge-queue runs, past vitest's 5s default.
The read itself takes milliseconds once the bundle is loaded.

Claude-Session: https://claude.ai/code/session_016WV4d1D3AzXvEhBbz79Pmi
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet objectstack-fleet Bot added domain:server Domain lane — seat card indexed by label:pm:seat skip-changeset PR has no user-facing published change; bypasses the changeset gate labels Nov 14, 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 2797f81db7f78d0197f007b7ba502b5816e518c1 → packageMentionDocs.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · os-elon-musk · session_016WV4d1D3AzXvEhBbz79Pmi

ACCEPT · area A3

  • Test-only (no card): unblocks queue builds that run @objectstack/rest uncached; feat(service-storage): the uploader removes an attachment they uploaded, through an own-row door #33322 was dequeued twice by this one test.
  • Self-review: PASS · test-pin-only, 1 file, +6/−1, Clause-②: no — one test gets a 30s budget for the cold @objectstack/lint load it pays (measured 716–853ms idle, 5089/5281ms on loaded queue runners); assertions unchanged.
  • Governed: check-governed-merges --pr 33433 → NOT governed.
  • Checks: all green on head a71a2e5a11668d2f1be461bf472f3f1b436ef064.
  • Landing: ready + auto-merge (maintainer approval for this area, 2026-11-14 15:21Z).

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 14, 2026 21:24
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 14, 2026
Merged via the queue into main with commit 49306e6 Nov 14, 2026
62 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/area-A3-rest-view-timeout branch November 14, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain:server Domain lane — seat card indexed by label:pm:seat size/xs 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.

2 participants