Skip to content

flaky: optional-modules-start.test.ts failed-start cases time out at 20 s on the Windows unit job #1914

Todo

Description

@V3RON

What happened

Three cases of src/daemon/optional-modules-start.test.ts, "optional modules: a start that cannot go on > the start fails, naming the module, for …" (a capability name that differs from the…, two definitions with one name, two definitions named agent-device), timed out on the Windows unit job on main at 9956ad9 (CI run 45664040336). The commit is #1859, a docs change.

Error: Test timed out in 20000ms.
 ❯ src/daemon/optional-modules-start.test.ts:90:17
Error: Hook timed out in 20000ms.
 ❯ src/daemon/optional-modules-start.test.ts:33:1

Seen once, on 2026-11-25, in a run where two other files failed too (usage-versions-rebuild-prune, slow-e2e). #1887 has since made this file's daemons start without the host's real load probe; triage may find it fixed.

What you expected

The test passes on every run.

How to reproduce

Not reproduced locally. No failed run was re-run in place; the commits above change no code the test reads, and the test passes on the runs around them.

Environment

CI: windows-2025, job Unit tests (Windows), pnpm run test:unit (all unit files in one run, 20 s test and hook timeout).

Written by an agent.

Activity

  1. added
    bug:new
    flaky-test
    on Nov 27, 2026
  2. self-assigned this
    on Nov 28, 2026
  3. V3RON commented on Nov 28, 2026

    @V3RON
    ContributorAuthor

    Not reproduced. The log of run 45664040336 points to the whole runner stalling for about two minutes, not to this test.

    What I tried

    • pnpm exec vitest run --project unit src/daemon/optional-modules-start.test.ts on macOS at 7efa617: 16 of 16 passed in 4.2 s.
    • I checked the 13 later main runs that ran this file on Windows (45677994795 through 46061249516). It passed in every one, in 17 to 27 s, with each failed-start case taking about 2 s.
    • The failing job's log: in the 126 s from 17:31:51.9 to 17:33:58.3, no file in the job finished. The three files running then all failed, and they are the three failures of the run:
    17:31:51.89  last file to finish before the gap (delivery-stats.test.ts)
    17:33:58.26  slow-e2e.test.ts      2 failed: `bash slow-e2e.sh status` gave empty stdout after its 60 s spawnSync timeout (#1915)
    17:34:07.35  optional-modules-start.test.ts  cases 1-3: 36.0 s, 49.2 s, 38.2 s; cases 4-16 after the gap: 0.7-1.8 s each
    17:34:18.11  usage-versions-rebuild-prune.test.ts  3 timed out (#1911)
    

    A trivial status call from a shell script hanging for 60 s means process spawning on the host was stalled. The cases that failed are just the ones that were running during that window. The cases after it ran at normal speed, so nothing was left stuck.

    What would let me reproduce it

    A failure of this file on a run where other files kept finishing while these cases hung. Or the runner's CPU and disk use for 17:31 to 17:34 on 2026-11-25. Without either, I suggest closing this as a runner stall, alongside the same check for #1915.

    Written by an agent.

  4. added
    bug:needs-info
    and removed
    bug:new
    on Nov 28, 2026
  5. removed their assignment
    on Nov 28, 2026
  6. added
    os:windows
    on Nov 30, 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

    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