Skip to content

Commit e2e7367

Browse files
fansenzeclaude
andcommitted
fix(ci): reduce test parallelism on Windows to prevent disk exhaustion
Use -p 1 on Windows to run one package at a time, reducing disk pressure from accumulated build artifacts. Other platforms use default parallelism. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 83e2e37 commit e2e7367

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,15 @@ jobs:
7373
Write-Host "Disk space after cleanup:"
7474
Get-PSDrive C | Select-Object Used,Free | Format-Table
7575
76-
- name: Unit Test
76+
- name: Unit Test (Windows)
77+
if: runner.os == 'Windows'
78+
run: |
79+
go test -parallel 4 -p 1 ./internal/...
80+
81+
- name: Unit Test (Non-Windows)
82+
if: runner.os != 'Windows'
7783
run: |
78-
go test -parallel 4 -p 2 ./internal/...
84+
go test -parallel 4 ./internal/...
7985
lint:
8086
name: Lint&Check
8187
runs-on: rspack-ubuntu-22.04-large

0 commit comments

Comments
 (0)