Skip to content

Commit 6b5a77b

Browse files
committed
explicitly populate cache with dedicated test "profile"
1 parent 920e838 commit 6b5a77b

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

.config/nextest.toml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,9 @@ slow-timeout = "10s"
1616
# show which tests were skipped
1717
status-level = "skip"
1818

19-
[test-groups]
20-
# keep cache-setup group serialized to avoid race conditions installing clang tools.
21-
cache-setup = { max-threads = 1 }
22-
23-
[[profile.default.overrides]]
24-
# Run these tests with the highest priority.
25-
filter = 'test(#*eval_version)'
26-
priority = 100
27-
# assign it to a test group so that it can be run separately
28-
test-group = 'cache-setup'
19+
[profile.warmup]
20+
# Run this profile before other tests to warmup the cache of clang tools binaries.
21+
default-filter = 'test(#*eval_version)'
2922

3023
[profile.ci]
3124
# A profile to run only tests that use clang-tidy and/or clang-format
@@ -40,7 +33,7 @@ failure-output = "immediate-final"
4033

4134
[profile.all]
4235
# A profile to run all tests (including tests that run longer than 10 seconds)
43-
default-filter = "all()"
36+
default-filter = "all() - test(#*eval_version)"
4437

4538
# Revert slow-timeout to nextest default value.
4639
# Otherwise, default profile value (10s) is inherited.

.github/workflows/run-dev-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ jobs:
107107
for $ver in ($min_ver..$max_ver) {
108108
print $"::group::Testing with clang v($ver)"
109109
with-env { CLANG_VERSION: $"($ver)" } {
110+
nur test --profile warmup
110111
let test_profile = (
111112
if ($ver == $max_ver) { "all" } else { "ci" }
112113
)

0 commit comments

Comments
 (0)