Expose all cmake variables

Aperta
#905 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
cmake, python
Ambito
ci-cd, devops

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Python
Stelle
55
Fork
40
Merge medio
3g 5h
PR unite (30g)
6

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ros2/ci

Tutte le issue di ros2/ci

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.