uutils / uutils/coreutils

test_stdbuf_no_fork_regression intermittent failure

Open
#13,570 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

---- test_stdbuf::test_stdbuf_no_fork_regression stdout ----
bin: "/target/i686-unknown-linux-gnu/debug/coreutils"

thread 'test_stdbuf::test_stdbuf_no_fork_regression' panicked at tests/by-util/test_stdbuf.rs:408:5:
Expected 'sleep' command at PID 34599, got: /target/i686-unknown-linux-gnu/d
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: tests::test_stdbuf::test_stdbuf_no_fork_regression
             at ./tests/by-util/test_stdbuf.rs:408:5
   3: tests::test_stdbuf::test_stdbuf_no_fork_regression::{{closure}}
             at ./tests/by-util/test_stdbuf.rs:351:36
   4: core::ops::function::FnOnce::call_once
             at /rust/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
   5: 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/30183522080/job/89744406150?pr=12317

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_stdbuf.rs, especially test_stdbuf_no_fork_regression around line 408, and review the linked CI run for the intermittent failure. Reproduce the test and trace why the reported PID is not the expected sleep command. Done means the regression test reliably identifies the expected process without intermittent failures.

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
Quiet
Clarity
Needs clarification
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.