Repository navigation
CLP-1040: Use common slack notification action - #545
frederic-tingaud-sonarsource merged 3 commits into
Conversation
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
49bdd63 to
faf53b1
Compare
| needs: [ build, promote, promote-nuget, promote-npm ] | ||
| if: >- | ||
| always() | ||
| && (github.ref_name == 'master' || startsWith(github.ref_name, 'branch-') || startsWith(github.ref_name, 'dogfood-on-')) | ||
| && contains(needs.*.result, 'failure') |
There was a problem hiding this comment.
💡 [cross-pr] Notify job misses the scan job that PR #542 adds
This PR (head faf53b1) adds notify-build-failure with needs: [ build, promote, promote-nuget, promote-npm ], and it only fires when contains(needs.*.result, 'failure'). PR #542 (head 24f9c3d) moves Sonar analysis out of build into a new scan job and changes all three promote jobs to needs: [ build, scan ]. Suppose both PRs merge into build.yml on master, in either order, and nobody adds scan to the notifier's needs. Then a failure in scan alone leaves build green and the promote jobs skipped rather than failure. The contains check stays false and no Slack alert is sent, even though the master/branch pipeline failed.
Was this helpful? React with 👍 / 👎
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: Mary Georgiou <89914005+mary-georgiou@users.noreply.github.com>
|
Code Review 👍 Approved with suggestions 2 closed / 3 findings🟡 Medium risk · Adds a failure-triggered CI notification job with job-scoped token permissions Adopts the shared 💡 [cross-pr] Notify job misses the
|
| Auto-apply | Compact |
|
|
Was this helpful? React with 👍 / 👎 | Gitar





CLP-1040: adopt the shared
slack-notifycomposite action for build-failure notifications.Adds a
notify-build-failurejob tobuild.yml(runs afterbuild/promote/promote-nuget/promote-npmon failure formaster,branch-*,dogfood-on-*), replacing the old draft'scheck_suite-triggered workflow, which is removed since that event never fires for GitHub Actions' own runs.Notifies
squad-corelang-notifs(channel from the previous draft, no prior working mechanism existed) withbranch-patterns: 'master,branch-*,dogfood-on-*'to match this repo's push triggers.