Skip to content

Commit f3d26b6

Browse files
authored
Run each language tests in a separate job (#1508)
1 parent b1dcb30 commit f3d26b6

3 files changed

Lines changed: 162 additions & 195 deletions

File tree

.config/nextest.toml

Lines changed: 52 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,52 @@
1-
[[profile.default.overrides]]
2-
# Retry flaky node tests due to npm 403 errors
3-
filter = 'binary_id(prek::languages) and test(node::)'
4-
retries = 2
5-
slow-timeout = { period = "30s", terminate-after = 3 }
1+
[profile.ci-core]
2+
# Exclude language-specific integration tests from the main CI runs (except unimplemented/unsupported/script/fail/pygrep).
3+
default-filter = "not binary_id(prek::languages) or (binary_id(prek::languages) and (test(unimplemented::) or test(unsupported::) or test(script::) or test(fail::) or test(pygrep::)))"
4+
status-level = "skip"
5+
final-status-level = "slow"
6+
failure-output = "immediate"
7+
fail-fast = false
8+
test-threads = 8
9+
10+
[profile.lang-bun]
11+
inherits = "ci-core"
12+
default-filter = "binary_id(prek::languages) and test(bun::)"
13+
14+
[profile.lang-docker]
15+
inherits = "ci-core"
16+
default-filter = "binary_id(prek::languages) and (test(docker::) or test(docker_image::))"
17+
18+
[profile.lang-golang]
19+
inherits = "ci-core"
20+
default-filter = "binary_id(prek::languages) and test(golang::)"
21+
22+
[test-groups]
23+
serial = { max-threads = 1 }
24+
25+
[profile.lang-lua]
26+
inherits = "ci-core"
27+
default-filter = "binary_id(prek::languages) and test(lua::)"
28+
29+
[[profile.lang-lua.overrides]]
30+
# Run Lua language tests sequentially on Windows.
31+
platform = "cfg(windows)"
32+
test-group = "serial"
33+
34+
[profile.lang-node]
35+
inherits = "ci-core"
36+
default-filter = "binary_id(prek::languages) and test(node::)"
37+
38+
[profile.lang-python]
39+
inherits = "ci-core"
40+
default-filter = "binary_id(prek::languages) and test(python::)"
41+
42+
[profile.lang-ruby]
43+
inherits = "ci-core"
44+
default-filter = "binary_id(prek::languages) and test(ruby::)"
45+
46+
[profile.lang-rust]
47+
inherits = "ci-core"
48+
default-filter = "binary_id(prek::languages) and test(rust::)"
49+
50+
[profile.lang-swift]
51+
inherits = "ci-core"
52+
default-filter = "binary_id(prek::languages) and test(swift::)"

0 commit comments

Comments
 (0)