[SPARK-57124][INFRA] Fix update_build_status.yml to map non-standard workflow run statuses#56177
Closed
dongjoon-hyun wants to merge 1 commit into
Closed
[SPARK-57124][INFRA] Fix update_build_status.yml to map non-standard workflow run statuses#56177dongjoon-hyun wants to merge 1 commit into
update_build_status.yml to map non-standard workflow run statuses#56177dongjoon-hyun wants to merge 1 commit into
Conversation
…low run statuses
Member
Author
|
cc @HyukjinKwon, @viirya , @peter-toth |
viirya
approved these changes
May 28, 2026
Member
Author
|
Thank you, @viirya . |
Member
Author
|
Merged to master to fix the infra flakiness. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
This PR fixes the
update_build_status.ymlso that it coerces non-standard workflow run statuses (requested,waiting,pending) to a value accepted by thePATCH /repos/{owner}/{repo}/check-runs/{check_run_id}endpoint.The
elsebranch now mapsrun.data.statusto eitherin_progress(when it is exactlyin_progress) orqueued(for any other non-completedvalue), instead of passing the raw value through.Why are the changes needed?
The scheduled job has been failing intermittently with HTTP 422.
For example, run 26552065653 failed with:
GET /repos/{owner}/{repo}/actions/runs/{run_id}can return any ofcompleted,in_progress,queued,requested,waiting, orpending, whilePATCH /check-runs/{id}only acceptsqueued,in_progress, orcompleted. Forwarding the raw value caused the workflow to crash whenever a fork's run was inpending(orrequested/waiting) state, and the corresponding PR check-runs were not synchronized for that cycle.Does this PR introduce any user-facing change?
No.
How was this patch tested?
Manual review of the workflow script. The change is limited to mapping a string value before passing it to the GitHub REST API; behavior for the existing
completedandin_progresspaths is unchanged.Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Opus 4.7