Commit 377b8d6
committed
fix(test): reduce thread count on macOS CI to prevent SIGABRT
macOS CI runners have limited memory compared to Linux runners. Using
os.cpus().length threads was causing memory exhaustion and SIGABRT
errors during test execution.
Changes:
- Detect macOS CI environment (CI=true && platform=darwin)
- Use 50% of CPUs on macOS CI (min 2) to prevent memory issues
- Keep full CPU count on other platforms for optimal performance
- Update minThreads calculation to be proportional to maxThreads
This should resolve the intermittent SIGABRT failures on macOS CI
while maintaining full performance on Linux and Windows runners.1 parent 1f47366 commit 377b8d6
1 file changed
+20
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
17 | 34 | | |
18 | 35 | | |
19 | 36 | | |
| |||
40 | 57 | | |
41 | 58 | | |
42 | 59 | | |
43 | | - | |
44 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
45 | 63 | | |
46 | 64 | | |
47 | 65 | | |
| |||
0 commit comments