CLP-1061: Use common slack notification action - #597
frederic-tingaud-sonarsource merged 3 commits into
Conversation
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
8073fa5 to
6cc1976
Compare
| needs: [build, build-win, qa, promote] | ||
| if: >- | ||
| always() | ||
| && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/branch-') || startsWith(github.ref, 'refs/heads/dogfood-')) | ||
| && contains(needs.*.result, 'failure') |
There was a problem hiding this comment.
⚠️ [cross-pr] notify-build-failure needs misses #588's new scan job
This PR (#597, head 6cc1976) hardcodes needs: [build, build-win, qa, promote] and gates the job on contains(needs.*.result, 'failure'). PR #588 (head 82efc48) adds a new scan job (needs: build) and changes promote.needs to [build, scan, build-win, qa]; I checked this in its build.yml at lines 57-59 and 186-191. The problem only appears if both PRs land on master and nobody updates the notifier's needs list, whichever merges first. In that case, when scan fails, promote is skipped rather than failed, so none of the listed results is 'failure'. The notifier then never runs, and a failed NEXT analysis on master, branch-* or dogfood-* sends no Slack alert. The notifier still waits for scan indirectly through promote, but it cannot see that scan 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
|
| Auto-apply | Compact | Unblock |
|
|
|
Was this helpful? React with 👍 / 👎 | Gitar
|





CLP-1061
Replaces the check_suite-based Slack notification workflow with a new
notify-build-failurejob insidebuild.yml, calling the sharedslack-notifycomposite action directly from the workflow whose failure it reports.Preserves the
squad-corelang-notifsSlack channel from the old setup;branch-patternsset tomaster,branch-*,dogfood-*to match this repo's actual protected/CI branches.