-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Improve coverage for waypoint_follower package #2407
Improve coverage for waypoint_follower package #2407
Conversation
Hi, If you could, however, resolve these, it would be appreciated:
It should be simple, they're just included in the wrong order after some linter profile updates from Galactic 🙄 I am looking at the codecov results https://codecov.io/gh/ros-planning/navigation2/tree/ab4f95b6d43e82ba633015bcafac61b21ddba622/nav2_waypoint_follower and seeing about ~2% additional testing to 86%! Any chance you took a look at the remaining code not covered / main server to see how we could push that package to 90%? |
Sure, no problem!
I'm already working on it 😅 |
Done. Tested on my laptop and already pushed.
How do you test coverage locally? I have set up Codecov locally to easily check for coverage improvements. However the percentages I get are different from those reported on codecov.io. |
Unfortunately, I don't have a good guide ready at the moment. This ticket ros-navigation/docs.nav2.org#88 introduces the idea of a tutorial for that with some instructions I've used in the past when I've been working on test coverage, they might help! |
@SteveMacenski Last commit pushed plugins coverage to 95.04%, but main server coverage dramatically drop to 41.03%. I can't figured out what's happened. |
I'm seeing that it dropped (https://codecov.io/gh/ros-planning/navigation2/tree/ceb3bc4ff61c8567a74c3a0031b21b20cf60dc80), probably because the waypoint tests failed https://app.circleci.com/pipelines/github/ros-planning/navigation2/5532/workflows/a63c326a-d859-4c4c-97e2-57d6d2a5636c/jobs/20255/tests#failed-test-4
the tester died |
Yes, I saw the result of that test. Any idea why it failed? I've just made some changes to the plugins module |
198 means that it failed. I'd check the logs and see what failed to run properly. It looks like there's a print that the goal was rejected. It was not up in lifecycle yet which make sense (looking at the logs above, still trying to get the initial pose). Going a bit up more you see a CI issues are always hard to debug, my recommendation would be to take it 1 step at a time, usually you can find the problem if you dont get overwhelmed by the logs and just focus in on 1 thing at a time |
You are definitely right. Since I can't have CircleCI builds locally, I just wanted to avoid doing test commits to debug.
Let's see how this new build ends! |
Total coverage for nav2_waypoint_follower is now 90.24%. Still improvable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Thanks so much for this, another package to 90%!
* Working on improve coverage for waypoint_follower package * Fix typo * Fix cpplint and uncrustify errors * Fix nav_2d_utils/src/conversions.cpp include order errors (ros-navigation#2407) * Improve coverage for wait_at_waypoint plugin * Improve coverage for photo_at_waypoint plugin
Basic Info
Description of contribution in a few bullet points
Future work that may be required in bullet points
For Maintainers: