yuqi1129 opened a new issue, #15014:
URL: https://github.com/apache/gravitino/issues/15014

   ### What would you like to be improved?
   
   Fork CI moves contributor PR builds to their forks, but two cases still run 
the full CI workload in `apache/gravitino`:
   
   - Pushes to `main` after a PR is merged.
   - Robot-created PRs whose source branches are pushed directly to 
`apache/gravitino`, such as automatic cherry-pick PRs.
   
   Route these workloads to the responsible committer's fork to reduce CI 
resource consumption in the Apache repository while preserving test coverage 
and reliable status reporting.
   
   ### How should we improve?
   
   - **Post-merge CI:** identify the actual PR merger and run CI in their 
configured fork against the exact merged commit.
   - **Automatic cherry-pick PRs:** retain the originating PR/merge identity 
and run pre-merge CI in the original merger's fork, testing the robot PR's head 
against its target branch.
   - **Other robot PRs:** allow a committer to explicitly trigger CI in their 
own fork when no originating merge identifies a responsible person.
   - Keep lightweight coordination and status publishing in `apache/gravitino`. 
Extend result discovery beyond the PR's head repository, validating the 
execution repository, required suites, and exact head/base SHAs before 
accepting results.
   - Provide explicit fork enrollment and cross-repository authorization. A 
GitHub App installed on participating forks is one option; Apache's 
repository-scoped `GITHUB_TOKEN` cannot dispatch workflows in personal forks by 
itself.
   - Define visible failure/recovery behavior for missing forks, disabled 
Actions, missing authorization, and failed dispatches. Never report success 
without a matching CI execution.
   
   The implementation should preserve existing contributor-fork CI, handle 
reruns without accepting stale results, and avoid duplicate full CI runs in 
Apache and the committer's fork. The final merger of an open robot PR is not 
yet known; automatic cherry-pick routing should use the originating merger 
instead.
   


-- 
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]

Reply via email to