-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide failed command unless in verbose mode #93492
Conversation
This is particularly intended for invoking compiletest; the command line there is long (3,350 characters on my system) and takes up a lot of screen real estate for little benefit to the majority of those running bootstrap. This moves printing it to verbose mode (-v must be passed) which means that it's still possible to access when needed for debugging. The main downside is that CI logs will by-default become less usable for debugging (particularly) spurious failures, but it is pretty rare for us to really need the information there -- it's usually fairly obvious what is being run with a little investigation.
As an example, for me locally the difference in running compiletest with one test failure is pretty significant (here the lines are chopped rather than wrapped, but at least my terminal typically wraps lines by default, which means there's a whole wall of text). Before:
After
|
Seems reasonable to me, I've rarely found those command outputs useful. One minor downside is that you may need to now scroll up quite a ways just to figure out which overall testsuite is being run, as the final lines may not be obvious. It might be nice to have something similar to cargo that said @bors r+ rollup |
📌 Commit 9bf6a5d has been approved by |
I suspect that the previous output was not super helpful towards giving a 'to rerun' help anyway, but yeah, I agree it'd be nice. I think Joshua tried doing something along those lines but it didn't really materialize well with the current bootstrap design. |
Rollup of 9 pull requests Successful merges: - rust-lang#91343 (Fix suggestion to slice if scrutinee is a `Result` or `Option`) - rust-lang#93019 (If an integer is entered with an upper-case base prefix (0Xbeef, 0O755, 0B1010), suggest to make it lowercase) - rust-lang#93090 (`impl Display for io::ErrorKind`) - rust-lang#93456 (Remove an unnecessary transmute from opaque::Encoder) - rust-lang#93492 (Hide failed command unless in verbose mode) - rust-lang#93504 (kmc-solid: Increase the default stack size) - rust-lang#93513 (Allow any pretty printed line to have at least 60 chars) - rust-lang#93532 (Update books) - rust-lang#93533 (Update cargo) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
It was a lot more work than I was expecting. |
This is particularly intended for invoking compiletest; the command line there
is long (3,350 characters on my system) and takes up a lot of screen real estate
for little benefit to the majority of those running bootstrap. This moves
printing it to verbose mode (-v must be passed) which means that it's still
possible to access when needed for debugging.
The main downside is that CI logs will by-default become less usable for
debugging (particularly) spurious failures, but it is pretty rare for us to
really need the information there -- it's usually fairly obvious what is being
run with a little investigation.
r? @ehuss as you've done some of the spurious failure investigations, so can
(hopefully) confirm my intuition that this won't seriously hinder them.