Repository navigation
Skip easy-win branches whose PR was merged during the nightly update - #8650
Open
cbeauchesne wants to merge 1 commit into
Open
cbeauchesne wants to merge 1 commit into
cbeauchesne wants to merge 1 commit into
Conversation
The nightly activation looks up the open PR of an easy-win branch, then force-pushes its update. If auto-merge merges the PR in between, GitHub refuses the push (422 Reference cannot be updated) and the whole job fails. When the push fails on an existing PR that is no longer open, skip the branch: the next nightly recreates it from an up-to-date main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
|
|
This comment will be updated automatically if new data arrives. 🔗 Commit SHA: 5781ab2 | Docs | View more details | Give us feedback! |
cbeauchesne
marked this pull request as ready for review
November 23, 2026 20:21
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Motivation
The
Test activationjob of nightly run 44666257300 failed oneasy-win/apm-idm/php:The job found PR #8582 open and with no human activity, so it updated it. #8582 had auto-merge enabled and was merged at 06:41:31Z. The force-push to its branch came at 06:41:34Z, and GitHub refused it.
A retry would not help. Once the PR is merged, a retry either fails again or recreates the branch from a
mainthat doesn't include #8582 yet, which duplicates its activations.Changes
If the push of an existing PR's update fails,
process_activation_branchchecks the PR state:OPEN(merged or closed): log it and skip the branch. The next nightly recreates the branch from an up-to-datemain.Validation
test_github_nightly.pycover the push failing on a merged, closed or open PR, and on a new PR. The merged, closed and open cases fail against the previous code.TEST_THE_TEST: 1429 passed, 1 xfailed.🤖 Generated with Claude Code