Expose all cmake variables

Open
#905 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
cmake, python
Domain
ci-cd, devops

Research direction

Read the cmake_args lists in ros2_batch_job/packaging.py and ros2_batch_job/main.py, then the Jenkins parameter defaults in create_jenkins_job.py. Add those flags as job parameters and a helper so packaging vs CI jobs keep different defaults. Done when RelWithDebInfo, BUILD_TESTING and similar can be toggled in Jenkins instead of being hard-coded in the Python jobs.

Written by the indexing model from the issue text.

Description

enhancement
Description

Currently there are an couple of cmake variables that are added at the level of the python scripts of the jobs which are silently added. We should expose them to be at the level of the parameters as default so that people can turn it on or off when testing things out.

Motivation

For this PR https://github.com/ros2/rosbag2/pull/2494, a CI was run to mimic the packaging job, however, it was not clear that additionally with the RelWithDebInfo, it was also -DBUILD_TESTING=OFF that was different to both the nightly and packaging job.

Design / Implementation Considerations

We should take these cmake_args

https://github.com/ros2/ci/blob/efcdc28473ab2d8ac42493e141687fbd0ecd4dbd/ros2_batch_job/packaging.py#L39

https://github.com/ros2/ci/blob/efcdc28473ab2d8ac42493e141687fbd0ecd4dbd/ros2_batch_job/__main__.py#L286

and add them to https://github.com/ros2/ci/blob/efcdc28473ab2d8ac42493e141687fbd0ecd4dbd/create_jenkins_job.py#L118. We would need to write a function to change the default with packaging and CI jobs.

Additional Information

No response

Dominant language
Python
Stars
55
Forks
40
Avg merge
3d 5h
Merged PRs (30d)
6

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ros2/ci

All issues in ros2/ci

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.