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

Include generated code in instrumented files #17556

Closed
wants to merge 1 commit into from

Conversation

linzhp
Copy link
Contributor

@linzhp linzhp commented Feb 22, 2023

We are using a code generator that replaces the source code with generated code before feeding to the compiler. We are collecting the code coverage on the generated code so we can map it back to the original source code.

This was possible before Bazel 6, but started to fail after Bazel 6 because it comes with a newer version of coverage_output_generator, which ignores files not included in coverage_common.instrumented_files_info.

This PR makes coverage_common.instrumented_files_info return both regular and generated/derived source files.

@sgowroji sgowroji added team-Configurability platforms, toolchains, cquery, select(), config transitions awaiting-review PR is awaiting review from an assigned reviewer labels Feb 23, 2023
@katre katre added team-Rules-CPP Issues for C++ rules and removed team-Configurability platforms, toolchains, cquery, select(), config transitions labels Mar 31, 2023
@buildbreaker2021 buildbreaker2021 self-assigned this Apr 3, 2023
@buildbreaker2021 buildbreaker2021 added coverage and removed team-Rules-CPP Issues for C++ rules labels Aug 29, 2023
@c-mita
Copy link
Member

c-mita commented Aug 29, 2023

Redundant after #11350

@c-mita c-mita closed this Aug 29, 2023
@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Aug 29, 2023
@linzhp linzhp deleted the instrumented branch December 21, 2023 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants