You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Direct Backport Push misses PR right after merge due to commit→PR association lag #4617
The Direct Backport Push workflow (.github/workflows/direct-backport-push.yml) can miss the merged PR immediately after a merge to main, causing the push-backports job to find zero backport targets and get skipped.
Expected behavior: when a PR merged into main has a backport target label such as release/v1.1.0-incubating, the workflow should reliably resolve the merged PR and push the backport on the first run.
Actual behavior: the first run may fail to resolve the merged PR, but re-running the workflow about a minute later succeeds.
Root cause appears to be GitHub's asynchronous commit-to-PR association refresh after squash merge. The workflow currently calls GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls, but the push event can fire before GitHub's association index is ready.
How to reproduce?
Merge a PR into main using squash merge.
Ensure the merged PR has a backport target label such as release/v1.1.0-incubating.
Let the Direct Backport Push workflow run automatically on the merge commit.
Observe that the Resolve merged PR and green targets step may fail to find an associated PR and skip push-backports.
Re-run the same workflow roughly one minute later.
Observe that the rerun succeeds because the commit-to-PR association is then available.
Activity
Yicong-Huang commentedon May 1, 2026
race condition. will fix it.
fix(ci): resolve merged PR robustly in Direct Backport Push (#4620)
fix(ci): resolve merged PR robustly in Direct Backport Push (#4620)
fix(ci): resolve merged PR robustly in Direct Backport Push (apache#4620
fix(ci): resolve merged PR robustly in Direct Backport Push (apache#4620