Repository navigation
ci: run the minimal core profile under nextest - #474
Merged
Merged
Conversation
Collaborator
Author
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Main CI has failed the "Minimal core profile" step on every push since Oct 22, almost always on
sessions::tests::goal_check_recovery::native_check_recovery_bounds_stalled_workspace_validation.Cause
qq-core bounds blocking filesystem work with one process-wide semaphore,
workspace::blocking_permits()(8 permits). Several tests check that work stays bounded while that capacity is gone, so they take all of it withacquire_many_owned(available_permits()).This step was the only test gate still on
cargo test, which runs every test as a thread of one process. When another test held some permits at that moment, the capacity test took fewer than 8. The other test then released its permits, the work under test got one, and the run finishedCompletedinstead ofInterrupted. With debug prints I saw the test hold only 1 or 6 permits, followed byRunFinished: Completed. The same sharing also causes intermittenttask_gitBusyfailures andnative_check_reopen_*timeouts undercargo test, and sometimes a hang.Every other test gate (
cargo xtask checkand the main CI job) runs tests under nextest, one process each, which is what these tests assume.Change
The step now runs
cargo nextest run --locked --profile ci -p qq-core --no-default-features. nextest does not run doctests, and qq-core has none (cargo test --docruns 0 tests).I tried fixing it in the tests instead, with a helper that waits for all 8 permits and serializes the tests that use it, and dropped it. The fix holds the reported test, but Tokio's semaphore serves waiters in order: a waiting helper queues every later permit request in the process behind it, so one stuck holder freezes the whole
cargo testrun instead of failing one test.Verification
cargo test --locked -p qq-core --no-default-featuresfailed or hung in 2 of 2 local runs.cargo nextest run --locked --profile ci -p qq-core --no-default-featurespassed 1554/1554 with no flaky retries in 4 of 4 runs: 3 on the previous main and 1 on this branch.cargo xtask checkpasses.