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

Make coverage --combined_report=lcov skip incompatible tests #15419

Closed
wants to merge 1 commit into from

Conversation

philsc
Copy link
Contributor

@philsc philsc commented May 8, 2022

Before this patch we see coverage trying to execute incompatible
tests. This results in Can't build this. This target is incompatible
messages. Instead, those tests should just be skipped.

This patch makes it so the coverage code only tries to collect
coverage artifacts for compatible tests. Artifacts for incompatible
tests are ignored.

Fixes #15385

Before this patch we see coverage trying to execute incompatible
tests. This results in `Can't build this. This target is incompatible`
messages. Instead, those tests should just be skipped.

This patch makes it so the coverage code only tries to collect
coverage artifacts for compatible tests. Artifacts for incompatible
tests are ignored.
@sgowroji sgowroji added team-Rules-CPP Issues for C++ rules awaiting-review PR is awaiting review from an assigned reviewer labels May 9, 2022
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

@c-mita c-mita added coverage and removed awaiting-review PR is awaiting review from an assigned reviewer labels May 10, 2022
@c-mita c-mita self-assigned this May 10, 2022
@bazel-io bazel-io closed this in 2f1ff6f May 10, 2022
philsc added a commit to philsc/bazel that referenced this pull request May 12, 2022
Before this patch we see coverage trying to execute incompatible
tests. This results in `Can't build this. This target is incompatible`
messages. Instead, those tests should just be skipped.

This patch makes it so the coverage code only tries to collect
coverage artifacts for compatible tests. Artifacts for incompatible
tests are ignored.

Fixes bazelbuild#15385

Closes bazelbuild#15419.

PiperOrigin-RevId: 447710011
(cherry picked from commit 2f1ff6f)
philsc added a commit to philsc/bazel that referenced this pull request May 18, 2022
Before this patch we see coverage trying to execute incompatible
tests. This results in `Can't build this. This target is incompatible`
messages. Instead, those tests should just be skipped.

This patch makes it so the coverage code only tries to collect
coverage artifacts for compatible tests. Artifacts for incompatible
tests are ignored.

Fixes bazelbuild#15385

Closes bazelbuild#15419.

PiperOrigin-RevId: 447710011
(cherry picked from commit 2f1ff6f)
ckolli5 added a commit that referenced this pull request May 19, 2022
Before this patch we see coverage trying to execute incompatible
tests. This results in `Can't build this. This target is incompatible`
messages. Instead, those tests should just be skipped.

This patch makes it so the coverage code only tries to collect
coverage artifacts for compatible tests. Artifacts for incompatible
tests are ignored.

Fixes #15385

Closes #15419.

PiperOrigin-RevId: 447710011
(cherry picked from commit 2f1ff6f)

Co-authored-by: Chenchu Kolli <ckolli@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
coverage team-Rules-CPP Issues for C++ rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bazel 5 coverage --combined_report=lcov executes incompatible actions
3 participants