Skip to content

Commit 73e71f7

Browse files
authored
ci(fix): Fix flaky macOS tests (#11128)
### Description Some tests are flaky on macOS. Choosing to run them serially to see if they stop flaking. This likely only masks a root cause(s) that we should investigate further in the future. ### Testing Instructions CI <sub>CLOSES TURBO-4963</sub>
1 parent 646380a commit 73e71f7

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.config/nextest.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Nextest configuration for Turborepo
2+
# See https://nexte.st/book/configuration.html
3+
4+
[test-groups]
5+
# turborepo-process tests should run serially to avoid resource contention
6+
# and timing issues, especially on macOS where PTY devices are limited
7+
turborepo-process-serial = { max-threads = 1 }
8+
9+
# Integration tests that spawn turbo binaries should run serially to avoid
10+
# race conditions with binary detection and stdout/stderr capture
11+
turborepo-integration-serial = { max-threads = 1 }
12+
13+
[[profile.default.overrides]]
14+
# Run all tests in the turborepo-process crate serially
15+
filter = 'package(turborepo-process)'
16+
test-group = 'turborepo-process-serial'
17+
18+
[[profile.default.overrides]]
19+
# Run integration tests that use check_json_output! serially
20+
# These tests spawn turbo processes and parse JSON from stdout
21+
filter = 'package(turbo) and (test(boundaries) or test(query) or test(ls))'
22+
test-group = 'turborepo-integration-serial'

0 commit comments

Comments
 (0)