Repository navigation
ci: check out PR head instead of merge ref in e2e workflow - #940
Merged
Merged
Conversation
The e2e reusable workflow defaulted to github.ref, which on pull_request events is refs/pull/N/merge. GitHub does not compute that ref when the PR has conflicts or before the merge commit is ready, causing actions/checkout to fail with "couldn't find remote ref refs/pull/N/merge" for reasons unrelated to the code. Pass github.event.pull_request.head.sha from pr.yml so e2e checks out the PR head directly. Motivating failure: https://github.com/stablyai/orca/actions/runs/24768962365 Seen on #937.
AmethystLiang
force-pushed
the
fix-e2e-merge-ref
branch
from
April 22, 2026 16:59
0aa16a9 to
c07b613
Compare
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
) The e2e reusable workflow defaulted to github.ref, which on pull_request events is refs/pull/N/merge. GitHub does not compute that ref when the PR has conflicts or before the merge commit is ready, causing actions/checkout to fail with "couldn't find remote ref refs/pull/N/merge" for reasons unrelated to the code. Pass github.event.pull_request.head.sha from pr.yml so e2e checks out the PR head directly. Motivating failure: https://github.com/stablyai/orca/actions/runs/24768962365 Seen on stablyai#937.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.github/workflows/e2e.yml) defaultsreftogithub.ref, which onpull_requestevents isrefs/pull/N/merge.actions/checkoutfails withfatal: couldn't find remote ref refs/pull/N/merge— unrelated to the code under test.github.event.pull_request.head.shafrompr.ymlso the e2e job checks out the PR head directly. No change to what is tested; only the checkout ref.Motivating failure: #937, run https://github.com/stablyai/orca/actions/runs/24768962365/job/72470149899
Test plan