fix(dependency_walker): don't get dependencies of non ROS packages#171
Conversation
c742995 to
76a44b6
Compare
|
Hi @cottsay, could we get a workflow approval? Thanks. |
|
Sorry for the long delay. This looks like a good change. I'm not sure why the Action workflows aren't triggering. Can you try to rebase this to trigger it? |
In case we consider non-ROS dep, we don't want to look for the ROS dependencies of non ROS packages (ie: cmake)
bdd4e16 to
a82c725
Compare
|
@tfoote , rebased and pushed the branch. It's now waiting for a "workflow approval" |
|
Approved the workflow it's running now |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #171 +/- ##
=========================================
Coverage ? 39.79%
=========================================
Files ? 51
Lines ? 3257
Branches ? 660
=========================================
Hits ? 1296
Misses ? 1785
Partials ? 176 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
It seems that one test had a timeout and cancelled the remaining workflows. It looks like I cannot retry it myself. |
|
@cottsay merged in the CI fix and the workflows are running now. One question for this is that calling this with a non-ROS package seems like an error. Should we make it respond as an error rather than silently return an empty set? |
It has been 2 years, so I honestly do not remember the use case I was covering. It sounds reasonable to respond as an error. |
tfoote
left a comment
There was a problem hiding this comment.
Thanks for the patience on this and the follow up.
lgtm and I triggered CI successfully
When using the
DependencyWalkerand callingget_recursive_dependswith theros_packages_onlytoFalse, theDependencyWalkertries to get the dependencies of every dependency (even the non-ROS ones).In order to get the dependencies of a package we must get the corresponding ROS package (for the XML etc). This is not possible for non ROS packages (like
CMake,boostetc). Hence this causes aKeyError.I simply added a check to verify if the package is a ROS package or not before trying to get its dependencies.