Repository navigation
Synchronize TMPDIR test child startup - #6250
Merged
Merged
Conversation
Wait for a child-written readiness signal before reading its /proc environment instead of polling for nonempty data. Keep the child alive through redirected stdin and bound startup with a timeout. Co-authored-by: Copilot App <[email protected]>
hoyosjs
approved these changes
Nov 15, 2026
This was referenced Nov 16, 2026
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.
Summary
Replace the nonempty
/proc/{pid}/environpoll inGetProcessTmpDir_ChildProcess_ReadsTmpdirwith a child-written readiness signal. The test starts a shell that printsreadyand then waits on redirected stdin, so the parent reads the environment only after the child has executed. Startup is bounded by a 30-second timeout; existing TMPDIR assertions, diagnostics, fallback behavior, and child cleanup are preserved.A nonempty environment is not a reliable startup marker: before exec, it can still contain the parent's environment. A forced fork/exec window reproduced the original failure signature. The precise trigger in CI remains unconfirmed; natural stress did not reproduce it.
Test-only change; production code and the ClrMD dependency update in #6246 are unchanged. Relates to #5750.
Validation