Repository navigation
Fix Windows CI with Node 26.14 - #9494
Conversation
Changelog🏠 Internal
Semantic Diff1 commit · Full page ✨ Fix Windows CI with Node 26.14caf1d1a · cknitt + Claude · Dec 01, 2026, 17:40 UTC · new
The test scripts now resolve Mocha's CLI script from node_modules and run it with node, like other scripts. |
Why:
Since Node 26.14.0, the Windows CI job fails before any test runs:
`npx mocha` looks for D:\a\rescript\mocha\bin\mocha.js, one directory
above the checkout. Node 26.13.1 worked, and nothing else changed.
The test scripts now resolve Mocha's CLI script from node_modules and run
it with node, like other scripts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kbf3gH9cXWp3xtBmfRV3Du
Signed-off-by: Christoph Knittel <ck@cca.io>
ee32f7d to
caf1d1a
Compare
✅ Compiler benchmarksAllocated wordsIn total: 655,171,840 → 655,173,078 (±0.00%). Generated projects: 627,298,938 → 627,298,783 (±0.00%). None of the 265 benchmarks changed by 0.1% or more. InstructionsIn total: 9,128,430,172 → 9,128,430,172 (±0.00%). None of the 33 benchmarks changed by 0.1% or more. Output sizeIn total: 27,368,788 → 27,368,788 (±0.00%). None of the 13 benchmarks changed by 0.1% or more. Pull request caf1d1a compared with base 4717690 in this run. |
rescript
@rescript/belt
@rescript/darwin-arm64
@rescript/linux-arm64
@rescript/linux-x64
@rescript/runtime
@rescript/win32-x64
commit: |
|
Developer playground preview: https://rescript-lang.github.io/rescript/dev-playground/?version=pr-9494 |
Since Node 26.14.0 became available today, the Windows CI job fails before any test runs:
npx mochalooks for Mocha one directory above the checkout (D:\a\rescript\rescript). It hit #9491, #9492 and #9493, three unrelated changes. Master's last run passed on the same runner image with Node 26.13.1..nvmrcsays26, so CI now picks up 26.14.0, and the Node version is the only thing that changed between the runs.The fix.
mocha()inlib_dev/process.jsresolvesmocha/bin/mocha.jsfromnode_modulesand runs it withnode, as thenode()helper does for other scripts. That takesnpxand its Windows shim out of the path.I could not try this on Windows locally, so this PR's Windows job is the check.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Kbf3gH9cXWp3xtBmfRV3Du