Unexpected failure in GitHub Action run
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
main の .github/workflows/book.yml と pull request #579 のバージョンから始め、次に workflow run 6003953262 と github.head_ref を使用している actions/checkout ステップを調査します。イベントコンテキスト、チェックアウトされたリポジトリ、利用可能な refs を比較して、失敗の原因を説明します。どの workflow バージョンと ref が使用されているかを文書化し、PR workflow を正常に実行するために必要な設定を特定できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
In a recent pull request (https://github.com/InnerSourceCommons/InnerSourcePatterns/pull/579), one of our GitHub Action (GHA) workflow runs failed.
Overview of failed GHAs:
Now when looking at the details of that workflow run, I noticed something interesting:
- when you click on "workflow file", it takes you to the
book.ymlfile from this branch/PR (which comes from a fork) - however the file that really got executed is actually the one on the
mainbranch of the upstream. I am so sure about this as the main branch contains the config for a matrix build for this GHA, while the branch from the PR does not have that matrix build yet)
So at the very least I am starting to wonder how GHAs really work. Seems like I might have some misunderstandings here.
My questions are:
- which GHAs are executed? the ones on the
mainbranch, or the ones on the PR branch, or both? mainand PR contain different versions of the same GHA. what happens in that case?
And lastly:
Why does this GHA run fail at all?
It seems like it is looking for a git ref hive-mind-pattern-1 and cannot find it? Possibly because that ref only exists on the fork but not on the upstream?
Do we have to configure the actions/checkout differently, so that it can find that git ref?
Right now we use ref: ${{ github.head_ref }}, which is defined as:
The head_ref or source branch of the pull request in a workflow run. This property is only available when the event that triggers a workflow run is either pull_request or pull_request_target.
I am suspecting that we are checking out the upstream repo InnerSourceCommons/InnerSourcePatterns but then trying to point to a ref that does not exist on that upsream.
Just not sure how one would configure this correctly?
- 主要言語
- HTML
- スター
- 853
- フォーク
- 206
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 2
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
InnerSourceCommons/InnerSourcePatterns のほかの issue
-
community metrics
InnerSourceCommons/InnerSourcePatterns#935 · 担当者 1 名 ·
-
community metrics
InnerSourceCommons/InnerSourcePatterns#934 · 担当者 1 名 ·
-
community metrics
InnerSourceCommons/InnerSourcePatterns#922 · 担当者 1 名 ·
-
community metrics
InnerSourceCommons/InnerSourcePatterns#921 · 担当者 1 名 ·
-
community metrics
InnerSourceCommons/InnerSourcePatterns#915 · 担当者 1 名 ·
InnerSourceCommons/InnerSourcePatterns の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
dotnet/arcade-skills#51 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
ethereum-optimism/factory#64 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
thedotmack/claude-mem#4161 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
bitcoindevkit/bdk-ffi#1125 ·
-
intake mcp-intake needs-ac needs-human-review priority:medium type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Ikalus1988/MisakaNet#2019 · コメント 2 件 ·