Skip to content

flaky: report-guard.test.ts lens-less fix-check shebang case times out at 20 s on the Windows unit job #2095

Todo

Description

@V3RON

What happened

src/report-guard.test.ts, "report-guard.mjs > sends back a lens-less fix-check whose fix changed a shebang", timed out at 20 s on the Windows unit job (shard 2/3) on PR #2087, at 5f193ec, attempt 1 of the CI run (job). The same job run also failed src/agent-device/edge-allocate.test.ts and src/agent-device/gateway-handover.test.ts, both in the 20 s window of this one run. A re-run of the run (attempt 2) passed.

FAIL  unit  src/report-guard.test.ts > report-guard.mjs > sends back a lens-less fix-check whose fix changed a shebang
TestTimeoutError: Test timed out in 20000ms.
 ❯ src/report-guard.test.ts:418:5

The test is a case of one it.each table (line 418). It builds a git repository from two small file maps and runs the guard script on it, so each case starts git and node processes. Other cases of the table passed in the same run, at 1.5 to 5.3 s each.

What you expected

The test passes on every run.

How to reproduce

Not reproduced locally: it runs on Windows only. Seen once, on 2026-12-03. The PR changes agent-device code, not report-guard; the shard ran 384 s and three files failed, so a loaded runner is a likely cause, not a known one.

Environment

CI: windows-2025, job Unit tests (Windows) (2/3), pnpm run test:unit (20 s test timeout).

Written by an agent.

Activity

  1. added
    bug:new
    flaky-test
    os:windows
    on Dec 3, 2026
  2. self-assigned this
    on Dec 3, 2026
  3. V3RON commented on Dec 3, 2026

    @V3RON
    ContributorAuthor

    Not reproduced. The job log points to the whole runner stalling for about 50 s, not to this test or to report-guard.mjs.

    What I tried

    • pnpm exec vitest run --project unit src/report-guard.test.ts -t "shebang|shell script" on macOS at b2dd634: 3 of 3 passed in 1.1 s.
    • 7 later main CI runs (47065677173 through 47184626915) ran this file on Windows. The shebang case passed in every one, in 1.0 to 1.9 s. The whole file took 72 to 90 s; on the failing attempt it took 138 s. On attempt 2 of the failing run, the case took 1.2 s.
    • The case runs the same steps as "a command in a shell script" (5.1 s in the failing job), only with a different file. semantic-lines.mjs has no regex that slows down on #!/bin/bash.
    • The failing job's log: in the 49.7 s from 13:53:56.0 to 13:54:45.7, no file in the job finished. The three files running then all failed, and they are the three failures of the run:
    13:53:56.03  last file to finish before the gap (fleet-routing-ranges-and-except.test.ts)
    13:54:45.73  report-guard.test.ts      shebang case 21.4 s; its sum of earlier cases puts it at about 13:53:59-13:54:21
    13:54:54.97  edge-allocate.test.ts     first test timed out at 20 s (#2096); the file started about 13:53:57
    13:54:58.73  gateway-handover.test.ts  B10, its first test, 37.4 s (#2097); the file started about 13:53:52
    

    This is the same pattern as the stall on #1914. The cases before and after the shebang case ran at their normal 1.5 to 5.3 s.

    What would let me reproduce it

    A failure of this case on a run where other files kept finishing while it hung. Or the runner's CPU and disk use from 13:53 to 13:55 on 2026-12-03. Without either, I suggest closing this as a runner stall. #2096 and #2097 should get the same check, because their failing tests ran inside the same gap.

    Written by an agent.

  4. added
    bug:needs-info
    and removed
    bug:new
    on Dec 3, 2026
  5. removed their assignment
    on Dec 3, 2026
  6. V3RON commented on Dec 3, 2026

    @V3RON
    ContributorAuthor

    Delivery run

    Merged: none
    Parked: #2095 — triage could not reproduce (likely a Windows runner stall); moved to bug:needs-info, fast track held

    Written by an agent.

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

    bug:needs-infoflaky-testos:windows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions