yuqi1129 opened a new pull request, #15080:
URL: https://github.com/apache/gravitino/pull/15080

   ### What changes were proposed in this pull request?
   
   Allow trusted Fork CI dispatches from the current upstream PR target branch 
when it is the default branch or a `branch-X.Y` release branch. Keep the exact 
target ref, current branch-tip SHA, Apache repository and open-PR checks. 
Update the workflow input, recovery messages and contributor instructions.
   
   ### Why are the changes needed?
   
   PRs changing CI definitions on release branches can finish fork CI 
successfully but remain pending with `Fork CI passed; trusted verification 
required`: the publisher requires trusted verification while the resolver 
rejects release-branch dispatches. This affected #15055 and currently blocks 
#15072. Existing trusted results for a different contributor head still cannot 
satisfy the check, as in #14959.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Committers can run trusted Fork CI from the release branch targeted by the 
PR. This support must also be backported to the target release branch before 
dispatching there; merging it only into main does not enable release-branch 
runs.
   
   ### How was this patch tested?
   
   - Added resolver-to-publisher regression coverage for branch-1.3 and 
branch-2.0, including a PR with an older base snapshot. It fails before the fix 
and passes afterward.
   - Added rejection cases for another branch, a tag, a stale tip and an 
arbitrary feature target; rejected calls produce no outputs.
   - `node --test .github/scripts/tests/fork-ci.test.cjs 
.github/scripts/tests/retire-fork-ci.test.cjs`: 151 passed, zero failures/skips.
   - All script tests: 176 passed, 18 unrelated CVE tests skipped because yq is 
unavailable, zero failures. `git diff --check` and Markdown table source 
alignment checks passed.
   - Live GitHub Actions sandbox: 
https://github.com/timelyflow/gravitino/pull/39. Reproduced successful fork CI 
with pending trusted verification and the original release-dispatch rejection. 
Applying the resolver fix allowed trusted verification and the real publisher 
changed the status to success. Advancing the PR head invalidated the old 
trusted result and restored pending; a fresh trusted run then restored success 
on the new head. Sandbox adaptations change repository identities, use manual 
dispatch, and reduce suites to a syntax probe while retaining the frozen-merge 
check; this does not validate the full Java/integration suite.
   


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