Skip to content
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

[Cherrypick 4.2.1] Fix cquery with --built_test_only #13906

Merged
merged 1 commit into from
Aug 26, 2021

Conversation

katre
Copy link
Member

@katre katre commented Aug 26, 2021

Cherrypick request for 4.2.1 (#13558).

cquery: disable --build_tests_only.

PriorityCategory.SOFTWARE_REQUIREMENT cannot be overridden by the user, unlike
PriorityCategory.COMPUTED_DEFAULT. Also another existing flag that I think
deserves the same enforcement.

Re: concerns about aquery: none of this affects aquery because aquery doesn't
inherit from TestCommand:


PiperOrigin-RevId: 388330077
(cherry picked from commit 9f67cdf)

PriorityCategory.SOFTWARE_REQUIREMENT cannot be overridden by the user, unlike
PriorityCategory.COMPUTED_DEFAULT. Also another existing flag that I think
deserves the same enforcement.

Re: concerns about aquery: none of this affects aquery because aquery doesn't
inherit from TestCommand:

https://github.com/bazelbuild/bazel/blob/a03442dd7408cdc6ef936f96cd3146ff6b3d09dd/src/main/java/com/google/devtools/build/lib/runtime/commands/CqueryCommand.java#L56
https://github.com/bazelbuild/bazel/blob/a03442dd7408cdc6ef936f96cd3146ff6b3d09dd/src/main/java/com/google/devtools/build/lib/runtime/commands/AqueryCommand.java#L48

PiperOrigin-RevId: 388330077
(cherry picked from commit 9f67cdf)
@katre katre requested a review from gregestren August 26, 2021 13:22
@google-cla google-cla bot added the cla: yes label Aug 26, 2021
@katre katre merged commit 1da70f7 into bazelbuild:release-4.2.1-patches Aug 26, 2021
@katre katre deleted the cp-i13904-bto branch August 26, 2021 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants