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

github: Test on Ubuntu Noble #654

Merged
merged 2 commits into from
May 22, 2024
Merged

Conversation

cole-miller
Copy link
Contributor

Signed-off-by: Cole Miller cole.miller@canonical.com

Signed-off-by: Cole Miller <cole.miller@canonical.com>
Copy link

codecov bot commented May 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.72%. Comparing base (cb65db7) to head (2b2982d).
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #654      +/-   ##
==========================================
- Coverage   80.57%   70.72%   -9.86%     
==========================================
  Files         196      195       -1     
  Lines       28301    26276    -2025     
  Branches     5300     2820    -2480     
==========================================
- Hits        22803    18583    -4220     
- Misses       3767     5376    +1609     
- Partials     1731     2317     +586     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@letFunny letFunny left a comment

Choose a reason for hiding this comment

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

Thanks!

Makefile.am Outdated
# FIXME this works around an incompatibility between lcov v2 and our copy of ax_code_coverage.m4.
# Once GNU publishes an updated version of ax_code_coverage.m4 that works out-of-the box with
# lcov v2, this line should be removed.
CODE_COVERAGE_LCOV_OPTIONS += --ignore-errors unused
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume these are just warnings and the coverage is still reported correctly, right?

From what I see on the man pages,

unused: the include/exclude/erase/omit/substitute pattern did not match any file pathnames.

so I just want to check we are sure we are not missing any paths.

Copy link
Contributor Author

@cole-miller cole-miller May 22, 2024

Choose a reason for hiding this comment

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

Yeah, this was a bad fix. I ended up (2b2982d) just changing CI to only collect coverage on Jammy, so we don't have to deal with the lcov v2 changes at all until GNU publishes an updated ax_code_coverage.m4. (I don't really want to carry our own modified copy, since that creates more work whenever we want to refresh it using changes from GNU.)

I do not think the error reported here is a problem for coverage correctness; it just means that our build doesn't use any files from /tmp, which makes sense. I guess that ax_code_coverage.m4 passes --exclude /tmp/* unconditionally, though I couldn't say confidently why.

There are also some warnings about using an option --lcov-branch-coverage that has been renamed in v2 to just --branch-coverage; again, that's coming straight from our vendored ax_code_coverage.m4, and if we just stick to Jammy until this file can be updated then we should be fine.

Signed-off-by: Cole Miller <cole.miller@canonical.com>
@cole-miller
Copy link
Contributor Author

Ready to go I think.

@cole-miller cole-miller requested review from letFunny and just-now and removed request for letFunny May 22, 2024 10:57
Copy link
Contributor

@letFunny letFunny left a comment

Choose a reason for hiding this comment

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

Thanks!

@cole-miller cole-miller merged commit e155da5 into canonical:master May 22, 2024
16 of 17 checks passed
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.

None yet

2 participants