yuqi1129 commented on code in PR #14990:
URL: https://github.com/apache/gravitino/pull/14990#discussion_r4594710447
##########
.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:
Extended the fix in 5f4ac60f19 and 47475514b7 after checking more
snapshot/rerun corner cases:
- Individual prerequisite/suite failures block success even if the aggregate
reports success.
- Jobs newer than the run listing invalidate the snapshot instead of being
discarded.
- The reverse direction is also guarded: a completed rerun cannot reuse a
jobs snapshot containing only earlier attempts.
- Incomplete `Fork CI needs attention` results are rechecked by scheduled
sweeps without requiring another run/attempt. Identical results are
deduplicated, and recovered successes regain the settled probe.
118 Fork CI tests passed; all script tests: 150 passed, 18 unrelated
yq-dependent skips. Four targeted mutations were rejected. The final cumulative
diff received a fresh-context review.
Also exercised a real Actions sandbox:
https://github.com/yuqi1129/gravitino/actions/runs/44005674712/attempts/2
retained an aggregate cancelled conclusion after the required jobs passed, and
the modified publisher correctly reported success. Captured real records were
replayed in both snapshot-lag directions through the publisher, with actual
commit-status writes in yuqi1129/gravitino and timelyflow/gravitino; automatic
recovery and settled-success deduplication passed. The replay used a sandbox
PR-metadata/repository adapter. Timelyflow's own workflow dispatch returned
HTTP 422 (Actions disabled), so that execution path was not validated. Full
scope and test limits are in the updated PR description.
--
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]