run-task sometimes fails to check out git repositories when `base_ref` is set
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 42/100
調査の方向性
Start at the run-task checkout flow and reproduce the failure with base_ref set to a value such as refs/heads/train-en-ca. Compare checkout behavior with the documented shortened branch-name workaround. Done means run-task successfully checks out the requested repository branch when base_ref includes the refs/heads/ prefix.
索引モデルが issue の本文から書いたものです。
説明
This can happen when base_ref is set to a branch like refs/heads/test, we end up with errors like:
[taskcluster 2023-12-04 20:41:36.381Z] === Task Starting ===
[setup 2023-12-04T20:41:38.720Z] run-task started in /
[vcs 2023-12-04T20:41:38.722Z] WARNING: vcs checkout path (/builds/worker/checkouts/src) not in cache or volume; performance will likely suffer
[setup 2023-12-04T20:41:38.722Z] running as worker:worker
[vcs 2023-12-04T20:41:38.722Z] executing ['git', 'clone', 'https://github.com/mozilla/firefox-translations-training', '/builds/worker/checkouts/src']
[vcs 2023-12-04T20:41:38.725Z] Cloning into '/builds/worker/checkouts/src'...
[vcs 2023-12-04T20:41:39.580Z] executing ['git', 'fetch', 'origin', 'refs/heads/train-en-ca']
[vcs 2023-12-04T20:41:39.776Z] From https://github.com/mozilla/firefox-translations-training
[vcs 2023-12-04T20:41:39.776Z] * branch train-en-ca -> FETCH_HEAD
[vcs 2023-12-04T20:41:39.783Z] executing ['git', 'checkout', 'refs/heads/train-en-ca']
[vcs 2023-12-04T20:41:39.786Z] error: pathspec 'refs/heads/train-en-ca' did not match any file(s) known to git
[vcs 2023-12-04T20:41:41.789Z] executing ['git', 'checkout', 'refs/heads/train-en-ca']
[vcs 2023-12-04T20:41:41.792Z] error: pathspec 'refs/heads/train-en-ca' did not match any file(s) known to git
[vcs 2023-12-04T20:41:45.796Z] executing ['git', 'checkout', 'refs/heads/train-en-ca']
[vcs 2023-12-04T20:41:45.800Z] error: pathspec 'refs/heads/train-en-ca' did not match any file(s) known to git
The known workaround at the moment is to shorten the base_ref to only include the branch name, eg: with something like:
short_base_ref:
$if: 'base_ref[:11] == "refs/heads/"'
then: {$eval: 'base_ref[11:]'}
else: ${base_ref}
- 主要言語
- Python
- スター
- 26
- フォーク
- 55
- 平均マージ
- 2日 6分
- マージ済み PR(30日)
- 15
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
taskcluster/taskgraph のほかの issue
-
Dependency Dashboard オープン
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
taskcluster/taskgraph#952 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
taskcluster/taskgraph#915 ·
-
feature
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
taskcluster/taskgraph#911 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
taskcluster/taskgraph#882 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
taskcluster/taskgraph#865 · コメント 1 件 ·
taskcluster/taskgraph の issue をすべて見る
似ている issue
-
essnmx good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
-
[Feature] 奇物选择添加优先级 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
syfoud/Simulated_Scepter#174 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Giskard-AI/giskard-oss#2840 · コメント 1 件 ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success オープンarea: repo bug perceived difficulty: 2
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
yeti-platform/yeti#1380 ·