-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Fix common prefix for instrumentation filter #12607
Conversation
In case that two path share a prefix, the instrumentation filter is not computed proper. bazelbuild#10949 This PR takes as a base the one that was created by @caiyulun and adds some tests. Original PR: bazelbuild#10949
listOfTargets.add(getTarget("//foo:t")); | ||
listOfTargets.add(getTarget("//foobar:t")); | ||
Collection<Target> targets = Collections.unmodifiableCollection(listOfTargets); | ||
String expectedFilter = "^//foo[/:],^//foobar[/:]"; |
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.
If prefered, I could split the PR in two commits to see more clear how the test would change with the changes.
Before the this PR the expected Filter would have been just ^//foo[/:]
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.
This is fine. We squash the PR into a single commit anyway, so there's limited value in splitting everything up incrementally in this case.
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.
LGTM.
listOfTargets.add(getTarget("//foo:t")); | ||
listOfTargets.add(getTarget("//foobar:t")); | ||
Collection<Target> targets = Collections.unmodifiableCollection(listOfTargets); | ||
String expectedFilter = "^//foo[/:],^//foobar[/:]"; |
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.
This is fine. We squash the PR into a single commit anyway, so there's limited value in splitting everything up incrementally in this case.
@c-mita some checks are failing but looks more like an http error connection. |
@c-mita and me are merging this right now and I'll make sure to get it into Bazel 4.0.0rc3! :) |
In case that two path share a prefix, the instrumentation filter is not computed proper. bazelbuild#10949 This PR takes as a base the one that was created by @caiyulun and adds some tests. Original PR: bazelbuild#10949 Closes bazelbuild#12607. PiperOrigin-RevId: 346097533
In case that two path share a prefix, the instrumentation filter is
not computed proper.
#10949
This PR takes as a base the one that was created by @caiyulun and
adds some tests.
Original PR: #10949