Skip to content

Commit

Permalink
ci: set up nextest profile and dev-ci Cargo profile
Browse files Browse the repository at this point in the history
- Added a "dev-ci" profile in `Cargo.toml` file,
- Introduced a new `nextest.toml` configuration file to manage test behaviors in the CI environment.
  • Loading branch information
huitseeker committed Jan 12, 2024
1 parent 45510e4 commit 3be7fc8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[profile.ci]
# Print out output for failing tests as soon as they fail, and also at the end
# of the run (for easy scrollability).
failure-output = "immediate-final"
# Show skipped tests in the CI output.
status-level = "skip"
# Do not cancel the test run on the first failure.
fail-fast = false
# Mark tests as slow after 5mins, kill them after 20mins
slow-timeout = { period = "300s", terminate-after = 4 }
# Retry failed tests once, marked flaky if test then passes
retries = 1
8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,11 @@ ec-gpu = { version = "0.2.0" }
ec-gpu-gen = { version = "0.7.0" }
log = "0.4.19"
byteorder = "1"

[profile.dev-ci]
inherits = "dev"
# By compiling dependencies with optimizations, performing tests gets much faster.
opt-level = 3
lto = "thin"
incremental = false
codegen-units = 16

0 comments on commit 3be7fc8

Please sign in to comment.