Skip to content

Windows: two packages/codev unit tests flake on the Node 24 job (ide-server-stub npm-style shim; pir-1233 session launch loop) #1973

Backlog

Description

@waleedkadous

Problem

Two packages/codev unit tests fail intermittently on the on-demand Windows workflow (Node 24 unit job), on branches that change nothing in the code they test. A red Windows run then has to be explained by hand on every PR that dispatches the workflow.

Evidence

Run https://github.com/cluesmith/codev/actions/runs/45397300019 on builder/spir-1963 @ b758f8ffb (a VS Code extension branch; its only change under packages/codev is one test file, issue-id-parity.test.ts):

Attempt ide-server-stub.windows.test.ts › "npm-style shim" pir-1233-session-launch-loop.test.ts › "resumes the spawn-pinned session after an unnatural exit…"
1 failed — "IDE server on port … was not stopped: the port query failed" passed
2 passed failed — start.sh command failed

Every other job in the run passed on both attempts (Node 22 unit tests, CLI tests, install verification, all probes).

pir-1233-session-launch-loop.test.ts also failed on the Windows run for spir-1940 (run 45311869550), and is one of the spawn-heavy tests that time out on macOS under load (#1956) — so it may be the same timing sensitivity showing on a slower runner, not a Windows-only defect.

What is wanted

  • Find out whether each failure is a timing assumption in the test (a fixed wait, a port query racing process exit) or a real product race on Windows.
  • Fix the test or the product accordingly. Don't paper over it with a blanket retry.

Both files are under packages/codev/src/agent-farm/__tests__/.

Activity

  1. added
    area/tower
    on Nov 24, 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

    area/tower

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions