Bad error snippet for cargotest failure
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Start with the linked pull-request comment and reproduce the snippet produced for the cargotest failure. Trace the log-analyzer entry point that selects excerpts, then compare its output with the failure block shown in this issue. Done means the snippet includes the failing test and its actual error instead of unrelated build and test-suite sections.
Written by the indexing model from the issue text.
Description
I am not sure how the bot decided what to put into the snippet here but it doesn't include the actual problem. What I would have hoped for is something like this:
failures:
---- alt_registry::no_api stdout ----
running `/Users/runner/work/rust/rust/build/aarch64-apple-darwin/stage2-tools/aarch64-apple-darwin/release/cargo check`
running `/Users/runner/work/rust/rust/build/aarch64-apple-darwin/stage2-tools/aarch64-apple-darwin/release/cargo login --registry alternative`
thread 'alt_registry::no_api' (2024432) panicked at src/tools/cargo/tests/testsuite/alt_registry.rs:821:10:
test failed running `/Users/runner/work/rust/rust/build/aarch64-apple-darwin/stage2-tools/aarch64-apple-darwin/release/cargo login --registry alternative`
error: could not exec process `/Users/runner/work/rust/rust/build/aarch64-apple-darwin/stage2-tools/aarch64-apple-darwin/release/cargo login --registry alternative`: could not execute process `/Users/runner/work/rust/rust/build/aarch64-apple-darwin/stage2-tools/aarch64-apple-darwin/release/cargo login --registry alternative` (never executed)
Caused by:
Broken pipe (os error 32)
Stack backtrace:
0: <std::backtrace::Backtrace>::create
1: <std::io::error::Error as anyhow::context::ext::StdError>::ext_context::<cargo_util::process_error::ProcessError>
2: <cargo_util::process_builder::ProcessBuilder>::output
3: <cargo_util::process_builder::ProcessBuilder>::exec_with_output
4: <cargo_test_support::Execs>::run
5: testsuite::alt_registry::no_api
6: <testsuite::alt_registry::no_api::{closure#0} as core::ops::function::FnOnce<()>>::call_once
7: test::__rust_begin_short_backtrace::<core::result::Result<(), alloc::string::String>, fn() -> core::result::Result<(), alloc::string::String>>
8: test::run_test::{closure#0}
9: std::sys::backtrace::__rust_begin_short_backtrace::<test::run_test::{closure#1}, ()>
10: <std::thread::lifecycle::spawn_unchecked<test::run_test::{closure#1}, ()>::{closure#1} as core::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
11: <std::sys::thread::unix::Thread>::new::thread_start
12: __pthread_cond_wait
stack backtrace:
0: __rustc::rust_begin_unwind
1: core::panicking::panic_fmt
2: cargo_test_support::panic_error::pe
3: <cargo_test_support::Execs>::run
4: testsuite::alt_registry::no_api
5: <testsuite::alt_registry::no_api::{closure#0} as core::ops::function::FnOnce<()>>::call_once
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
---- alt_registry::no_api stdout end ----
failures:
alt_registry::no_api
test result: FAILED. 3771 passed; 1 failed; 391 ignored; 0 measured; 0 filtered out; finished in 581.98s
Instead, it shows random parts of the LLVM build, the rustdoc test suite, and ends with some random test suite in the middle of the log where nothing failed.
- Dominant language
- Rust
- Stars
- 52
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rust-lang/rust-log-analyzer
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
rust-lang/rust-log-analyzer#100 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
All issues in rust-lang/rust-log-analyzer
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100