Skip to content

tail: keep the --pid test processes off the test runner's stdin - #16563

Merged
sylvestre merged 1 commit into
mainfrom
tail-pid-test-stdin
Nov 16, 2026
Merged

sylvestre merged 1 commit into
mainfrom
tail-pid-test-stdin

Conversation

@sylvestre

Copy link
Copy Markdown
Contributor

test_follow_with_pid started a bare sh as the process to watch, with stdin inherited from the test runner. On the OpenBSD job the script is piped into sh << EOF, so that dummy shell read and ran the rest of the job script (the uucore tests, make, cargo clean) while the workspace tests were still going. Depending on timing, the stray cargo clean removed rlibs right before the uucore doctests (extern location for libc does not exist), or the uucore unit and doc tests silently never ran.

Both --pid tests now use sleep with a null stdin. test_following_with_pid also used 999d, a GNU suffix that the BSD sleep rejects, so it now passes plain seconds.

Checked on the draft #16541, which prints target/debug/deps between the steps: with this change the steps run in order and the uucore unit and doc tests run, in both runs.

The dummy "sh" inherited stdin, so on OpenBSD CI, where the job script is
piped into sh, it read and ran the rest of the script (uucore tests, make,
cargo clean) concurrently, randomly deleting the doctests' rlibs. Use sleep
with a null stdin, and plain seconds as BSD sleep rejects "999d".
Copilot AI balanced review requested due to automatic review settings November 16, 2026 12:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@sylvestre
sylvestre merged commit 3a72f85 into main Nov 16, 2026
192 of 202 checks passed
@sylvestre
sylvestre deleted the tail-pid-test-stdin branch November 16, 2026 12:26
@xtqqczze

Copy link
Copy Markdown
Collaborator

test_follow_with_pidstill failing intermittently, tracked by #16681.

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.

3 participants