yuqi1129 opened a new pull request, #15058: URL: https://github.com/apache/gravitino/pull/15058
### What changes were proposed in this pull request? When `BACKPORT_BOT_OWNER` is configured, route automatic backports of merged `main` PRs labeled `branch-1.3` or `branch-2.0` through one configured bot fork. The coordinator pushes a provenance-marked branch, creates the upstream release PR, and dispatches Fork CI after the PR exists. Matching branches/PRs are reused; conflicts create draft PRs without explicitly dispatching heavy CI. If the owner variable is absent or empty, preserve Apache-hosted backport branches and CI using the existing `CHERRY_PICK_TOKEN` or `GITHUB_TOKEN`. Bot secrets and release routing support are not prerequisites for this default mode. Configured bot failures remain errors and never silently fall back to Apache. Use the unprivileged PR signal and a default-branch `workflow_run` coordinator. Keep the bot PAT out of tested code, use upstream job credentials for labels, isolate preparation pushes from dispatched runs, and support trusted verification from the current supported release tip. ### Why are the changes needed? Automatic cherry-pick branches currently run heavy PR CI in Apache's shared runner pool. A dedicated fork removes that normal backport workload without per-committer credentials or App installations. Related to #15014. Post-merge CI and existing Apache-hosted backport PRs are unchanged. ### Does this PR introduce _any_ user-facing change? No product/API changes. To opt into offloading, administrators configure `BACKPORT_BOT_OWNER` and `BACKPORT_BOT_TOKEN`, enable Fork CI in the bot fork, and manually install the routing support in supported release branches. Leaving the owner unset preserves Apache execution. Legacy release PR-event CI still needs `CHERRY_PICK_TOKEN`; migrated release CI is dispatched explicitly after PR creation. See `CONTRIBUTING.md` for bootstrap, permissions, retry, and conflict-resolution instructions. Manual pushes under the reserved `backport/` namespace require explicit Fork CI dispatch. CI-definition changes still require committer-reviewed trusted CI on Apache runners; this safety exception is not offloaded. ### How was this patch tested? - Final local script suite: 218 tests passed, zero failed or skipped, with `yq` and `jq` installed. Changed workflows passed actionlint and `git diff --check`. - Mutation checks: disabling the unconfigured-owner fallback and reverting supported-release trusted dispatch each make their regression test fail. - Real bot sandbox: [coordinator](https://github.com/yuqi1129/gravitino/actions/runs/44251573310) authenticated as `yuqi-datastrato`, cherry-picked/pushed, created [PR #32](https://github.com/yuqi1129/gravitino/pull/32), and verified retry reuse. [Fork CI](https://github.com/yuqi-datastrato/gravitino/actions/runs/44251639961) verified the exact head/base merge and passed the prototype's 168 script tests. The test PR was closed without merging. - The sandbox proves the real bot credential/branch/PR/dispatch path; it does not prove the final `workflow_run` merge trigger or Apache deployment. Final hosted regression checks are pending runner availability. No full product/Java/Docker build was run for this workflow-only change. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
