Skip to content

[stable/5.1] Test the pushed pull request commit, not its branch's current tip - #9193

Merged
gonzaloriestra merged 1 commit into
stable/5.1from
test-pull-request-head-sha-5.1
Nov 26, 2026
Merged

gonzaloriestra merged 1 commit into
stable/5.1from
test-pull-request-head-sha-5.1

Conversation

@craigmichaelmartin

Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

Backports #9191 to stable/5.1, so checks on pull requests into the line test the commit they are reported on.

WHAT is this pull request doing?

The same change as #9191: every tests-pr.yml checkout uses the event's head SHA instead of the head branch name.

How to manually test your changes?

In this pull request's checks, each job's checkout step names the pull request's head commit.

🤖 Generated with Claude Code

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>
(cherry picked from commit c5737f1)
@craigmichaelmartin
craigmichaelmartin requested a review from a team November 25, 2026 13:18
@github-actions github-actions Bot added the no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users. label Nov 25, 2026
@gonzaloriestra
gonzaloriestra merged commit db60a11 into stable/5.1 Nov 26, 2026
47 of 51 checks passed
@gonzaloriestra
gonzaloriestra deleted the test-pull-request-head-sha-5.1 branch November 26, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants