-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Add a custom Command wrapper to run-make-support
#126121
Conversation
d3aea52
to
1023697
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very nice to me in general! Just a couple of suggestion and nits (non-blocking).
This comment has been minimized.
This comment has been minimized.
Thanks, r=me after CI is green. |
Thanks! Need to wait for #126097 first though. |
☔ The latest upstream changes (presumably #126134) made this pull request unmergeable. Please resolve the merge conflicts. |
4d4944d
to
0a190e8
Compare
@bors r=jieyouxu rollup=never |
☀️ Test successful - checks-actions |
Finished benchmarking commit (f21554f): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (primary -2.3%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: missing data |
…youxu Fix documentation for `impl_common_helpers` in `run-make-support` Forgot to do this in rust-lang#126121. `@bors` rollup r? `@jieyouxu`
…youxu Fix documentation for `impl_common_helpers` in `run-make-support` Forgot to do this in rust-lang#126121. `@bors` rollup r? `@jieyouxu`
Rollup merge of rust-lang#126188 - Kobzol:runmake-command-docs, r=jieyouxu Fix documentation for `impl_common_helpers` in `run-make-support` Forgot to do this in rust-lang#126121. `@bors` rollup r? `@jieyouxu`
This should make it easier to make sure that we check process exit codes, and it should also make checking of stdout/stderr less verbose and more explicit in run-make tests. I prefer the
run()/run_fail().assert(...)
style to something likerun_fail_assert_exit_code
, because the former is more composable.Regarding #125747, I'm not sure if we really need a custom trait, I think that we can get far enough with just
Deref
on theCc/Clang/Rustc/Rustdoc/...
structs. But now that these structs don't even needcommand_output
anymore, I think that they are fine-ish as they are with the macro.Related issues: #125617, #125747
Fixes: #125617 (because
command_output
is no longer a public method)r? @jieyouxu