Skip to content

test(tail): fix flaky test_follow_name_multiple on macOS#9636

Merged
sylvestre merged 1 commit into
uutils:mainfrom
naoNao89:fix/tail-follow-name-multiple-files
May 16, 2026
Merged

test(tail): fix flaky test_follow_name_multiple on macOS#9636
sylvestre merged 1 commit into
uutils:mainfrom
naoNao89:fix/tail-follow-name-multiple-files

Conversation

@naoNao89

@naoNao89 naoNao89 commented Dec 11, 2025

Copy link
Copy Markdown
Contributor

Fixes CI: #9587 #9632

Fixes flaky test_follow_name_multiple by increasing timeout from 500ms to 3000ms on macOS.

Root cause: macOS FS caching delays output visibility when test framework reads redirected temp files.

for i in {1..5}; do echo "=== Run $i ==="; cargo test --test tests test_tail::test_follow_name_multiple -- --nocapture 2>&1 |grep -A 2 "test test_tail::test_follow_name_multiple"; done
=== Run 1 ===
test test_tail::test_follow_name_multiple ... FAILED

failures:

failures:
    test_tail::test_follow_name_multiple
=== Run 2 ===
test test_tail::test_follow_name_multiple ... FAILED

failures:

failures:
    test_tail::test_follow_name_multiple
=== Run 3 ===
test test_tail::test_follow_name_multiple ... FAILED

failures:

failures:
    test_tail::test_follow_name_multiple
=== Run 4 ===
test test_tail::test_follow_name_multiple ... FAILED

failures:

failures:
    test_tail::test_follow_name_multiple
=== Run 5 ===
test test_tail::test_follow_name_multiple ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 3691 filtered out; finished in 7.61s

https://github.com/uutils/coreutils/actions/runs/20132879326/job/57778876765
https://github.com/uutils/coreutils/actions/runs/20113818498/job/57718649405?pr=9629

@codspeed-hq

codspeed-hq Bot commented Dec 11, 2025

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 313 untouched benchmarks
⏩ 46 skipped benchmarks1


Comparing naoNao89:fix/tail-follow-name-multiple-files (f200157) with main (0f45d9d)2

Open in CodSpeed

Footnotes

  1. 46 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

  2. No successful run was found on main (80f5826) during the generation of this report, so 0f45d9d was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Skip an intermittent issue tests/tail/overlay-headers (fails in this run but passes in the 'main' branch)

@naoNao89
naoNao89 force-pushed the fix/tail-follow-name-multiple-files branch from b365cab to e02607d Compare December 11, 2025 22:32
@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/overlay-headers (passes in this run but fails in the 'main' branch)

@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

GNU test failed: tests/pr/bounded-memory. tests/pr/bounded-memory is passing on 'main'. Maybe you have to rebase?

@naoNao89
naoNao89 force-pushed the fix/tail-follow-name-multiple-files branch from a256b9d to a8273ed Compare May 6, 2026 08:58
Increase timeout from 500ms to 1300ms on macOS to account for file system
caching delays when reading redirected output from temp files.
@naoNao89
naoNao89 force-pushed the fix/tail-follow-name-multiple-files branch from a8273ed to f200157 Compare May 6, 2026 09:00
@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown

GNU testsuite comparison:

Skipping an intermittent issue tests/cut/bounded-memory (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/date/date-locale-hour (passes in this run but fails in the 'main' branch)
Note: The gnu test tests/seq/seq-epipe is now being skipped but was previously passing.
Note: The gnu test tests/tail/pipe-f is now being skipped but was previously passing.
Congrats! The gnu test tests/csplit/csplit-heap is now passing!
Congrats! The gnu test tests/printf/printf-surprise is now passing!
Congrats! The gnu test tests/tail/tail-n0f is now passing!

@sylvestre
sylvestre merged commit 34e71a6 into uutils:main May 16, 2026
169 checks passed
@naoNao89
naoNao89 deleted the fix/tail-follow-name-multiple-files branch May 17, 2026 10:28
nonontb pushed a commit to nonontb/coreutils that referenced this pull request May 28, 2026
Increase timeout from 500ms to 1300ms on macOS to account for file system
caching delays when reading redirected output from temp files.
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.

2 participants