diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-24 14:31:48 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-24 14:31:48 +0200 |
| commit | 92114c3b6bfe8a3d28487fcfb34fd291c573500c (patch) | |
| tree | 35e0e35009517069e2bf35c6a628fad3a68a8ece /Magefile.go | |
| parent | d93d286b6b214f12e65214360a41f8668123f174 (diff) | |
integrationtests: reduce parallel flakiness in syscall capture
Diffstat (limited to 'Magefile.go')
| -rw-r--r-- | Magefile.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Magefile.go b/Magefile.go index edc106c..57ce61c 100644 --- a/Magefile.go +++ b/Magefile.go @@ -325,7 +325,12 @@ func runIntegrationTests(parallel bool) error { func resolveIntegrationParallelism() (int, error) { parallel := strings.TrimSpace(os.Getenv(integrationParallel)) if parallel == "" { - n := runtime.NumCPU() * 2 + // Conservative default for stability: high per-test process fan-out can + // cause missed first events under heavy load. + n := runtime.NumCPU() + if n > 2 { + n = 2 + } if n < 1 { n = 1 } |
