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

Use gcovr to enforce code coverage everywhere #437

Merged
merged 4 commits into from
Oct 1, 2024

Conversation

hidmic
Copy link
Collaborator

@hidmic hidmic commented Sep 30, 2024

Proposed changes

Closes #434 (kinda). This patch introduces gcovr for code coverage enforcement for all distributions and workflows. codecov remains in use for Humble jobs triggered by local workflows.

Type of change

  • 🐛 Bugfix (change which fixes an issue)
  • 🚀 Feature (change which adds functionality)
  • 📚 Documentation (change which fixes or extends documentation)

Checklist

  • Lint and unit tests (if any) pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • All commits have been signed for DCO

Additional comments

The choice of gcovr in addition to lcov has to do with feature support. Only the newest versions of lcov, available starting Noble, have the "fail under X coverage" feature. Alas, colcon's lcov integration is all broken in Noble -.-.

@hidmic hidmic self-assigned this Sep 30, 2024
@hidmic
Copy link
Collaborator Author

hidmic commented Sep 30, 2024

Noetic is below 95%. Rolling is just failing everywhere.

@hidmic hidmic force-pushed the hidmic/check-code-coverage branch from 9eca23e to 4dfc931 Compare October 1, 2024 11:32
Copy link
Member

@nahueespinosa nahueespinosa left a comment

Choose a reason for hiding this comment

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

LGTM

@hidmic hidmic merged commit 73ae4d4 into main Oct 1, 2024
21 checks passed
@hidmic hidmic deleted the hidmic/check-code-coverage branch October 1, 2024 16:48
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.

CI fails on codecov upload for PRs from forks
2 participants