ros2_batch_job --workspace-path option does not work

オープン
#600 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
ci-cd, cli

調査の方向性

ros2_batch_job/main.py の 238-240 行付近にある argparse の宣言から始め、続いて 267-270 行付近と 427 行にある workspace 名の処理を追ってください。これらのパスを、job_templates/ci_job.xml.em の 123、265、368 行にある --workspace-path の参照と比較してください。--workspace-path を設定すると batch job が使用する workspace が変更され、関連する whitespace オプションが壊れなければ完了です。

索引モデルが issue の本文から書いたものです。

説明

backlog bug

Looking at the code we see that the argparse option declared here:

https://github.com/ros2/ci/blob/eb8d0ad3e9b74a71561c178bb5d8487f77206d35/ros2_batch_job/__main__.py#L238-L240

is not actually used anywhere in the code. So setting this option has no affect on the job.

I'm not sure exactly how to fix the argument because I don't understand the purpose of the --white-space-in option, which is coupled to determining the actual workspace named used:

https://github.com/ros2/ci/blob/eb8d0ad3e9b74a71561c178bb5d8487f77206d35/ros2_batch_job/__main__.py#L427

If I'm not mistaken, this section of code is relevant as well:

https://github.com/ros2/ci/blob/eb8d0ad3e9b74a71561c178bb5d8487f77206d35/ros2_batch_job/__main__.py#L267-L270


Here are other references to the option I could find:

https://github.com/ros2/ci/blob/eb8d0ad3e9b74a71561c178bb5d8487f77206d35/job_templates/ci_job.xml.em#L123

https://github.com/ros2/ci/blob/eb8d0ad3e9b74a71561c178bb5d8487f77206d35/job_templates/ci_job.xml.em#L265

https://github.com/ros2/ci/blob/eb8d0ad3e9b74a71561c178bb5d8487f77206d35/job_templates/ci_job.xml.em#L368

主要言語
Python
スター
55
フォーク
40
平均マージ
3日 5時間
マージ済み PR(30日)
6

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ros2/ci のほかの issue

ros2/ci の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。