Skip to content

Conversation

@fmeum
Copy link
Collaborator

@fmeum fmeum commented Mar 22, 2022

Before this commit, if a py_test executed a cc_binary from its data
deps, coverage for this cc_binary would not be collected. This is fixed
by adding the implicit $collect_cc_coverage attribute to
BazelPyTestRule, similar to how this is already done for
BazelShTestRule.

Fixes #15098.

Before this commit, if a py_test executed a cc_binary from its data
deps, coverage for this cc_binary would not be collected. This is fixed
by adding the implicit `$collect_cc_coverage` attribute to
BazelPyTestRule, similar to how this is already done for
BazelShTestRule.
Copy link
Member

@c-mita c-mita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fmeum
Copy link
Collaborator Author

fmeum commented Apr 19, 2022

@bazel-io flag

@bazel-io bazel-io added the potential release blocker Flagged by community members using "@bazel-io flag". Should be added to a release blocker milestone label Apr 19, 2022
@bazel-io bazel-io closed this in 8f61bc2 Apr 19, 2022
@ckolli5
Copy link

ckolli5 commented Apr 19, 2022

@bazel-io fork 5.2.0

@bazel-io bazel-io removed the potential release blocker Flagged by community members using "@bazel-io flag". Should be added to a release blocker milestone label Apr 19, 2022
@fmeum fmeum deleted the transitive-coverage-py-test branch April 20, 2022 08:44
fmeum added a commit to fmeum/bazel that referenced this pull request Apr 20, 2022
Before this commit, if a py_test executed a cc_binary from its data
deps, coverage for this cc_binary would not be collected. This is fixed
by adding the implicit `$collect_cc_coverage` attribute to
BazelPyTestRule, similar to how this is already done for
BazelShTestRule.

Fixes bazelbuild#15098.

Closes bazelbuild#15097.

PiperOrigin-RevId: 442800790
fmeum added a commit to fmeum/bazel that referenced this pull request Apr 20, 2022
Before this commit, if a py_test executed a cc_binary from its data
deps, coverage for this cc_binary would not be collected. This is fixed
by adding the implicit `$collect_cc_coverage` attribute to
BazelPyTestRule, similar to how this is already done for
BazelShTestRule.

Fixes bazelbuild#15098.

Closes bazelbuild#15097.

PiperOrigin-RevId: 442800790
fmeum added a commit to fmeum/bazel that referenced this pull request Apr 21, 2022
Before this commit, if a py_test executed a cc_binary from its data
deps, coverage for this cc_binary would not be collected. This is fixed
by adding the implicit `$collect_cc_coverage` attribute to
BazelPyTestRule, similar to how this is already done for
BazelShTestRule.

Fixes bazelbuild#15098.

Closes bazelbuild#15097.

PiperOrigin-RevId: 442800790
fmeum added a commit to fmeum/bazel that referenced this pull request Apr 21, 2022
Before this commit, if a py_test executed a cc_binary from its data
deps, coverage for this cc_binary would not be collected. This is fixed
by adding the implicit `$collect_cc_coverage` attribute to
BazelPyTestRule, similar to how this is already done for
BazelShTestRule.

Fixes bazelbuild#15098.

Closes bazelbuild#15097.

PiperOrigin-RevId: 442800790
fmeum added a commit to fmeum/bazel that referenced this pull request Apr 21, 2022
Before this commit, if a py_test executed a cc_binary from its data
deps, coverage for this cc_binary would not be collected. This is fixed
by adding the implicit `$collect_cc_coverage` attribute to
BazelPyTestRule, similar to how this is already done for
BazelShTestRule.

Fixes bazelbuild#15098.

Closes bazelbuild#15097.

PiperOrigin-RevId: 442800790
fmeum added a commit to fmeum/bazel that referenced this pull request Apr 21, 2022
Before this commit, if a py_test executed a cc_binary from its data
deps, coverage for this cc_binary would not be collected. This is fixed
by adding the implicit `$collect_cc_coverage` attribute to
BazelPyTestRule, similar to how this is already done for
BazelShTestRule.

Fixes bazelbuild#15098.

Closes bazelbuild#15097.

PiperOrigin-RevId: 442800790
fmeum added a commit to fmeum/bazel that referenced this pull request May 10, 2022
Before this commit, if a py_test executed a cc_binary from its data
deps, coverage for this cc_binary would not be collected. This is fixed
by adding the implicit `$collect_cc_coverage` attribute to
BazelPyTestRule, similar to how this is already done for
BazelShTestRule.

Fixes bazelbuild#15098.

Closes bazelbuild#15097.

PiperOrigin-RevId: 442800790
fmeum added a commit to fmeum/bazel that referenced this pull request May 12, 2022
Before this commit, if a py_test executed a cc_binary from its data
deps, coverage for this cc_binary would not be collected. This is fixed
by adding the implicit `$collect_cc_coverage` attribute to
BazelPyTestRule, similar to how this is already done for
BazelShTestRule.

Fixes bazelbuild#15098.

Closes bazelbuild#15097.

PiperOrigin-RevId: 442800790
ckolli5 added a commit that referenced this pull request May 12, 2022
Before this commit, if a py_test executed a cc_binary from its data
deps, coverage for this cc_binary would not be collected. This is fixed
by adding the implicit `$collect_cc_coverage` attribute to
BazelPyTestRule, similar to how this is already done for
BazelShTestRule.

Fixes #15098.

Closes #15097.

PiperOrigin-RevId: 442800790

Co-authored-by: Chenchu Kolli <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-Rules-Python Native rules for Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

java_test and py_test do not collect cc_binary coverage

5 participants