Skip to content

Commit e2218aa

Browse files
ci: raise the heap for the coverage run
`.c8rc.json` sets `exclude-after-remap`, so c8 source-map remaps every script V8 reported — all of node_modules included — before applying its `packages/*/src` include filter. On macOS runners that peaked at 2033 MB against Node.js 20's 2078 MB default cap: every test passed and the process then died merging coverage. Updating webpack to 5.110 grows what has to be remapped (measured over `test/build/config-format`: 99 MB of V8 coverage across 55 files before, 103 MB across 60 after), which is more than the 45 MB of headroom that job had left. Node.js 22 and newer, and the Linux and Windows runners, have room to spare and were unaffected.
1 parent cf5330d commit e2218aa

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎.github/workflows/nodejs.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ jobs:
9494

9595
- name: Run tests and generate coverage
9696
run: npm run test:coverage -- --ci
97+
env:
98+
# c8 remaps every script V8 reported before applying its include
99+
# filter, which exceeds Node.js 20's default heap on macOS runners
100+
NODE_OPTIONS: --max-old-space-size=4096
97101

98102
- name: Upload coverage to Codecov
99103
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0

0 commit comments

Comments
 (0)