turnstyle
turnstyle copied to clipboard
Ignore inconsistent runs that have a status set to 'in_progress' but conclusion is 'success'
We have encountered infinite wait issues with this plugin when for some reason some runs were marked as in_progress but also successful:
{
"id": 4743138635,
"name": "ci",
"head_branch": "main",
"head_sha": "094866bfa4cece7810af835a51f6aacbe6051654",
"path": ".github/workflows/ci.yml",
"run_number": 54898,
"event": "push",
"status": "in_progress",
"conclusion": "success",
"workflow_id": 3110243,
"check_suite_id": 12339949756,
"check_suite_node_id": "CS_kwDOBPfPnM8AAAAC34SwvA",
"created_at": "2023-04-19T12:13:16Z",
"updated_at": "2023-04-19T12:27:06Z",
For such weird runs, turnstyle keeps waiting forever.
This PR filters out all such cases, to prevent action from waiting for these.