Fix daily workflow failure notifications#19001
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR closes a notification gap for failing daily workflows when the “rerun failed jobs” workflow decides not to rerun (or has exhausted rerun attempts), by having the rerun workflow open (or update) a GitHub issue directly.
Changes:
- Grant
issues: writepermission to the daily rerun workflow so it can manage failure issues. - Update the rerun script to create an issue (or add a comment to an existing one) when reruns are skipped due to max attempts or too many failed jobs.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
.github/workflows/rerun-failed-daily-jobs.yml |
Adds issues: write so the rerun job can create/comment on issues. |
.github/scripts/rerun-failed-workflow-jobs.py |
Opens/updates a workflow-failure issue when reruns are skipped. |
a15e68c to
b1a1d63
Compare
laurit
approved these changes
Jun 15, 2026
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.
Fixes the daily workflow notification gap introduced by auto-reruns.
When a daily workflow fails, the normal workflow notification job is skipped until after the configured rerun attempts. If the separate rerun workflow decides not to rerun the workflow, for example because too many jobs failed, the notification job never gets another chance to create the issue.