uutils / uutils/coreutils

test_follow_when_files_are_pointing_to_same_relative_file_and_file_stays_same_size intermittent failure

Open
#14,694 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

U - tail
Dominant language
Rust
Stars
24.1k
Forks
2k
Avg merge
1d 5h
Merged PRs (30d)
365

Description

---- test_tail::test_follow_when_files_are_pointing_to_same_relative_file_and_file_stays_same_size stdout ----
bin: "/target/i686-unknown-linux-gnu/debug/coreutils"
write(default): /tmp/.tmpD0YypY/data
run: /target/i686-unknown-linux-gnu/debug/coreutils tail --follow=descriptor --max-unchanged-stats=1 --sleep-interval=0.1 data /tmp/.tmpD0YypY/data
write(default): /tmp/.tmpD0YypY/data

thread 'test_tail::test_follow_when_files_are_pointing_to_same_relative_file_and_file_stays_same_size' panicked at tests/by-util/test_tail.rs:4853:10:
Expected stderr to be empty, but it's:
tail: /tmp/.tmpD0YypY/data: file truncated

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with tests/by-util/test_tail.rs around line 4853 and run test_tail::test_follow_when_files_are_pointing_to_same_relative_file_and_file_stays_same_size repeatedly. Inspect the tail --follow=descriptor invocation and its stderr handling to determine why the intermittent file-truncated message appears. Done means the test is reliable and no longer reports an erroneous warning for this scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.