Skip to content

fix(core): Windows terminate_tree treats a vanished pid as stopped - #1874

Merged
zackees merged 1 commit into
mainfrom
fix/windows-terminate-tree-missing-pid
Nov 3, 2026
Merged

zackees merged 1 commit into
mainfrom
fix/windows-terminate-tree-missing-pid

Conversation

@zackees

@zackees zackees commented Nov 3, 2026

Copy link
Copy Markdown
Member

Problem

The full matrix's windows / Check lane fails at Test on main since #1868 (merged 2026-11-03 03:07Z). That PR had no ci-full label, so the Windows test lane never ran on it:

---- subprocess::timeout_tests::terminate_tree_of_a_missing_pid_reports_success stdout ----
panicked at crates\fbuild-core\src\subprocess_timeout_tests.rs:184:5:
assertion failed: terminate_tree(9_000_000, Termination::Force).is_ok()
test result: FAILED. 370 passed; 1 failed

(job 125825924182, run 41608933789, the setup-soldr exact-pin canary #1872)

On Windows, terminate_tree forwards to terminate_pid, and OpenProcess returns ERROR_INVALID_PARAMETER (87) for a pid that doesn't exist. Unix maps ESRCH to Ok(()).

Fix

Make Windows terminate_tree treat error 87 as already stopped. The existing test is the failing-first test (red on windows-latest). Only cargo check --target x86_64-pc-windows-msvc was run locally; this PR's ci-full run is the Windows proof.

🤖 Generated with Claude Code

OpenProcess reports a pid that no longer exists as ERROR_INVALID_PARAMETER,
so terminate_tree_of_a_missing_pid_reports_success (added in #1868) failed on
windows-latest. Mirror the Unix ESRCH contract.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@zackees zackees added the ci-full Run the complete release-equivalent CI matrix on this PR SHA label Nov 3, 2026
@coderabbitai

coderabbitai Bot commented Nov 3, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@zackees

zackees commented Nov 3, 2026

Copy link
Copy Markdown
Member Author

Reopening immediately: a fresh pull_request event is required so the merge ref picks up the #1875 dylint concurrency fix (a re-run reuses the old workflow file). No code change.

@zackees

zackees commented Nov 3, 2026

Copy link
Copy Markdown
Member Author

Reopening immediately for a fresh pull_request event: main now carries #1876 (dylint concurrency lane input), and a re-run would reuse the old workflow file. No code change.

@zackees zackees closed this Nov 3, 2026
@zackees zackees reopened this Nov 3, 2026
@zackees
zackees added this pull request to the merge queue Nov 3, 2026
Merged via the queue into main with commit 8d49d77 Nov 3, 2026
530 of 560 checks passed
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Nov 4, 2026
@zackees
zackees deleted the fix/windows-terminate-tree-missing-pid branch November 5, 2026 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-full Run the complete release-equivalent CI matrix on this PR SHA

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

1 participant