Skip to content

plugin-approvals flow-route test: the first #38838 case times out at 5 s on loaded CI shards (cold kernel boot) #38976

Description

@objectstack-fleet

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

Filing gate: ② seat-filed from three red runs on unrelated PRs. Grading: area:workflow · Bug · p2 · domain:server · reach: every PR whose Test Core shard 11/12 runs plugin-approvals; it dequeues merge-queue groups and holds PRs that do not touch the file. Not claimed.

What

packages/plugins/plugin-approvals/src/flow-route.integration.test.ts › "[#38838] a fan-out to two approval steps is refused at publish" › its first case ("an active save is refused with 422 INVALID_METADATA…") fails with Test timed out in 5000ms. The first case pays a cold kernel boot (ObjectQL, automation, approvals, sqlite) inside the default 5 s test timeout. The suite came with #38838 (PR #38871).

Seen on 2026-12-01, always this one case, no assertion failure:

Locally the case takes 1.2–1.3 s on main; on green CI runs elsewhere 2.1–3.9 s, so a loaded shard crosses 5 s.

Ask

Move the kernel boot out of the first case (a beforeAll with its own timeout, as sibling suites in the package do) or give the describe an explicit timeout, so the first case measures the refusal and not the boot. Behaviour asserted stays the same.

Re-check

Shard 11/12 of Test Core green on three consecutive runs that include this file; no case in the file carries the default 5 s budget for a kernel boot.

Activity

  1. added
    bug
    priority:p2
    area:workflow
    domain:server
    on Dec 1, 2026
  2. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    Triage: first-touch · lane grade kept: area:workflow · Bug · p2 · pm:queue (a timing flake that dequeues merge-queue groups of unrelated PRs).

  3. added
    pm:queue
    on Dec 1, 2026
  4. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

    Claim: PM loop round 1
    Session: session_01QSeKYnrQ7UMtHofKQVjcH2
    Account: os-justin
    Branch: claude/issue-38976-flow-route-shared-boot
    Worktree: objectstack-issue-38976
    Domain: domain:server
    Seat: repo:objectstack@os-justin
    File surface: packages/plugins/plugin-approvals/src/flow-route.integration.test.ts (reason: split out of PR #38970 into its own PR at the filer's request 7323909818, so it lands ahead of #38970's maintainer approval) (stop on breach; explain in the report)
    Container & model: XS, mode:subagent, model: opus (dispatch-gates --tier: no path-derived mandate; floor sonnet · default opus · ceiling fable — default tier; carried by the #38875 dev already in flight), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7318726410
    Premise: holds (the first case of the "[#38838] … refused at publish" describe paid a cold kernel.bootstrap() inside vitest's 5 s default; measured 4,383–4,813 ms on CI today, one red on PR #38949's shard)
    Serial constraints cleared: the file is also held by claim 7312510992 (#38875, PR #38970, awaiting the maintainer); this PR changes only the #38838 describe's boot on main's text, and PR #38970 merges main after it lands.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 1, 2026
  6. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
    os-dev-report

    {
      "issue": 38976,
      "status": "done",
      "branch": "claude/issue-38976-flow-route-shared-boot",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/39002",
      "session": "session_01QSeKYnrQ7UMtHofKQVjcH2",
      "premise_still_valid": true,
      "summary": "In the describe '[#38838] a fan-out to two approval steps is refused at publish' the per-case `await boot()` plus `afterEach` shutdown became one `beforeAll(() => boot(), 30_000)` with an `afterAll` shutdown; the now-unused `afterEach` import was dropped; nothing else in the file moved. Sharing was checked by reading: each case saves and reads only its own flow name, the two refusals write nothing, the engine case uses no kernel, and the control's one row is read by no other case. Inside this describe the text is byte-identical to PR #38970's branch (the diff against origin/claude/issue-38875-conditioned-edge-pause-drop has no hunk in it), so merging main into #38970 later is trivial. Head ec2df9eac3 (one commit on base 38ab473c3e).",
      "tests": "Verbose reporter, shared box. Before (main 38ab473c3e): active-save refusal 964 ms, draft refusal 71 ms, engine registration 3 ms, conditional control 167 ms. After (tree of ec2df9eac3; the amend changed only the message): 18 ms, 6 ms, 4 ms, 119 ms. Whole file 24/24 passed both times. `pnpm --filter @objectstack/plugin-approvals test`: Test Files 144 passed (144), Tests 2275 passed (2275). `pnpm --filter @objectstack/plugin-approvals typecheck`: check:test-typecheck OK. No ablation: no tested behaviour changed (only where the boot happens).",
      "gates": "Local: `node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --ran` gives 56 derived, 51 run (each exit 0, captured before any pipe), 5 NOT MEASURED, 0 unrun. NOT MEASURED: check:dual-build-cjs-loads (exit 3, prerequisite not met: no workspace-wide dist); check:i18n (exit 3, CLI not built); check:query-options-erasure (exit 124 at my 280 s cap); check:slot-lookup (exit 124 at a 120 s cap); check:type-check-debt (exit 124 at a 50 s cap). These three were stopped by my own `timeout` cap, not refusals by the gate. Changeset check: built plugin-approvals JS dist has 0 hits for the test's strings and 2 for the positive control ApprovalsServicePlugin, so `skip-changeset` was declared on pr_create. That local build's DTS step failed on @objectstack/spec/contracts declarations, a spec dist state on the shared box that this diff does not touch. CI check-runs on #39002 had not been read when this was written; they belong to the seat's L1.",
      "mcp_calls": "0",
      "api_writes": "2 via relay plus 1 git push: pr_create (POST pulls, POST issues/39002/assignees, POST issues/39002/labels) in relay run 46740355695; this os-dev-report comment via post-stamped.mjs on issue 38976",
      "classifier_refusals": [],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  7. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

    Landed 2026-12-01T21:36Z: PR #39002 merged (merge commit 202cc2860d); this card closed by its Fixes. The "[#38838] … refused at publish" describe now boots one kernel in beforeAll(() => boot(), 30_000) with an afterAll shutdown; its first case went from ~964 ms (4.4–4.8 s on loaded CI shards, past vitest's 5 s default) to ~18 ms. Split out of PR #38970 at the filer's request (7323909818); #38970 carries the same describe byte-identical and merges main when its approval comes. pm:dispatched removed in this stroke.

  8. removed
    pm:dispatched
    on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:workflowbugdomain:serverpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions