Skip to content

Commit

Permalink
chore(ci): switch to nextest (#812)
Browse files Browse the repository at this point in the history
## Summary
Using nextest instead of cargo test in ci flow to reduce flaky test
blocking, and improve reporting about slow and flaky tests.
  • Loading branch information
joroshiba authored Mar 13, 2024
1 parent 9e533ef commit fda7e0d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[profile.default]
retries = { backoff = "exponential", count = 10, delay = "1s", jitter = true, max-delay = "10s" }
status-level = "all"
final-status-level = "slow"
failure-output = "immediate-final"
fail-fast = false
slow-timeout = { period = "30s", terminate-after = 4 }
9 changes: 4 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,22 +89,21 @@ jobs:
- uses: Swatinem/[email protected]
with:
cache-provider: "buildjet"
- name: Install nextest
uses: taiki-e/install-action@nextest
- uses: arduino/setup-protoc@v3
with:
version: "24.4"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build tests
run: |
cargo test --no-run --release \
cargo nextest archive --archive-file=archive.tar.zst --release \
--all-features \
--all-targets
- name: Run tests
timeout-minutes: 20
run: |
cargo test --release \
--all-features \
--all-targets \
-- --include-ignored
cargo nextest run --archive-file=archive.tar.zst -- --include-ignored
doctest:
runs-on: buildjet-8vcpu-ubuntu-2204
Expand Down

0 comments on commit fda7e0d

Please sign in to comment.