dwsmith1983 opened a new pull request, #7728: URL: https://github.com/apache/datafusion-comet/pull/7728
## Which issue does this PR close? Part of #7727. This is the first of two PRs: PRB_LINK replaces the scheduled sweep with a batched sync and builds on this one, so this one merges first. ## Rationale for this change The batched sync in the follow-up builds the `CI (fork)` check from GraphQL data instead of the per-PR REST calls in `syncCheck`, and decides whether to write from the check's status, conclusion and run id. This PR moves the code that builds and writes the check out of `syncCheck` so both paths can share it, and drops the state the follow-up no longer compares. ## What changes are included in this PR? - `runPayload`, `missingPayload` and `writeCheck` are pulled out of `syncCheck` in `fork_ci_status.yml`, unchanged apart from the two points below. `syncCheck` still looks up the fork workflow only when no run is found. - The JSON stored in the check's `output.text` no longer carries `run_attempt`, which nothing reads. A rerun that ends with the same result as before no longer rewrites the check. - The note on each check no longer quotes the polling intervals, which the follow-up changes. Every existing check is rewritten once, the next time it syncs, because its stored text and summary change. Its status and conclusion stay the same. ## How are these changes tested? In `dev/ci/test-fork-ci-status.cjs`: - The rerun test now asserts the failure-to-success flip and the exact stored text. - A new test checks that a new attempt with the same result writes nothing. - Another new test checks that the fork workflow is looked up only when there is no run. The first two fail on `main`. The third fails if the lookup is made every time. `check-ci-config.py` passes. -- 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]
