Skip to content
This repository has been archived by the owner on Sep 21, 2024. It is now read-only.

Commit

Permalink
chore: Add slow-timeout to terminate slow running tests in CI. Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
jsantell authored Jan 9, 2024
1 parent 77b0137 commit 57ea186
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[profile.ci]
retries = 4
# Terminates test after waiting (`period` * `terminate-after`).
# After timeout, will still retry `retries` times.
slow-timeout = { period = "60s", terminate-after = 3 }
2 changes: 1 addition & 1 deletion .github/workflows/run_test_suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ jobs:
FEATURES="--features ${{matrix.features}}"
fi
cargo +${{ matrix.toolchain }} nextest run $FEATURES --retries 5 --color always 2>&1 | tee test-results/log
cargo +${{ matrix.toolchain }} nextest run $FEATURES --profile ci --color always 2>&1 | tee test-results/log
env:
NOOSPHERE_LOG: academic
- uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 57ea186

Please sign in to comment.