Skip to content

ci: changed-browser discovery discards its child failure diagnostics #4241

Open

Description

@schlessera

Part of #2753, which owns attributable browser verification.

Context

Found while landing #4192 / PR #4236 and waiting for PR #4199's integration reservation. PR #4199's confirmation run 44177638029, head 4dacbc1c9ed26b2a6a2a722608a4471d9a516798, failed unit (6), job 134374118385 before executing tests. The bun scripts/ci-plan.ts recomputation started at 21:16:00.991 UTC on 2026-11-17 and failed at 21:16:27.766 with only:

Cannot expand 2 changed browser spec(s) to project/file pairs: Installed Vitest discovery failed

listBrowserSpecs (scripts/browser-input-closure.ts:242-260) starts installed Vitest list --filesOnly with a fixed 15,000 ms timeout and pipes stdout/stderr, but throws a generic string for a nonzero exit without preserving the exit code, signal, timeout identity or output. The caller (browserDeterminismPairs, scripts/ci-plan.ts:343-348) can consequently report no cause. The observed elapsed planning time includes work before this child starts: it is not proof that this child timed out. A later refreshed-head confirmation listed the two specs successfully (run 44184889370). The original failed job was untouched, and its cause remains unobserved.

This is a different caller from browserInventory's structured discovery/cleanup primitive, whose diagnostics and fixed 30-second budget were delivered for #2153 and #2380. #4159 separately tracks repeated root-config bundling; its performance investigation does not preserve the missing child diagnostics here. Other selection jobs and PR #4236's own repeated browser runs completed successfully, so this receipt alone does not establish a product regression or a particular child failure cause.

Out of scope

Scope

Preserve the real child failure evidence in this discovery path, diagnose the hosted refusal, and reconcile this caller's hang watchdog with the existing discovery policy once its execution evidence is available. Reuse existing discovery/process-control code where appropriate, retaining complete project/file validation and owned cleanup. A timeout-only catch-all may be raised under the 2026-11-17 ruling; that does not justify claiming a cause absent from this log.

Acceptance criteria

  • A failed listing reports bounded stdout/stderr, elapsed/deadline, exit/signal/timeout and inventory-publication identity before cleanup; the original generic failure remains recorded separately from a reproduction.
  • Real native child controls demonstrate the intended failing assertion and restored behavior for failure, timeout and successful listing, including cleanup. A module-load error is not timeout proof.
  • The hosted failure is attributed with process evidence, or the remaining attribution gap is explicitly recorded. Any budget change names its measured basis and margin and retains a hard maximum.
  • Successful discovery retains every declared project/file pair; missing, malformed or unsuccessful discovery cannot become empty successful selection.
  • Focused proof, bun run check:pr --base origin/main, and selected hosted proof pass without rerunning the original failed job into green.

Verification

Use the linked failed job as the initial receipt, the installed pinned Vitest version, an offline native child harness, and cold/warm file-only listing under stated resources. Compare inventories and keep failing-first/restored receipts.

Contract impact

Internal CI discovery and diagnostics only. No public CLI, MCP, frontmatter or package API change is proposed.

Current reproduction — 2026-11-20

On main bd751d434, Bun 1.4.4 and Node 26.13.0, exercised listBrowserSpecs from bun -e against an owned temporary root. A real Node child at the expected Vitest path wrote a marker, emitted ITHACA_DISCOVERY_STDOUT and ITHACA_DISCOVERY_STDERR, and exited 23. The caller should retain the bounded child evidence. It instead threw only Installed Vitest discovery failed. The marker confirmed the child ran, and the inventory path was cleaned. This reproduces diagnostic loss and leaves attribution of the historical hosted termination open.

Priority p2 records an actionable unscheduled fix to selected browser proof diagnostics.

Activity

  1. added
    type: fix
    area: ci
    on Nov 17, 2026
  2. schlessera commented on Nov 17, 2026

    @schlessera
    OwnerAuthor

    One more data point for attribution. PR #4199's single infrastructure retry (recorded on the PR) ran as confirmation run 44184889370, which passed. Its head was 3f10e70bd6040b1e2b799665f4ee715fc06813aa: #4199's unchanged changes, refreshed onto a newer main because main moved before the retry. The same two changed browser specs were expanded successfully there. The failed job 134374118385 was not rerun. The original receipt stays the failing evidence; this run does not show the cause.

  3. added
    agent-ready
    priority: p2
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyarea: cipriority: p2type: fix

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions