Repository navigation
fix(core): gate the test-only all_finished on unix like its only caller - #497
Merged
Merged
Conversation
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. |
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 since #488: on Windows, `Native core Clippy` rejects `Commands::all_finished` as dead code. It is `#[cfg(test)]`, but its only caller (`a_run_follows_a_yielded_command_and_stops_the_rest_when_it_ends` in `crates/qq-core/src/lib.rs`) is `#[cfg(unix)]`. This gates it on `all(test, unix)`.
No user-visible change.
Verified: `cargo clippy -p qq-core --all-targets -D warnings` clean on Linux; the caller test passes. The Windows job on this PR is the real proof.
Known, not fixed here: `tools::shell::orphan_tests::a_killed_server_takes_its_commands_with_it` flakes on Linux (about 3 in 3000 under local stress; failed main run 40810178056 because `flaky-result = "fail"`). The cause is a startup race: the watcher shell is spawned after the command, so a group-wide `kill -s TERM 0` from the command can reach the watcher before its `trap '' TERM` is installed. A busy-loop added before the trap makes it fail every time. Fixing that needs the watcher to ignore signals from the moment it execs, so it belongs in a follow-up.