Skip to content

🛠 Repo: test-node:integration on windows-latest for --parallel tests #5467

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Tooling Suggestion Checklist

Overview

Example from #5408 -> https://github.com/mochajs/mocha/actions/runs/18016406085/job/51262764441?pr=5408:

  1) --parallel
       pool shutdown
         during normal operation
           should not leave orphaned processes around:
     Error: Error: spawn wmic ENOENT
      at ChildProcess.<anonymous> (node_modules\pidtree\lib\bin.js:34:10)
      at ChildProcess.emit (node:events:524:28)
      at ChildProcess._handle.onexit (node:internal/child_process:291:12)
      at onErrorNT (node:internal/child_process:483:16)
      at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

  2) --parallel
       pool shutdown
         during operation with --bail
           should not leave orphaned processes around:
     Error: Error: spawn wmic ENOENT
      at ChildProcess.<anonymous> (node_modules\pidtree\lib\bin.js:34:10)
      at ChildProcess.emit (node:events:524:28)
      at ChildProcess._handle.onexit (node:internal/child_process:291:12)
      at onErrorNT (node:internal/child_process:483:16)
      at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

This happens on:

  • 18.20.8
  • 20.19.4
  • 22.18.0
  • 24.6.0

This does not happen on the same Node.js versions in ubuntu-latest machines.

Additional Info

That 18.20.8 run also showed a failure on --watch:

  3) --watch
       when enabled
         with required hooks
           mochaHooks.afterAll runs as expected:
     UnexpectedError: 
expected 1 to equal 2

      at D:\a\mocha\mocha\test\integration\options\watch.spec.js:362:13
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      set UNEXPECTED_FULL_TRACE=true to see the full stack trace

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions