Skip to content

Handle "N/A" warning count data when generating summary report #8

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

Merged
merged 1 commit into from
Oct 1, 2020
Merged

Handle "N/A" warning count data when generating summary report #8

merged 1 commit into from
Oct 1, 2020

Conversation

per1234
Copy link
Collaborator

@per1234 per1234 commented Sep 30, 2020

When it is not possible to compile the sketch at the deltas base ref, the warning count delta is recorded as "N/A".
Previously, the summary report generation code did not handle this case correctly, which resulted in failing with an
error:

TypeError: '>' not supported between instances of 'int' and 'str'

@per1234 per1234 added the type: imperfection Perceived defect in any part of project label Sep 30, 2020
@codecov-commenter
Copy link

codecov-commenter commented Sep 30, 2020

Codecov Report

Merging #8 into main will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              main        #8   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines         1545      1561   +16     
=========================================
+ Hits          1545      1561   +16     
Impacted Files Coverage Δ
compilesketches/compilesketches.py 100.00% <100.00%> (ø)
compilesketches/tests/test_compilesketches.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 76ebce6...bc831fb. Read the comment docs.

When it is not possible to compile the sketch at the deltas base ref, the warning count delta is recorded as "N/A".
Previously, the summary report generation code did not handle this case correctly, which resulted in failing with an
error:

TypeError: '>' not supported between instances of 'int' and 'str'
Copy link
Contributor

@aentinger aentinger left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Thank you @per1234 🤖

@aentinger aentinger merged commit d64baa9 into arduino:main Oct 1, 2020
@per1234 per1234 deleted the fix-comparison-bug branch October 1, 2020 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants