uutils / uutils/coreutils

test_install_and_strip intermittent failure

Open
#14,520 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

---- test_install::test_install_and_strip stdout ----
bin: "/home/runner/work/coreutils/coreutils/target/aarch64-unknown-linux-gnu/debug/coreutils"
write(default): /tmp/.tmpHq1mQ7/source
run: /home/runner/work/coreutils/coreutils/target/aarch64-unknown-linux-gnu/debug/coreutils install -s source helloworld_installed

thread 'test_install::test_install_and_strip' panicked at tests/by-util/test_install.rs:831:10:
Command was expected to succeed. code: 1
stdout = 
 stderr = install: strip program failed: Text file busy

stack backtrace:
   0: __rustc::rust_begin_unwind
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/panicking.rs:697:5
   1: core::panicking::panic_fmt
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/panicking.rs:75:14
   2: uutests::util::CmdResult::success
             at ./tests/uutests/src/lib/util.rs:499:9
   3: uutests::util::UCommand::succeeds
             at ./tests/uutests/src/lib/util.rs:2112:9
   4: tests::test_install::test_install_and_strip
             at ./tests/by-util/test_install.rs:825:5
   5: tests::test_install::test_install_and_strip::{{closure}}
             at ./tests/by-util/test_install.rs:804:28
   6: core::ops::function::FnOnce::call_once
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/ops/function.rs:250:5
   7: core::ops::function::FnOnce::call_once
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

https://github.com/uutils/coreutils/actions/runs/34702123153/job/103576171725?pr=14518

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_install.rs, especially test_install::test_install_and_strip around lines 804-831, and review the linked GitHub Actions run. Reproduce the intermittent install -s failure on the affected target and trace the Text file busy error from the test invocation. Done means the test no longer fails intermittently and still verifies successful installation and stripping.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.