yuqi1129 commented on code in PR #14990:
URL: https://github.com/apache/gravitino/pull/14990#discussion_r4594751655


##########
.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:
   Retested after Actions was re-enabled: timelyflow/gravitino now passes the 
real workflow validation too.
   
   Attempt 1 failed/cancelled: 
https://github.com/timelyflow/gravitino/actions/runs/44007215865/attempts/1
   Partial rerun attempt 2 passed the required jobs but retained the cancelled 
watcher/aggregate: 
https://github.com/timelyflow/gravitino/actions/runs/44007215865/attempts/2
   
   Using the unchanged PR head 47475514b7, the publisher read live run/job APIs 
and wrote real sandbox statuses: failure → pending during rerun → success after 
recovery. The following scheduled probe kept success without another jobs read. 
PR metadata and upstream repository routing used the sandbox adapter; the 
Actions responses were live rather than captured-record replay.
   
   Updated the PR description to remove the earlier dispatch-disabled 
limitation. No product-code changes were needed.



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