-
Notifications
You must be signed in to change notification settings - Fork 424
Have the release script warn if a workflow is queued for >15m #19084
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Warn the developer when they are releasing Synapse if a release workflow has been queued for over 15 minutes. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -596,6 +596,11 @@ 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...") | ||
| continue | ||
|
Comment on lines
599
to
607
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This prevents someone from continuing the release if one of the workflows is queued. It looks like previously we allowed people to continue even if some workflows failed so I don't think we would want to block forever in the queued case. We should probably integrate this into the logic below and give people the option to continue anyway.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good point! I've done so in b5c66de.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Currently, this allows you to continue even without the |
||
|
|
||
| if all( | ||
| workflow["status"] != "in_progress" for workflow in resp["workflow_runs"] | ||
| ): | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the case of the macOS runners not working for that whole day, we'd see this warning every 5 minutes and asked to continue.
I assume that's fine as at that point you would be monitoring the actions and continue once you see them done and not pressing continue on this script over and over.