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

feat: add code coverage report #1808

Merged
merged 4 commits into from
Mar 4, 2025

Conversation

diogomatsubara
Copy link
Contributor

@diogomatsubara diogomatsubara commented Mar 3, 2025

A few caveats

  • I had to --skip a few tests that were hanging during CI runs under llvm-cov (e.g. router_linkstate, three_node_combination, three_node_combination_multicast). Those tests pass during normal unit tests runs, not sure why they hang when executed under llvm-cov
  • the new workflow adds a matrix job for both nightly and stable. Enabling nightly allows us to run the llvm-cov with the --doctests option
  • added --ignore-run-fail so we upload the code coverage report even if the tests fail. We still have flaky tests that causes failures, which end up cancelling the report upload step.
  • I still need to configure the code cov token for zenoh but that will require a separate PR to eclipse-zenho/.eclipsefdn. The token is used for reports on protected branches, like zenoh main.

Copy link

github-actions bot commented Mar 3, 2025

PR missing one of the required labels: {'internal', 'enhancement', 'breaking-change', 'new feature', 'bug', 'documentation', 'dependencies'}

@diogomatsubara diogomatsubara added the internal Changes not included in the changelog label Mar 3, 2025
Copy link

codecov bot commented Mar 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@f421407). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1808   +/-   ##
=======================================
  Coverage        ?   70.44%           
=======================================
  Files           ?      358           
  Lines           ?    64584           
  Branches        ?        0           
=======================================
  Hits            ?    45496           
  Misses          ?    19088           
  Partials        ?        0           

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

@diogomatsubara diogomatsubara marked this pull request as ready for review March 3, 2025 13:44
@diogomatsubara
Copy link
Contributor Author

diogomatsubara commented Mar 3, 2025

Once this ticket is solved, we can merge this PR: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/5695

Some tests like router_linkstate and three_node_combination are hanging
when executed under llvm-cov, for now skip them
@YuanYuYuan
Copy link
Contributor

LGTM.

@YuanYuYuan YuanYuYuan merged commit 4b035b7 into eclipse-zenoh:main Mar 4, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Changes not included in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants