1
0

Compare commits

...

4 Commits

Author SHA1 Message Date
Andrew Morgan
9cd8166843 lint 2025-10-24 11:12:25 +01:00
Andrew Morgan
b5c66dea20 Allow continuing on despite queued assets 2025-10-24 10:36:40 +01:00
Andrew Morgan
7cd9678e7d newsfile 2025-10-21 14:31:35 +01:00
Andrew Morgan
889ffd9375 Have the release script warn if a workflow is queued for >15m 2025-10-21 14:30:54 +01:00
2 changed files with 11 additions and 0 deletions

1
changelog.d/19084.misc Normal file
View File

@@ -0,0 +1 @@
Warn the developer when they are releasing Synapse if a release workflow has been queued for over 15 minutes.

View File

@@ -596,6 +596,16 @@ def _wait_for_actions(gh_token: Optional[str]) -> None:
if len(resp["workflow_runs"]) == 0:
continue
# Warn the user if any workflows are still queued. They might need to fix something.
if any(workflow["status"] == "queued" for workflow in resp["workflow_runs"]):
_notify("Warning: at least one release workflow is still queued...")
if not click.confirm("Continue waiting for queued assets?", default=True):
click.echo(
"Continuing on with the release. Note that you may need to upload missing assets manually later."
)
break
continue
if all(
workflow["status"] != "in_progress" for workflow in resp["workflow_runs"]
):