Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

run-task sometimes fails to check out git repositories when `base_ref` is set

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

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

評価

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

調査の方向性

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

taskcluster/taskgraph のほかの issue

taskcluster/taskgraph の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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