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 cobertura XML parsing #118

Merged
merged 6 commits into from
Oct 12, 2023
Merged

Fix cobertura XML parsing #118

merged 6 commits into from
Oct 12, 2023

Conversation

joseph-sentry
Copy link
Contributor

This PR changes the Cobertura XML parsing to do case-insensitive handling of the branch attribute on a line, and to handle the case where both the condition elements and missing branches attributes don't exist on a partially covered line.

Fixes: codecov/feedback#61
Fixes: codecov/feedback#67

@codecov-staging
Copy link

codecov-staging bot commented Sep 27, 2023

Codecov Report

❗ No coverage uploaded for pull request base (main@9937c41). Click here to learn what that means.
The diff coverage is 100.00%.

❗ Current head 3737e0b differs from pull request most recent head 57f6b4d. Consider uploading reports for the commit 57f6b4d to get more accurate results

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #118   +/-   ##
=======================================
  Coverage        ?   98.42%           
=======================================
  Files           ?      341           
  Lines           ?    26640           
  Branches        ?        0           
=======================================
  Hits            ?    26220           
  Misses          ?      420           
  Partials        ?        0           
Flag Coverage Δ
integration 98.42% <100.00%> (?)
latest-uploader-overall 98.42% <100.00%> (?)
unit 98.42% <100.00%> (?)

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

Components Coverage Δ
NonTestCode 96.98% <100.00%> (?)
OutsideTasks 98.20% <100.00%> (?)
Files Coverage Δ
services/report/languages/cobertura.py 96.87% <100.00%> (ø)

@codecov-public-qa
Copy link

codecov-public-qa bot commented Sep 27, 2023

Codecov Report

Merging #118 (57f6b4d) into main (9937c41) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #118   +/-   ##
=======================================
  Coverage   98.43%   98.44%           
=======================================
  Files         347      347           
  Lines       27226    27230    +4     
=======================================
+ Hits        26801    26806    +5     
+ Misses        425      424    -1     
Flag Coverage Δ
integration 98.44% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 98.44% <100.00%> (+<0.01%) ⬆️
unit 98.44% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 97.00% <100.00%> (+0.01%) ⬆️
OutsideTasks 98.24% <100.00%> (+<0.01%) ⬆️
Files Coverage Δ
services/report/languages/cobertura.py 97.00% <100.00%> (+1.16%) ⬆️
...ices/report/languages/tests/unit/test_cobertura.py 100.00% <100.00%> (ø)

@codecov
Copy link

codecov bot commented Sep 27, 2023

Codecov Report

Merging #118 (57f6b4d) into main (9937c41) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #118   +/-   ##
=======================================
  Coverage   98.39%   98.40%           
=======================================
  Files         373      373           
  Lines       27722    27726    +4     
=======================================
+ Hits        27278    27283    +5     
+ Misses        444      443    -1     
Flag Coverage Δ
integration 98.44% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 98.44% <100.00%> (+<0.01%) ⬆️
unit 98.44% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 96.89% <100.00%> (+0.01%) ⬆️
OutsideTasks 98.24% <100.00%> (+<0.01%) ⬆️
Files Coverage Δ
services/report/languages/cobertura.py 97.00% <100.00%> (+1.16%) ⬆️
...ices/report/languages/tests/unit/test_cobertura.py 100.00% <100.00%> (ø)
Related Entrypoints
run/app.tasks.profiling.normalizer
run/app.tasks.upload.UploadProcessor

@codecov-qa
Copy link

codecov-qa bot commented Oct 9, 2023

Codecov Report

Merging #118 (57f6b4d) into main (9937c41) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #118   +/-   ##
=======================================
  Coverage   98.43%   98.44%           
=======================================
  Files         347      347           
  Lines       27226    27230    +4     
=======================================
+ Hits        26801    26806    +5     
+ Misses        425      424    -1     
Flag Coverage Δ
integration 98.44% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 98.44% <100.00%> (+<0.01%) ⬆️
unit 98.44% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 97.00% <100.00%> (+0.01%) ⬆️
OutsideTasks 98.24% <100.00%> (+<0.01%) ⬆️
Files Coverage Δ
services/report/languages/cobertura.py 97.00% <100.00%> (+1.16%) ⬆️
...ices/report/languages/tests/unit/test_cobertura.py 100.00% <100.00%> (ø)

Signed-off-by: joseph-sentry <[email protected]>
Signed-off-by: joseph-sentry <[email protected]>
@joseph-sentry joseph-sentry merged commit d7044b1 into main Oct 12, 2023
25 of 26 checks passed
@joseph-sentry joseph-sentry deleted the joseph/fix-cobertura-xml branch October 12, 2023 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants