jerryshao commented on code in PR #14990:
URL: https://github.com/apache/gravitino/pull/14990#discussion_r4594302310
##########
.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:
[P1] If attempt 1 passed and attempt 2 leaves an unexpanded, cancelled
`Required CI / …` record, this predicate ignores the attempt 2 cancellation and
publishes the attempt 1 success against the attempt 2 URL. Please check attempt
ordering before treating a nonmatching summary as obsolete. Add the reverse of
the existing stale-summary test so an older cancellation followed by an exact
success recovers, while a newer cancellation after an exact success still
blocks.
--
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]