yuqi1129 commented on code in PR #14990:
URL: https://github.com/apache/gravitino/pull/14990#discussion_r4594584375
##########
.github/scripts/fork-ci-status.cjs:
##########
@@ -70,12 +70,21 @@ function evaluateExecution(pr, run, jobs, baseSha) {
return { status: running ? 'in_progress' : 'queued',
title: running ? 'Fork CI is running' : 'Fork CI is queued, waiting for
a runner' };
}
- const failed = jobs.filter(job => job.name !== FAIL_FAST && ['failure',
'timed_out'].includes(job.conclusion))
+ // Full reruns can resolve a newer base. Required CI jobs for older contexts
must not
+ // override the exact context selected above; its successful result is still
mandatory.
+ const isAuxiliary = job => job.name === FAIL_FAST ||
+ (job.name.startsWith('Required CI / ') && job !== required);
Review Comment:
Fixed in bec4e63951. A nonmatching Required CI summary is now ignored only
when both attempt numbers are valid and it is strictly older than the exact
matching summary. Same-attempt, newer, missing or invalid attempt metadata
blocks success; job IDs do not override attempt ordering.
Added the reverse regression through the scheduled publisher: attempt 1
succeeds, attempt 2 has an unexpanded/cancelled summary, and no success is
published against attempt 2. The existing older-cancellation →
newer-exact-success recovery remains green. Coverage also includes trusted/fork
runs, mismatched base summaries, success/skipped/unfinished summaries and a
successful aggregate run with a newer cancellation.
112 Fork CI tests passed; all script tests: 144 passed, 18 unrelated
CVE-policy tests skipped because yq is unavailable. Restoring the previous
implementation makes all three new regression tests fail. Fresh-context review
found no remaining blocking findings.
--
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]