-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Add target_kind to scrubber matching rules
#21151
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
Conversation
tjgq
left a comment
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 good to me, but please add tests in //src/test/java/com/google/devtools/build/lib/remote/ScrubberTest.java. You can use the test cases for label_regex (i.e., matchExactLabel, matchUnionLabel and matchWildcardLabel) as a starting point.
| // Whether to match actions built for a tool configuration. | ||
| // The default is to match only actions built for non-tool configurations. | ||
| bool match_tools = 3; | ||
| // A regex matching the action target kind. |
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.
"A regex matching the rule kind of the action owner."
7ba6343 to
3428a6f
Compare
3428a6f to
88fbad5
Compare
|
I don't believe the CI failures are related. Importing. |
|
@bazel-io fork 7.1.0 |
Add the target kind (e.g. java_library) to the scrubbing matcher configuration. This is useful because different kinds may use the same mnemonic, and specifying an explicit set of labels is labor-intensive and error-prone. Closes bazelbuild#21151. PiperOrigin-RevId: 605624773 Change-Id: Ib5748ca2dbb3fd6d30b27fc1b292d7cd826ced62
|
FYI - I renamed the |
…21276) Add the target kind (e.g. java_library) to the scrubbing matcher configuration. This is useful because different kinds may use the same mnemonic, and specifying an explicit set of labels is labor-intensive and error-prone. Closes #21151. Commit 4bcf855 PiperOrigin-RevId: 605624773 Change-Id: Ib5748ca2dbb3fd6d30b27fc1b292d7cd826ced62 Co-authored-by: Artem V. Navrotskiy <[email protected]>
|
The changes in this PR have been included in Bazel 7.1.0 RC1. Please test out the release candidate and report any issues as soon as possible. If you're using Bazelisk, you can point to the latest RC by setting USE_BAZEL_VERSION=last_rc. |
Allow the use of the target kind (for example,
cc_library,go_binary,go_test...) in the scrubbing matcher configuration.This is useful, as different target kinds can have the same mnemonic.