Skip to content

Commit

Permalink
Make uv tests on Windows run sequentially
Browse files Browse the repository at this point in the history
  • Loading branch information
j178 committed Nov 23, 2024
1 parent 81455fb commit 569c638
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[test-groups]
uv = { max-threads = 1}

# On Windows, concurrent uv runs may fail by `Access Denied` errors
# due to concurrent uv cache writes.
# Configure these tests to run sequentially.
[[profile.default.overrides]]
filter = 'test(/^(run::run_basic)|(run::local_need_install)$/)'
platform = 'cfg(windows)'
test-group = 'uv'
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ jobs:

- name: "Cargo test"
run: |
cargo nextest show-config test-groups
cargo nextest run \
--workspace \
--status-level skip --failure-output immediate --no-fail-fast -j 8 --final-status-level slow
Expand Down Expand Up @@ -131,6 +132,7 @@ jobs:

- name: "Cargo test"
run: |
cargo nextest show-config test-groups
cargo nextest run \
--workspace \
--status-level skip --failure-output immediate --no-fail-fast -j 8 --final-status-level slow
Expand Down Expand Up @@ -171,6 +173,5 @@ jobs:
- name: "Cargo test"
working-directory: ${{ env.PRE_COMMIT_WORKSPACE }}
run: |
# use only 1 job for now
# uv concurrently writes to cache, which causes `Access is denied` errors
cargo nextest run --workspace --status-level skip --failure-output immediate --no-fail-fast -j 1 --final-status-level slow
cargo nextest show-config test-groups
cargo nextest run --workspace --status-level skip --failure-output immediate --no-fail-fast -j 8 --final-status-level slow

0 comments on commit 569c638

Please sign in to comment.