Repository navigation
Test the pushed pull request commit, not its branch's current tip - #9191
Open
craigmichaelmartin wants to merge 1 commit into
Open
craigmichaelmartin wants to merge 1 commit into
craigmichaelmartin wants to merge 1 commit into
Conversation
Every tests-pr.yml checkout used the head branch name, so a job that waited for a runner tested whatever the branch pointed at when it started, and reported the result on the older commit. Check out the event's head SHA instead, for pull requests and merge groups alike. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
WHY are these changes introduced?
Every job in
tests-pr.ymlchecks out the pull request's head branch by name (head.ref). A job that waits for a runner tests whatever the branch points at when it starts, but GitHub reports its result on the commit the event named. When the branch moves in between, a check reported on one commit comes from testing another. Releases fromstable/*rely on the checks of the exact commit that merges.WHAT is this pull request doing?
Checks out the event's head SHA in every job:
pull_request.head.sha, ormerge_group.head_shain the merge queue.How to manually test your changes?
In this pull request's checks, each job's checkout step names the pull request's head commit, the same commit its check is reported on.
🤖 Generated with Claude Code