Skip to content

Commit 7040c95

Browse files
committed
chore: max 1 test per core
Signed-off-by: Danny Kopping <danny@coder.com>
1 parent 4af1430 commit 7040c95

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -628,13 +628,14 @@ jobs:
628628
# instances where tests appear to hang for multiple seconds, resulting in flaky tests when
629629
# short timeouts are used.
630630
# c.f. discussion on https://github.com/coder/coder/pull/15106
631-
# Our Linux runners have 32 cores, but we use reduced parallelism for race detection.
631+
# Our Linux runners have 32 cores, but we reduce parallelism since race detection adds a lot of overhead.
632+
# We aim to have parallelism match CPU count (8*4=32) to avoid making flakes worse.
632633
- name: Run Tests
633634
uses: ./.github/actions/test-go-pg
634635
with:
635636
postgres-version: "17"
636-
test-parallelism-packages: "16"
637-
test-parallelism-tests: "8"
637+
test-parallelism-packages: "8"
638+
test-parallelism-tests: "4"
638639
race-detection: "true"
639640

640641
- name: Upload Test Cache

0 commit comments

Comments
 (0)