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

ROS2 ci #28

Merged
merged 10 commits into from
Jul 5, 2022
Merged

ROS2 ci #28

merged 10 commits into from
Jul 5, 2022

Conversation

jdlangs
Copy link
Contributor

@jdlangs jdlangs commented May 13, 2022

Trying out a workflow where tesseract is built from source to see how feasible it is.

@jdlangs jdlangs mentioned this pull request May 13, 2022
@jdlangs jdlangs force-pushed the ros2-ci branch 2 times, most recently from 2a5b9a7 to 67d06d3 Compare May 19, 2022 18:23
@jdlangs
Copy link
Contributor Author

jdlangs commented May 19, 2022

@Levi-Armstrong any idea why the workflow can't get past the taskflow dependency? I've tried installing it from the ROS-I PPA and also a local build/install from source which should put it /usr. CMake still seems to not find it though.

@Levi-Armstrong
Copy link
Contributor

Levi-Armstrong commented May 23, 2022

The current way you are installing taskflow will not work because you are using a docker image. Taskflow is currently being installed on the machine running the CI which starts a docker and will not have Taskflow. You will need to use the industrial CI before script functionality to do this install so it is in the Docker.

An easier approach may be to update this docker file

https://github.com/ros-industrial/docker/blob/master/tesseract/Dockerfile and build new dockers and push them to docker hub.

Examples on how to build the different distros

https://github.com/ros-industrial/docker/blob/master/tesseract/hooks/build

@jdlangs
Copy link
Contributor Author

jdlangs commented May 23, 2022

Thanks, I don't know how I managed to forget the CI was running in a container, not on the runner directly. For now, I'll go the simpler route of adding taskflow here instead of modifying the image.

I've had some conversations with @marip8 that we should probably prefer to drop the ROS base image and use a pure ubuntu base for all the tesseract and tesseract_planning CI. Maybe now is a good time to move towards that?

@Levi-Armstrong
Copy link
Contributor

I've had some conversations with @marip8 that we should probably prefer to drop the ROS base image and use a pure ubuntu base for all the tesseract and tesseract_planning CI. Maybe now is a good time to move towards that?

I think that should be fine but not sure what the impact would be to build times since we would need to still install a few ros packages and the build tool catkin. I think this only impacts Tesseract since the other repos would still use the auto generated dockers like how tesseract_planning currently works.

@jdlangs
Copy link
Contributor Author

jdlangs commented May 25, 2022

Ok, so we're back to all green now. ~50 min is not great but not crazy terrible for overall run time. It does feel wrong to run a full tesseract build just to run clang_tidy though.

@Levi-Armstrong
Copy link
Contributor

Ok, so we're back to all green now. ~50 min is not great but not crazy terrible for overall run time. It does feel wrong to run a full tesseract build just to run clang_tidy though.

You could enable clang tidy in the focal build and just have one which will take longer to run, but I think I had to split into two because it was exceeding a time limit.

@Levi-Armstrong
Copy link
Contributor

@jdlangs can this be merged?

@jdlangs
Copy link
Contributor Author

jdlangs commented Jul 5, 2022

Yes, if you're ok with it. I never got around to trying to get rid of the separate clang-tidy build but that's not a blocker.

@jdlangs jdlangs changed the title WIP: ROS2 ci ROS2 ci Jul 5, 2022
@Levi-Armstrong Levi-Armstrong merged commit 4745fb8 into tesseract-robotics:ros2-dev Jul 5, 2022
@jdlangs jdlangs deleted the ros2-ci branch July 5, 2022 16:54
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.

2 participants