-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## 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
Showing
2 changed files
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|