Repository navigation
ci: run tests with nextest, add cargo-hakari workspace-hack #399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
5741697
ci: run tests with nextest, add cargo-hakari workspace-hack
496633d
fix: license the workspace-hack crate, refresh stale rust-toolchain pin
e8e9fe0
fix(flare-code): test config-dir isolation races across nextest proce…
9ea9610
Merge branch 'master' into feature/nextest-ci
getappz a896cbd
fix(flare-code): same nextest process-isolation race in state.rs
74fca81
Merge branch 'feature/nextest-ci' of origin into feature/nextest-ci
ff7cacb
fix(jobs): shutdown can miss waking an idle worker under load
51e5c39
Merge branch 'master' into feature/nextest-ci
getappz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,27 @@ | ||
| # This file contains settings for `cargo hakari`. | ||
| # See https://docs.rs/cargo-hakari/latest/cargo_hakari/config for a full list of options. | ||
|
|
||
| hakari-package = "agentflare-workspace-hack" | ||
|
|
||
| # Format version for hakari's output. Version 4 requires cargo-hakari 0.9.22 or above. | ||
| dep-format-version = "4" | ||
|
|
||
| # Setting workspace.resolver = "2" or higher in the root Cargo.toml is HIGHLY recommended. | ||
| # Hakari works much better with the v2 resolver. (The v2 and v3 resolvers are identical from | ||
| # hakari's perspective, so you're welcome to set either.) | ||
| # | ||
| # For more about the new feature resolver, see: | ||
| # https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html#cargos-new-feature-resolver | ||
| resolver = "2" | ||
|
|
||
| # Add triples corresponding to platforms commonly used by developers here. | ||
| # https://doc.rust-lang.org/rustc/platform-support.html | ||
| platforms = [ | ||
| "x86_64-unknown-linux-gnu", | ||
| "x86_64-apple-darwin", | ||
| "aarch64-apple-darwin", | ||
| "x86_64-pc-windows-msvc", | ||
| ] | ||
|
|
||
| # Write out exact versions rather than a semver range. (Defaults to false.) | ||
| # exact-versions = true |
This file contains hidden or 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,5 @@ | ||
| [profile.default] | ||
| # A single hung test shouldn't be able to pin a runner for the job's full | ||
| # 25-minute timeout (see ci.yml) — kill it well before that and let the rest | ||
| # of the suite keep going. | ||
| slow-timeout = { period = "60s", terminate-after = 5 } | ||
This file contains hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: getappz/agentflare
Length of output: 3258
🌐 Web query:
cargo nextest configuration reference default profile fail-fast timeout terminate-after behavior💡 Result:
In cargo-nextest, fail-fast and timeout configurations are managed via profiles (such as [profile.default]) in the.config/nextest.toml repository configuration file [1][2]. Fail-Fast Behavior The fail-fast setting determines how nextest behaves when tests fail [3]. - Default: Enabled (true), which stops scheduling new tests after the first failure [1][3]. - Configuration: It can be set as a boolean or an object [1][3]. - fail-fast = true (default): Stops after the first failure, waiting for already running tests to finish naturally [3]. - fail-fast = { max-fail = N }: Stops the run after N failures [3]. - fail-fast = false (or max-fail = "all"): Continues running all tests regardless of failures [3]. - Termination Modes: When max-fail is reached, you can control how currently running tests are handled [3]: - terminate = "wait" (default): Allows running tests to complete naturally [3]. - terminate = "immediate": Sends termination signals to running tests immediately (respecting the grace period) [3]. Timeout and Terminate-After Behavior The slow-timeout setting identifies tests taking longer than expected [1][4]. - Configuration: Defined as a string (e.g., "60s") or an object [1]. - Object Parameters [1]: - period: The time duration after which a test is marked slow [1]. - terminate-after: The number of 'period' durations to wait before terminating the test [1]. By default, this is not set (tests are not terminated) [1]. - grace-period: The time to wait for a graceful shutdown before force-terminating a test (default: 10s) [1]. - on-timeout: Defines the result if a test times out; defaults to "fail", but can be set to "pass" (e.g., for certain fuzz tests) [1][4]. When a test is terminated (either via fail-fast's "immediate" mode or exceeding a slow-timeout), nextest uses its grace period logic to attempt a clean shutdown before force-killing the test process [1][3]. These settings can be applied globally in a profile or via per-test overrides using the [[profile.default.overrides]] section [4][5].
Citations:
🏁 Script executed:
Repository: getappz/agentflare
Length of output: 524
Set
fail-fast = falsein the default profile.terminate-aftercauses a test to fail. With the defaultfail-fast = true,cargo nextest runstops scheduling new tests after the first timeout. This prevents the full suite from running.🤖 Prompt for AI Agents