Closed Rd4dev closed 1 week ago
@BenHenning can you PTAL!
Note that this is a summarized snapshot. See the CI artifacts for detailed differences.
Note that this is a summarized snapshot. See the CI artifacts for detailed differences.
@BenHenning added the test case to verify that a min coverage exemption results in the file not being exempted, PTAL!
Unassigning @Rd4dev since a re-review was requested. @Rd4dev, please make sure you have addressed all review comments. Thanks!
Note that this is a summarized snapshot. See the CI artifacts for detailed differences.
Thanks for the review and suggestions @BenHenning, added the required test cases for validating coverage exemption checks too, can you PTAL!
Unassigning @Rd4dev since a re-review was requested. @Rd4dev, please make sure you have addressed all review comments. Thanks!
Note that this is a summarized snapshot. See the CI artifacts for detailed differences.
Feel free to merge this @Rd4dev if you don't intend to make any follow-up changes. If you do make follow-up changes, please assign back so I can look at them.
Assigning @adhiamboperes for code owner reviews. Thanks!
Hey @BenHenning, I removed the kDocs for the private methods in TestFileCheck.kt
. Can you PTAL? Also, I'm wondering if I can merge this if it's not from upstream?
Unassigning @Rd4dev since a re-review was requested. @Rd4dev, please make sure you have addressed all review comments. Thanks!
Note that this is a summarized snapshot. See the CI artifacts for detailed differences.
Explanation
Fixes part of #5343
Project [PR 1.2 of Project 4.1] This PR is based on develop as it had no other dependency with other PRs.
Changes Implemented
This PR implements updates to enhance the handling of file exemptions and code coverage settings:
Updates
script_exemptions.proto
to support two possible states:Aligns
test_file_exemptions.textproto
with the new proto format.Modifies
TestFileCheck.kt
to integrate the updated proto format.Project Context
In Project 4.1, we are introducing code coverage capabilities where certain files may require exemptions from the default minimum code coverage percentage. These exemptions can now be managed in
test_file_exemptions.textproto
by setting theoverride_min_coverage_percentage
.Implementation Details
Initially, I explored using the
TodoOpenCheck
regeneration structure to implement these changes. However, due to significant differences in regeneration requirements (creating a new proto format to regenerate the exemptions list), conflicts arose withgenerate_test_file_assets_list_from_text_protos
.Given that the regeneration process is solely aimed at rebuilding the textproto file and no longer serves any other purpose in this project, I opted to manually compile a list of exempted files and used it to generate the new proto format. I then transferred this newly generated format to the textproto file. The regeneration implementation can be found in my local test_exemption branch
Post-generation, the regeneration functionality was removed, as it no longer aligns with the project's needs. Further validation and adjustments, if necessary, will be discussed with Ben and implemented.
Essential Checklist
For UI-specific PRs only
If your PR includes UI-related changes, then: