Repository navigation
Conversation
…w changes block the push The merge-upstream job squash-merges the pushed commit onto apache/gluten main and pushes the result to the fork with the workflow's token. The fork rejects that push when main changed files under .github/workflows/ after the branch was cut and the fork doesn't have those changes yet, so the whole run fails until the branch is rebased. Between Nov 17 and 24 this failed 70 runs in contributors' forks. When the push is rejected for that reason, merge onto the last main commit before the first such workflow change, push that, and warn that a rebase tests against the latest main. Runs whose push succeeds are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1304e54 to
ceaf9d2
Compare
|
What do you think about using GitHub’s I’d keep the retry in this PR for pushes that happen before a PR is open, or when the merge ref is missing or stale. I don’t see this as a blocker for the fix. |
|
The retry handles the reported workflow-permission rejection, and unrelated push failures still fail the job. I wouldn't block this fix, but I found two edge cases:
Separate follow-up: the Kafka checkout mismatch is pre-existing, not introduced by this PR. |
What changes are proposed in this pull request?
merge-upstream pushes the squash-merged commit to the fork with the workflow token, which may not add workflow files. When main changed
.github/workflows/after a branch was cut, the push is rejected and the whole fork run fails until the branch is rebased (70 fork runs from Nov 17 to 24). Now, only when the push is rejected for that reason, it merges onto the last main commit before that change, pushes, and warns that a rebase tests against the latest main.How was this patch tested?
Ran the action's steps against a local bare repo with a hook that rejects workflow-file pushes like GitHub does: a stale branch falls back and pushes; an up-to-date branch, a fork that already has the workflow changes, other push errors and conflicts behave as before. In the fork, merge-upstream passed on x86, ARM and Kafka.
Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Code (claude-opus-5-5)
Related issue: #13541