Tornike Gurgenidze created SPARK-59293:
------------------------------------------

             Summary: Fix update_build_status.yml to map non-standard workflow 
run conclusions
                 Key: SPARK-59293
                 URL: https://issues.apache.org/jira/browse/SPARK-59293
             Project: Spark
          Issue Type: Task
          Components: Project Infra
    Affects Versions: 5.0.0
            Reporter: Tornike Gurgenidze


The scheduled "Update build status workflow" job fails with HTTP 422 when a 
fork's workflow run has a conclusion the check-runs API does not accept.

Example: [https://github.com/apache/spark/actions/runs/34106623995]

Unhandled error: HttpError: Invalid request. startup_failure is not a member of 
["success", "failure", "neutral", "cancelled", "timed_out", "action_required", 
"skipped"].

GET /repos/\{owner}/\{repo}/actions/runs/\{run_id} can return "startup_failure" 
and "stale" as conclusions, neither of which is accepted by PATCH 
/repos/\{owner}/\{repo}/check-runs/\{check_run_id}. The workflow forwards 
run.data.conclusion unchanged, so the request is rejected.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to