-
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
Expose CoverageOutputGenerator's label in a configuration #8736
Labels
coverage
P3
We're not considering working on this, but happy to review a PR. (No assignee)
team-Rules-Server
Issues for serverside rules included with Bazel
type: feature request
Comments
iirina
added
coverage
P3
We're not considering working on this, but happy to review a PR. (No assignee)
team-Rules-Server
Issues for serverside rules included with Bazel
labels
Jun 27, 2019
@c-mita I think that I generally know how to resolve this issue, but would need to know which |
I don't know if there is a good fragment at the moment to add this one; the existing ones tend to be language specific. It may be we need to create one. |
fmeum
added a commit
to fmeum/bazel
that referenced
this issue
Mar 8, 2022
This allows Starlark rules to define _lcov_merger as a late-bound Starlark configuration_field in order not to pay the cost of building it when coverage isn't enabled. Fixes bazelbuild#8736 Fixes bazelbuild#10642 Closes bazelbuild#14724. RELNOTES: Add coverage configuration fragment, used to expose output_generator label. PiperOrigin-RevId: 433156089
Wyverald
pushed a commit
that referenced
this issue
Mar 8, 2022
This allows Starlark rules to define _lcov_merger as a late-bound Starlark configuration_field in order not to pay the cost of building it when coverage isn't enabled. Fixes #8736 Fixes #10642 Closes #14724. RELNOTES: Add coverage configuration fragment, used to expose output_generator label. PiperOrigin-RevId: 433156089
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
coverage
P3
We're not considering working on this, but happy to review a PR. (No assignee)
team-Rules-Server
Issues for serverside rules included with Bazel
type: feature request
In the native rules we have the late-bound attribute
:lcov_merger
which looks at the build configuration to see if coverage is enabled and returns the label ofCoverageOutputGenerator
or null (see BaseRuleClasses#115).We need the Starlark rules to be able to define
_lcov_merger
as a late bound attribute in the same way. For this to happen, theCoverageOutputGenerator
s label has to be exposed on a class that extends BuildConfiguration.Fragment.This is helpful for example for
rules_go
(see #8670), in order forgo_test
to be compatible with bazel's native test rules (e.g.java_test
,cc_test
).The text was updated successfully, but these errors were encountered: