Uh oh!
There was an error while loading. Please reload this page.
Capture output from threads spawned in tests - #75172
Conversation
dtolnay
commented
Aug 7, 2020
Er, CI failed though: --- [ui] ui/panic-while-printing.rs stdout ----error: test compilation failed although it shouldn't!status: exit code: 1command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/panic-while-printing.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/panic-while-printing/a" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/panic-while-printing/auxiliary"stdout:------------------------------------------------------------------------------------stderr:------------------------------------------error[E0277]: the trait bound `std::vec::Vec<_>: std::io::LocalOutput` is not satisfied --> /checkout/src/test/ui/panic-while-printing.rs:19:20 |LL | set_panic(Some(Box::new(Vec::new()))); | ^^^^^^^^^^^^^^^^^^^^ the trait `std::io::LocalOutput` is not implemented for `std::vec::Vec<_>` | = note: required for the cast to the object type `dyn std::io::LocalOutput`--- [ui] ui/threads-sendsync/task-stderr.rs stdout ----error: test compilation failed although it shouldn't!status: exit code: 1command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/threads-sendsync/task-stderr.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/threads-sendsync/task-stderr/a" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/threads-sendsync/task-stderr/auxiliary"stdout:------------------------------------------------------------------------------------stderr:------------------------------------------error[E0277]: the trait bound `Sink: std::io::LocalOutput` is not satisfied --> /checkout/src/test/ui/threads-sendsync/task-stderr.rs:24:28 |LL | io::set_panic(Some(Box::new(sink))); | ^^^^^^^^^^^^^^ the trait `std::io::LocalOutput` is not implemented for `Sink` | = note: required for the cast to the object type `dyn std::io::LocalOutput` |
d266a8c to
4cd8de6Comparetmandry
commented
Aug 18, 2020
Tests fixed! |
dtolnay
commented
Aug 18, 2020
error[E0277]: the trait bound `dyn realstd::io::LocalOutput: io::Write` is not satisfied --> library/std/src/panicking.rs:216:15 |216 | write(&mut local); | ^^^^^^^^^^ the trait `io::Write` is not implemented for `dyn realstd::io::LocalOutput` | = note: required because of the requirements on the impl of `io::Write` for `realstd::boxed::Box<dyn realstd::io::LocalOutput>` = note: required for the cast to the object type `dyn io::Write` |
tmandry
commented
Aug 18, 2020
Yep, working on this now. Sorry for the noise. |
4cd8de6 to
0d6fb9bCompare0d6fb9b to
38b920dComparetmandry
commented
Aug 18, 2020
CI passed. |
dtolnay
commented
Aug 18, 2020
@bors r+ |
bors
commented
Aug 18, 2020
📌 Commit 38b920d has been approved by |
Capture output from threads spawned in tests Fixesrust-lang#42474. r? @dtolnay since you expressed interest in this, but feel free to redirect if you aren't the right person anymore.
Capture output from threads spawned in tests Fixesrust-lang#42474. r? @dtolnay since you expressed interest in this, but feel free to redirect if you aren't the right person anymore.
tmandry
commented
Aug 19, 2020
@bors rollup=iffy I'm trying to track down the cause of #75684 (comment) and while I don't think this can cause it (nor can I reproduce locally), nothing else in that change seems related. |
bors
commented
Aug 19, 2020
⌛ Testing commit 38b920d with merge 7b86e1eeec51cc8ce5e8edf130f2df638605da97... |
tmandry
commented
Aug 19, 2020
@bors retry |
bors
commented
Aug 19, 2020
⌛ Testing commit 38b920d with merge 049ea2e42ed0a109e27a83fa7636690d19e3bfc8... |
tmandry
commented
Aug 19, 2020
@bors retry |
bors
commented
Aug 19, 2020
⌛ Testing commit 38b920d with merge ea7c21aedf7c1bbab87df466b39bb79968f6804f... |
bors
commented
Aug 19, 2020
💔 Test failed - checks-actions |
tmandry
commented
Aug 19, 2020
Same failure. Seems to only happen on the |
bors
commented
Aug 30, 2020
☔ The latest upstream changes (presumably #74862) made this pull request unmergeable. Please resolve the merge conflicts. |
crlf0710
commented
Sep 18, 2020
Triage: There's merge conflicts now. |
m-ou-se
commented
Oct 20, 2020
This PR partially breaks the effect of rust/library/std/src/io/stdio.rs Lines 33 to 37 in 981346f
|
dtolnay
commented
Oct 23, 2020
Closing in favor of #78227 which includes a rebase of this commit. |
…, r=m-ou-se Capture output from threads spawned in tests This is revival of rust-lang#75172. Original text: > Fixesrust-lang#42474. > > r? `@dtolnay` since you expressed interest in this, but feel free to redirect if you aren't the right person anymore. --- Closesrust-lang#75172.
…, r=m-ou-se Capture output from threads spawned in tests This is revival of rust-lang#75172. Original text: > Fixesrust-lang#42474. > > r? `@dtolnay` since you expressed interest in this, but feel free to redirect if you aren't the right person anymore. --- Closesrust-lang#75172.
…, r=m-ou-se Capture output from threads spawned in tests This is revival of rust-lang#75172. Original text: > Fixesrust-lang#42474. > > r? `@dtolnay` since you expressed interest in this, but feel free to redirect if you aren't the right person anymore. --- Closesrust-lang#75172.
…, r=m-ou-se Capture output from threads spawned in tests This is revival of rust-lang#75172. Original text: > Fixesrust-lang#42474. > > r? `@dtolnay` since you expressed interest in this, but feel free to redirect if you aren't the right person anymore. --- Closesrust-lang#75172.
…r=m-ou-se Capture output from threads spawned in tests This is revival of rust-lang#75172. Original text: > Fixesrust-lang#42474. > > r? `@dtolnay` since you expressed interest in this, but feel free to redirect if you aren't the right person anymore. --- Closesrust-lang#75172.
Fixes#42474.
r? @dtolnay since you expressed interest in this, but feel free to redirect if you aren't the right person anymore.