Skip to content

Conversation

@emmanuelsdias
Copy link
Contributor

@emmanuelsdias emmanuelsdias commented Jul 3, 2025

Minor fix following #47. Addresses the following:

  • Coverage rate being saved for the current branch wasn't following the 1e-8 precision used in the diff branch;
  • Removed unneeded tr -d '%'.

My bad on the suggestion I left on the PR missing these points 🥲

As an additional note, I thought about adding tests for these edge cases (80% on baseline, 80.000001% / 79.999999% on branches). However, it seems that pycobertura show counts line for each <line /> element in the xml, so the mock files would require 1e8 lines to do so, which is far from ideal. Due to that, tests were left untouched.

@emmanuelsdias emmanuelsdias requested a review from a team as a code owner July 3, 2025 18:34
@emmanuelsdias
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

Copy link
Contributor

@cicdguy cicdguy left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks again!

@cicdguy cicdguy merged commit 50449af into insightsengineering:main Jul 3, 2025
2 of 20 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jul 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants