Skip to content

ci: native Vitest discovery times out before publishing candidate inventory #4149

Closed

Description

@schlessera

Context

Ready-candidate confirmation for #4036 failed before product proof could start. The changeset job timed out in native Vitest file discovery and published no inventory; the aggregate proof job then refused the incomplete selected proof. This blocks delivery of p1 #4033. It is not evidence of a failing product assertion or a red main branch.

browserInventory (scripts/proof-inputs.ts:55-112) runs node ../../node_modules/vitest/vitest.mjs list --filesOnly --json=<output> from packages/ui-kit, with CI=true and STORYBOOK_DISABLE_TELEMETRY=1. Its fixed 30-second lifetime includes child exit and both pipe drains. The #2380 option A ruling preserves that maximum; #2326 measured a cold discovery at 14,811 ms in the pinned two-CPU image.

The hosted receipt reports elapsed 30,333 ms, deadline 30,000 ms, timedOut: true, exitCode: null, signal: SIGKILL, stdout 0 bytes, stderr 38,826 bytes and inventory.present: false. Stderr ends with Vite native-config/CommonJS warnings. Those warnings are an observation, not an established root cause. Forty-four checks were skipped after discovery failed. The confirmation helper exited and released its owned reservation.

Out of scope

  • Raising or removing the fixed 30-second cap, suppressing failures, bypassing confirmation, or retrying an unchanged failure until green.
  • Dropping projects, narrowing the inventory to affected files, parsing diagnostics as the JSON envelope, or weakening cleanup/pipe-drain guarantees.
  • Changes to experiments: Git read qualification expects resolve after synchronous revision refusal #4033's test-only direct-ref correction, reference acquisition policy, native/backend equivalence, or unrelated product tests.

Scope

Diagnose why the native file-only discovery did not publish its complete inventory within the supported hosted budget, then resolve the cause without weakening the existing discovery and confirmation contract.

Acceptance criteria

  • A retained failing receipt identifies the responsible startup/discovery/lifetime phase, using the actual failed candidate and pinned environment where practical; the cause is established rather than inferred from warning text.
  • Complete native file-only discovery succeeds within the unchanged 30-second maximum in the supported pinned two-CPU environment, publishing the validated file-channel inventory for every declared browser, layout and endurance project.
  • Timeout, child failure, invalid/missing/duplicate inventory and unknown/missing project selection still fail closed; both pipes are drained and only the owned discovery process group is terminated/reaped.
  • Focused failing-first or mutation proof detects the repaired failure class, and existing discovery contract tests remain effective.
  • A new ordinary exact-candidate confirmation reaches all selected proof categories and they pass, with actual checkout, parent and tree evidence. Preserve the original failure separately.

Verification

Inspect the linked hosted logs and immutable checkout receipt. Reproduce with the same browserInventory invocation and supported image/resource limits; collect bounded phase evidence without changing the budget or selected projects. Run relevant discovery tests and bun run check:pr --base origin/main. Request fresh ordinary confirmation after the cause is corrected; record its selected-job checkout identities and results.

Contract impact

Preserve the #2380 discovery cap, complete project selection, validated JSON file channel, process-group ownership, pipe drains and fail-closed merge proof. No product API change is intended.

Activity

  1. added this to the 0.45.0 milestone on Nov 17, 2026
  2. added
    type: fixSomething is broken and must behave the way it is documented.
    area: ciCI workflows, the gates they run, release scripts, packaging.
    priority: p1Scheduled into the current or next milestone.
    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.
    on Nov 17, 2026
  3. self-assigned this
    on Nov 17, 2026
  4. schlessera commented on Nov 17, 2026

    @schlessera
    OwnerAuthor

    Claimed for implementation. Claim token: claim-5983fbad. Branch: fix/4149-native-discovery-startup.

    collisions: closure-only reports against scripts/proof-inputs.ts; no direct path owner

  5. schlessera commented on Nov 17, 2026

    @schlessera
    OwnerAuthor

    Merged in #4160 as ddb5b5c84 through the integration lease (orchestrator merge queue for 0.45.0). Candidate confirmation passed on the exact head; the squash's own main run carries the post-merge heavy categories.

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

Metadata

Metadata

Assignees

Labels

agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: ciCI workflows, the gates they run, release scripts, packaging.priority: p1Scheduled into the current or next milestone.type: fixSomething is broken and must behave the way it is documented.

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions