DEVEX-1398: shared notify-ci-failure workflow (workflow_run notifier)#138
Conversation
PR SummaryLow Risk Overview Callers pass This is intended as shared plumbing for follow-up PRs that wire a final Reviewed by Cursor Bugbot for commit 50ce88b. Bugbot is set up for automated code reviews on this repo. Configure here. |
Input-driven Slack notifier called by each repo's workflow_run watcher. Posts which workflow failed + commit + run link to the org SLACK_WEBHOOK_URL. Lets a repo surface ANY check failing on main (build, phpstan, tests, cs-fixer, the nightly common bump itself), not just Build.
5fe63fb to
50ce88b
Compare
Summary
Adds a shared reusable workflow
notify-ci-failure.yamlthat posts a Slack alert (via the orgSLACK_WEBHOOK_URL) describing which workflow failed onmain, with commit + run links.It's input-driven so each repo can call it from a lightweight
workflow_runwatcher (ci-failure-notify.yaml) that fires when ANY watched workflow (Build, PHPStan, unit tests, cs-fixer, the nightly common bump, …) concludesfailureonmain. This closes the silent nightly common-bump failure gap (DEVEX-1398): previously a broken bump only showed as a red ✗ in the Actions tab + an email to the bot PAT owner.Why workflow_run (not an in-Build job)
A notify job inside Build only sees Build/deploy. The static checks (phpstan, tests, cs-fixer) run as separate workflows — their failures need a watcher that observes completed runs across the repo. One watcher per repo covers build + all checks + the bump itself.
Per-repo watcher PRs follow, each linked to DEVEX-1398.