-
Notifications
You must be signed in to change notification settings - Fork 236
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 --build
flag to buck2
test
#702
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -157,6 +157,36 @@ If include patterns are present, regardless of whether exclude patterns are pres | |
#[clap(long)] | ||
test_executor_stderr: Option<OutputDestinationArg>, | ||
|
||
#[clap( | ||
long, | ||
group = "default-info", | ||
help = "Also build default info (this is not the default)" | ||
)] | ||
build_default_info: bool, | ||
|
||
#[allow(unused)] | ||
#[clap( | ||
long, | ||
group = "default-info", | ||
help = "Do not build default info (this is the default)" | ||
)] | ||
skip_default_info: bool, | ||
|
||
#[clap( | ||
long, | ||
group = "run-info", | ||
help = "Also build runtime dependencies (this is not the default)" | ||
)] | ||
build_run_info: bool, | ||
|
||
#[allow(unused)] | ||
#[clap( | ||
long, | ||
group = "run-info", | ||
help = "Do not build runtime dependencies (this is the default)" | ||
)] | ||
skip_run_info: bool, | ||
Comment on lines
+182
to
+188
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we need this? seems unused, not passing build_run_info should keep the default? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is just keeping symmetry as @JakobDegen asked earlier in this PR. My understanding is that the point is to be able to explicitly opt-in/out in case defaults change. I don't actually have a strong opinion on UX here btw. In fact, I would personally prefer not needing those flags and having |
||
|
||
/// Additional arguments passed to the test executor. | ||
/// | ||
/// Test executor is expected to have `--env` flag to pass environment variables. | ||
|
@@ -225,6 +255,8 @@ impl StreamingCommand for TestCommand { | |
.transpose() | ||
.context("Invalid `timeout`")?, | ||
ignore_tests_attribute: self.ignore_tests_attribute, | ||
build_default_info: self.build_default_info, | ||
build_run_info: self.build_run_info, | ||
}, | ||
ctx.stdin() | ||
.console_interaction_stream(&self.common_opts.console_opts), | ||
|
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.
do we need this, seems unused? not passing build_default_info would already do the default?
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.
See other thread.