Skip to content

fix(core): gate the test-only all_finished on unix like its only caller - #497

Merged
lg2m merged 1 commit into
mainfrom
fix/main-ci-windows
Oct 29, 2026
Merged

lg2m merged 1 commit into
mainfrom
fix/main-ci-windows

Conversation

@lg2m

@lg2m lg2m commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T03:58:00.356769Z b10faae PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@lg2m
lg2m merged commit 061420e into main Oct 29, 2026
8 checks passed
@lg2m
lg2m deleted the fix/main-ci-windows branch October 29, 2026 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant