Repository navigation
CLP-1045: Use common slack notification action - #140
Conversation
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
4f2303c to
f3c38f7
Compare
| needs: | ||
| - build | ||
| - 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] Notifier misses scan-job failures once PR #138's scan job merges
This PR (#140, head f3c38f7) adds notify-build-failure with needs: [build, promote] and fires only when contains(needs.*.result, 'failure'). Open PR #138 (head 442e133) moves the Sonar analysis into a new scan job and makes promote depend on [build, scan]. Its description says it keeps "promotion and releasability gated by the scan". needs.*.result only covers jobs listed directly in needs. If scan fails, build is success and promote is skipped, because a dependency failed and it has no always(). Neither result is failure, so the Slack notification is silently skipped for analysis failures on master, branch-* and dogfood-*. This only happens if both PRs merge into master, in either order, and the notifier's needs list is not updated to include scan when the build.yml conflict is resolved. If only one PR merges, the gap does not appear.
Was this helpful? React with 👍 / 👎
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
|
Hey - this should be merged first. Cause now Guillaume's PR contain also these changes. |
Code Review
|
| Auto-apply | Compact | Unblock |
|
|
|
Was this helpful? React with 👍 / 👎 | Gitar





CLP-1045: Adds a
notify-build-failurejob tobuild.ymlusing the sharedSonarSource/core-languages-tooling-public/common-actions/slack-notifyaction.Replaces the previous draft's standalone
check_suite-triggered workflow (removed), which doesn't work since check_suite never fires for suites GitHub Actions itself creates.No pre-existing Slack failure notification existed in this repo, so
slack-channel: squad-corelang-notifswas chosen to match the org convention;branch-patternsset tomaster,branch-*,dogfood-*to match this repo's push-trigger branches.