Skip to content

CI: Windows test jobs intermittently hang for 7+ minutes #147

@dorlugasigal

Description

@dorlugasigal

Windows CI jobs (Node 22 and Node 24 on windows-latest) intermittently hang for 7+ minutes during test runs that should complete in under a minute. This has been observed in multiple CI runs and requires manual cancellation and re-run to proceed.

Observed behavior:

  • Test (windows-latest, Node 20) completes in ~80s
  • Test (windows-latest, Node 22) and Test (windows-latest, Node 24) sometimes hang indefinitely
  • Cancelling and re-running the failed jobs usually resolves the issue

Possible causes to investigate:

  • PTY/node-pty process cleanup issues on Windows
  • Test isolation problems specific to newer Node versions on Windows
  • Potential deadlock in integration tests or WebSocket cleanup
  • Windows-specific CI runner resource contention

Relevant files:

  • test/integration.test.js — uses real PTY servers, longest-running test
  • test/cli/service.test.js — heavy require.cache manipulation
  • .github/workflows/ci.yml — CI matrix configuration

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions