Repository navigation
find: address the intermittent issue - #844
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #844 +/- ##
==========================================
+ Coverage 92.01% 92.15% +0.13%
==========================================
Files 35 35
Lines 7316 7377 +61
Branches 378 383 +5
==========================================
+ Hits 6732 6798 +66
+ Misses 442 438 -4
+ Partials 142 141 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
sylvestre
force-pushed
the
fix-ok-prompt-stdin-hang
branch
from
August 18, 2026 16:19
a0298be to
1fd3e7c
Compare
Both actions run the command after changing into the directory being scanned, so a relative $PATH entry -- including the empty string and ".", which mean the current directory -- would be looked up inside a directory somebody else may be able to write to. GNU find rejects this at parse time; we ran the command anyway, and for -okdir we first prompted, which meant reading the answer from whatever stdin happened to be. In the bfs testsuite that is the harness's own stdin, so gnu/okdir_path_empty hung and reported no result at all instead of failing (bfs gnu/okdir_path_* and gnu/execdir_path_* now pass). An unset $PATH is left alone: the command is then looked up in the system default path.
The starting points and the answers to the prompts would both be read from standard input, so they compete for the same bytes and the result depends on buffering. GNU find rejects the combination up front; we accepted it and prompted, consuming input meant for the caller. The bfs tests gnu/files0_from_stdin_ok and gnu/ok_files0_from_stdin now pass, and the former no longer hangs on the testsuite's stdin. Reading the starting points from a file leaves stdin free for the prompts, so that combination stays allowed.
improvements was "failing in the reference, not failing now", which is also true of a test that produced no result because it hung. That is how a hang in find got reported as "+ gnu/okdir_path_empty". List those separately instead; they don't fail the job, since an upstream rename looks the same.
sylvestre
force-pushed
the
fix-ok-prompt-stdin-hang
branch
from
August 18, 2026 16:36
1fd3e7c to
e662d19
Compare
|
Commit e662d19 has test result changes: bfs testsuite: |
1 task done
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.
No description provided.