hotfix(tail): skip events for untracked files in follow mode#9630
Open
naoNao89 wants to merge 3 commits intouutils:mainfrom
Open
hotfix(tail): skip events for untracked files in follow mode#9630naoNao89 wants to merge 3 commits intouutils:mainfrom
naoNao89 wants to merge 3 commits intouutils:mainfrom
Conversation
Fixes test_retry6 by preventing handle_event() from processing events for files not in the tracked files map. This occurs when using --follow=descriptor without --retry on missing files.
6417863 to
d1843f3
Compare
|
GNU testsuite comparison: |
sylvestre
reviewed
Dec 19, 2025
|
GNU testsuite comparison: |
366bad3 to
50f6f7c
Compare
Verifies that tail --follow=descriptor (without --retry) correctly ignores file system events for untracked files created in watched directories.
50f6f7c to
b91fae3
Compare
|
GNU testsuite comparison: |
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.
Hotfix for CI #9437 #9628 #9629 #9587
Fixes
test_retry6failure by skipping file watcher events for untracked files in--follow=descriptormode. When usingtail -fwithout--retry, missing files that appear later should not be monitored. Added guard inhandle_event()to prevent accessing untracked files in the map.https://github.com/uutils/coreutils/actions/runs/20111856793/job/57711065899?pr=9437
https://github.com/uutils/coreutils/actions/runs/20111856782/job/57711461006?pr=9437
https://github.com/uutils/coreutils/actions/runs/20113818498/job/57718649412?pr=9629
https://github.com/uutils/coreutils/actions/runs/20113818498/job/57718649412?pr=9629
https://github.com/uutils/coreutils/actions/runs/20109296480/job/57703320639?pr=9628
https://github.com/uutils/coreutils/actions/runs/20113542716/job/57717579129?pr=9587