dwsmith1983 opened a new pull request, #7729: URL: https://github.com/apache/datafusion-comet/pull/7729
## Which issue does this PR close? Closes #7727. Builds on #7728, which merges first. ## Rationale for this change After a contributor reruns failed jobs on their fork, the `CI (fork)` check keeps the old result for up to a few hours, because the scheduled pass refreshes a completed check only in a rotating slice of 25 open pull requests. Measured on 15 reruns, the lag was 20 minutes to about 4 hours. ## What changes are included in this PR? The scheduled pass in `fork_ci_status.yml` now reads pull requests 25 at a time through one GraphQL query, which returns both the upstream check and the fork head commit's check suites. This follows apache/spark#60098. - A quick pass runs every 10 minutes over pull requests updated in the last three days. A full pass runs every four hours, and on `workflow_dispatch`. - A check is written only when its status, conclusion or run changes. A completed check is left alone while its run is running again, since GitHub cannot reopen it. - When the query cannot be trusted for a pull request (the fork's suites are truncated, or a suite comes back without its run or workflow file), that pull request falls back to the existing REST path. - A GraphQL error fails only the pull requests it points at; the pass carries on and fails at the end. - `notify()` (the `workflow_run` path) is unchanged. - `check-ci-config.py` checks that the script's full-pass cron is one of the workflow's crons, and the CI docs describe the new timing. The query has not run under the workflow's token yet: a `workflow_dispatch` right after merge would confirm it. Reverting this PR restores the old sweep. ## How are these changes tested? `dev/ci/test-fork-ci-status.cjs` gets a GraphQL mock and replaces the sweep tests. The new tests cover: - a rerun hours after the last push; - quick versus full passes, and paging with cursors; - unchanged and old-format checks (no write); - missing runs, and runs from the wrong branch, event or workflow; - the REST fallback and partial GraphQL errors. Each guard was checked by breaking it and watching its test fail. The query was also run read-only against the live repository. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
