Skip to content

Commit e03c028

Browse files
fpetititclaude
andcommitted
Work around node:test IPC bug in CI on Node 22.x
Node 22's default per-file process isolation intermittently hits an upstream node:test bug (nodejs/node#64061, #56802: "Unable to deserialize cloned data") that has failed master's CI twice, unrelated to any code change. --experimental-test-isolation=none avoids the buggy channel by running tests in-process; kept npm test as-is for 20.x since the flag doesn't exist there. Co-Authored-By: Claude Sonnet 5 <[email protected]>
1 parent 9c08f07 commit e03c028

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

‎.github/workflows/ci.yml‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,14 @@ jobs:
1818
node-version: ${{ matrix.node-version }}
1919
cache: npm
2020
- run: npm ci
21-
- run: npm test
21+
- name: Run tests
22+
# Node 22.x's default per-file process isolation hits a known node:test IPC bug
23+
# (nodejs/node#64061, #56802: "Unable to deserialize cloned data due to invalid or
24+
# unsupported version"), intermittent in CI. --experimental-test-isolation=none avoids
25+
# the buggy channel by running all test files in-process; the flag doesn't exist on 20.x.
26+
run: |
27+
if [ "${{ matrix.node-version }}" = "22.x" ]; then
28+
node --experimental-test-isolation=none --test test/engine.test.js test/markdown.test.js test/report.test.js test/cli.test.js test/runner.test.js
29+
else
30+
npm test
31+
fi

0 commit comments

Comments
 (0)