Commit 4a7f7c8
authored
ci: Send Slack notification when scheduled e2e tests fail (#1859)
## Summary
Closes #1725.
Adds a `notify_on_failure` job to `on_schedule_tests.yaml` that posts to
`#tooling-team-python` whenever the daily scheduled e2e tests fail. The
message includes a link to the workflow run and a bulleted list of the
failed matrix combinations. Manual `workflow_dispatch` runs are
intentionally skipped so ad-hoc triggers don't spam the channel.
## Implementation notes
- Uses `slackapi/slack-github-action@v3.0.2` with `webhook-type:
incoming-webhook`.
- Webhook URL is read from a new repository secret `SLACK_WEBHOOK_URL` —
needs to be configured before this PR has any effect.
- The list of failed matrix jobs is fetched via `gh api
.../actions/runs/{run_id}/attempts/{run_attempt}/jobs` (uses the
existing `GITHUB_TOKEN` with `actions: read`).
- Job runs only on `failure() && github.event_name == 'schedule'`.
## Setup checklist
- [x] Create an incoming webhook for `#tooling-team-python` in Slack.
- [x] Add the URL as the `SLACK_WEBHOOK_URL` repository secret.1 parent 4ba9635 commit 4a7f7c8
1 file changed
Lines changed: 57 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
0 commit comments