fix(ci): bump coverage heap budget + Windows npm timeout in runNpm helper (#3704)
Set NODE_OPTIONS=--max-old-space-size=6144 on the Unit coverage step so the c8 report phase has 6 GB instead of Node's default ~4 GB heap; the Linux Node 24 runner has 7 GB available so this leaves 1 GB headroom. Raise the runNpm default timeout from 55 000 ms to 180 000 ms so cold-cache Windows npm install -g runs (which take 60-90 s on NTFS + Defender) complete before the child process is killed. Refs #3703 Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@@ -219,6 +219,8 @@ jobs:
|
|||||||
run: npm run build:sdk
|
run: npm run build:sdk
|
||||||
- name: Unit coverage
|
- name: Unit coverage
|
||||||
shell: bash
|
shell: bash
|
||||||
|
env:
|
||||||
|
NODE_OPTIONS: --max-old-space-size=6144
|
||||||
run: npm run test:coverage:unit
|
run: npm run test:coverage:unit
|
||||||
- name: Upload coverage artifact
|
- name: Upload coverage artifact
|
||||||
if: always()
|
if: always()
|
||||||
|
|||||||
@@ -250,7 +250,7 @@ function runNpm(args, options = {}) {
|
|||||||
const defaults = {
|
const defaults = {
|
||||||
encoding: 'utf-8',
|
encoding: 'utf-8',
|
||||||
shell: isWindows,
|
shell: isWindows,
|
||||||
timeout: 55000,
|
timeout: 180000,
|
||||||
};
|
};
|
||||||
return execFileSync(npmCmd, args, { ...defaults, ...options }).trim();
|
return execFileSync(npmCmd, args, { ...defaults, ...options }).trim();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user