Repository navigation
Closed
Description
Here's what I have in mind for creating a CI job for the turtlebot demo. I am looking to get the direction approved before speaking with @nuclearsandwich about how to implement it.
As I imagine it, this will be a manually-triggered CI job while we're developing the demo and then can switch to a nightly once it's stable.
- Add the supplementary repos file as a jenkins parameter
- Modify the ci_job.xml template to include this parameter if something like
supplementary_repos_fileis set when evaluating the template.
- Modify the ci_job.xml template to include this parameter if something like
- Add the ci_linux-turtlebot_demo job to the farm
- Add it to the create_jenkins_job.py script
- Set the default supplementary repos file to https://raw.githubusercontent.com/ros2/turtlebot2_demo/master/turtlebot2_demo.repos or something (using a similar strategy to 38f57f3#diff-10b89ee3f1ac5a693c0ff698ad83c16dR1)
- Pull the supplementary repos file into the source space
- Put a for-loop around this section that calls vcs
- For turtlebot demo dependencies available as binaries, only add them to the dockerfile if necessary
- Inject the installation of the dependencies into the dockerfile using sed as is done to modify the FROM command for arm jobs -- OR --
- Use the
create_dockerfilemethod from ros_buildfarm to generate the Dockerfile from a template, only including turtlebot dependency snippet if appropriate
- Ask turtlebot demo developers to target PRs at the turtlebot2_demo.repos file, and PRs for additional binary dependencies at the turtlebot demo extra dependencies list on ros2/ci
I understand point 4 as just a "nice to have".
Metadata
Metadata
Assignees
Labels
No labels
Activity
dhood commentedon Mar 8, 2017
The above was written with the understanding that the turtlebot demo repos file would be pulled in on top of the ros2 repos file.
Certainly we can just have the turtlebot demo repos file written such that it also includes the contents of the standard ros2 repos and in that case the task is simplified to:
Inject the installation of the dependencies into the dockerfile using sed as is done to modify the FROM command for arm jobs-- OR --Use thecreate_dockerfilemethod from ros_buildfarm to generate the Dockerfile from a template, only including turtlebot dependency snippet if appropriateAgain point 2 is just a "nice to have".Unless anyone objects I will go with this approach as the first iteration and then we can improve it in another iteration. I would appreciate an approval on this direction before starting work.
mikaelarguedas commentedon Mar 8, 2017
Thanks for iterating on this, that matches what I understood of the offline discussion and allow us not to have to deal with all the edge cases of having/merging two repos files (as discussed in #17)
dhood commentedon Mar 8, 2017
Thanks @mikaelarguedas
inspired by #33 I updated the approach to pass an argument to the dockerfile for point 2 (thanks for the idea @dirk-thomas!)
nuclearsandwich commentedon Mar 13, 2017
I started working on updating
create_jenkins_job.pyscript for the new CI job and ran into issues with my local dev environment not being able to communicate with Jenkins.Stacktrace in this gist.
dhood commentedon Mar 13, 2017
The script will look for a
~/.buildfarm/jenkins.inifile. In it should be an entry like:where the token is generated from https://github.com/settings/tokens
Does that match what you have in your setup?
dhood commentedon Mar 13, 2017
(there are a couple of readme links you have to follow to get that information. here is the final section of relevance: https://github.com/ros-infrastructure/ros_buildfarm/blob/master/doc/environment.rst#provide-credentials-for-jenkins-master)
nuclearsandwich commentedon Mar 13, 2017
yes, mine currently defines a
[DEFAULT]entry as well since I spent some time Friday troubleshooting.nuclearsandwich commentedon Mar 13, 2017
With @dhood's help we sorted it out. The token needs some scope beyond empty. We got success with a token that had repo and user scopes. I'll do some checks to figure out what the minimum scope required is and update the docs.
mikaelarguedas commentedon Mar 21, 2017
@dhood @nuclearsandwich should this be closed now that #35 has been merged and deployed?
nuclearsandwich commentedon Mar 21, 2017
I think it would be fine to close it and iterate on the configuration (system dependencies, repos file in https://github.com/ros2/turtlebot2_demo/blob/master/turtlebot2_demo.repos) or if we wanted to set some more concrete goals for testing those before closing this, I'd be up for trying to get it across that finish line as well.
When I tried optimistically to just toss the two repos mentioned in the tutorial into a repos file with the rest of the ros2 deps I got a missing kobuki driver package.
http://ci.ros2.org/job/ci_turtlebot-demo/5/console
There's no kobuki repo that I can find in the ros2 org. Should that be a system dependency, or a source build of a ros 1 package?
mikaelarguedas commentedon Mar 21, 2017
Ah yeah that's a bit misleading. It looks like the parts of interest of
kobuki_driverhave been carved out and put into theturtlebot2_driverspackage via ros2/turtlebot2_demo#7. So I think it should be neither a system dependency or a ros1 package built from source in this case.mikaelarguedas commentedon Mar 21, 2017
Follow-up on this: my bad, it looks like this package still depends on several ros1 packages (according to this comment, thanks @clalancette for pointing it out)
dhood commentedon Mar 23, 2017
we mentioned that it is left to turtlebot demo developers to iterate on the turtlebot demo repos file so I'll close this for now.