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

fix: handle scientific notation when parsing hit count in lcov reports #227

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

matt-codecov
Copy link
Contributor

surprisingly, we encountered a report where a line was executed >2**64 times and the lcov tool emitted the hit count with scientific notation. this commit handles that

i mocked up lcov data that uses scientific notation and ran the upload through my local instance of codecov and it worked: https://github.com/matt-codecov/test-lcov-sci-notation

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@codecov-staging
Copy link

codecov-staging bot commented Jan 2, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #227      +/-   ##
==========================================
- Coverage   98.22%   98.22%   -0.01%     
==========================================
  Files         369      369              
  Lines       29808    29813       +5     
==========================================
+ Hits        29279    29283       +4     
- Misses        529      530       +1     
Flag Coverage Δ
integration 98.22% <87.50%> (-0.01%) ⬇️
latest-uploader-overall 98.22% <87.50%> (-0.01%) ⬇️
unit 98.22% <87.50%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 96.44% <87.50%> (-0.01%) ⬇️
OutsideTasks 97.93% <87.50%> (-0.01%) ⬇️
Files Coverage Δ
services/report/languages/tests/unit/test_lcov.py 100.00% <ø> (ø)
services/report/languages/lcov.py 96.87% <87.50%> (-0.93%) ⬇️

@codecov-qa
Copy link

codecov-qa bot commented Jan 2, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (b084755) 98.22% compared to head (63d9c18) 98.22%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #227      +/-   ##
==========================================
- Coverage   98.22%   98.22%   -0.01%     
==========================================
  Files         369      369              
  Lines       29808    29813       +5     
==========================================
+ Hits        29279    29283       +4     
- Misses        529      530       +1     
Flag Coverage Δ
integration 98.22% <87.50%> (-0.01%) ⬇️
latest-uploader-overall 98.22% <87.50%> (-0.01%) ⬇️
unit 98.22% <87.50%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 96.44% <87.50%> (-0.01%) ⬇️
OutsideTasks 97.93% <87.50%> (-0.01%) ⬇️
Files Coverage Δ
services/report/languages/tests/unit/test_lcov.py 100.00% <ø> (ø)
services/report/languages/lcov.py 96.87% <87.50%> (-0.93%) ⬇️

Copy link

codecov-public-qa bot commented Jan 2, 2024

Codecov Report

Merging #227 (63d9c18) into main (b084755) will decrease coverage by 0.01%.
The diff coverage is 87.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #227      +/-   ##
==========================================
- Coverage   98.22%   98.22%   -0.01%     
==========================================
  Files         369      369              
  Lines       29808    29813       +5     
==========================================
+ Hits        29279    29283       +4     
- Misses        529      530       +1     
Flag Coverage Δ
integration 98.22% <87.50%> (-0.01%) ⬇️
latest-uploader-overall 98.22% <87.50%> (-0.01%) ⬇️
unit 98.22% <87.50%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 96.44% <87.50%> (-0.01%) ⬇️
OutsideTasks 97.93% <87.50%> (-0.01%) ⬇️
Files Coverage Δ
services/report/languages/tests/unit/test_lcov.py 100.00% <ø> (ø)
services/report/languages/lcov.py 96.87% <87.50%> (-0.93%) ⬇️

Copy link

codecov bot commented Jan 2, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (b084755) 98.19% compared to head (63d9c18) 98.19%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #227      +/-   ##
==========================================
- Coverage   98.19%   98.19%   -0.01%     
==========================================
  Files         400      400              
  Lines       30509    30514       +5     
==========================================
+ Hits        29959    29963       +4     
- Misses        550      551       +1     
Flag Coverage Δ
integration 98.22% <87.50%> (-0.01%) ⬇️
latest-uploader-overall 98.22% <87.50%> (-0.01%) ⬇️
unit 98.22% <87.50%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 96.34% <87.50%> (-0.01%) ⬇️
OutsideTasks 97.93% <87.50%> (-0.01%) ⬇️
Files Coverage Δ
services/report/languages/tests/unit/test_lcov.py 100.00% <ø> (ø)
services/report/languages/lcov.py 97.00% <87.50%> (-0.90%) ⬇️
Related Entrypoints
run/app.tasks.upload.UploadProcessor

@matt-codecov matt-codecov merged commit f87a597 into main Jan 3, 2024
13 of 30 checks passed
@matt-codecov matt-codecov deleted the matt/lcov-handle-sci-notation branch January 3, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants