-
Notifications
You must be signed in to change notification settings - Fork 97
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
ROS_ROOT not available when running devel job tests? #923
Comments
Not at the moment, no. The dominant pattern regarding dependencies in the various jobs of I would suggest making your test automatically skip if the rosdep cache hasn't been created. |
This is a situation that potentially be helped by |
Okay, the So, the question is whether |
catkin_lint has an actual problem with the fact that buildfarm doesn't run So the code that correctly disables catkin_lint on ROS buildfarm became pretty ugly: if(CATKIN_ENABLE_TESTING)
find_package(roslint REQUIRED)
# catkin_lint - checks validity of package.xml and CMakeLists.txt
# ROS buildfarm calls this without any environment and with empty rosdep cache,
# so we have problems reading the list of packages from env
# see https://github.com/ros-infrastructure/ros_buildfarm/issues/923
if(DEFINED ENV{ROS_HOME})
#catkin_lint: ignore_once env_var
set(ROS_HOME "$ENV{ROS_HOME}")
else()
#catkin_lint: ignore_once env_var
set(ROS_HOME "$ENV{HOME}/.ros")
endif()
#catkin_lint: ignore_once env_var
if(DEFINED ENV{ROS_ROOT} AND EXISTS "${ROS_HOME}/rosdep/sources.cache")
roslint_custom(catkin_lint "-W2" .)
roslint_add_test()
endif()
endif() |
@cottsay Using |
This issue has been mentioned on ROS Discourse. There might be relevant details there: https://discourse.ros.org/t/ros1-now-is-a-great-time-to-add-catkin-lint-to-your-packages/36521/1 |
I've got this build failing: https://build.ros.org/job/Ndev__rosmsg_cpp__ubuntu_focal_amd64/1/consoleFull .
The error is:
The code that is tested there calls roscpp
RosPack()
to find paths to already installed system packages (geometry_msgs). Is there a way to ensure thatrosdep init && rosdep update
is called in the container before running the tests?The text was updated successfully, but these errors were encountered: