CI: Notify when CircleCI build failures for master and rel branches only#4789
CI: Notify when CircleCI build failures for master and rel branches only#4789michaeldiamant merged 1 commit intomasterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4789 +/- ##
==========================================
- Coverage 54.71% 54.69% -0.03%
==========================================
Files 414 414
Lines 53548 53548
==========================================
- Hits 29299 29286 -13
- Misses 21825 21835 +10
- Partials 2424 2427 +3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
#4790 illustrates notification on failure test. See the notification channel at ~5:15PM ET for failure notifications from branch = |
|
You're adding slack contexts to more jobs. Is that going to make it more difficult to run nightly tests against forks? |
@winder Without testing it, it's unclear to me. Depends on when the
From my perspective, the PR remains worth pursuing even in the worst case scenario. |
@winder wouldn't they not run if outside of master or rel branches? |
Looked spammy in the dev-alerts channel - has that been addressed/corrected (as-is, did not seem useful) |
@gmalouf No - no attempt made to modify behavior.
|
|
If you only want one notification on failure, you should be able to follow this advice and make a fan-in job that requires all the other jobs: https://support.circleci.com/hc/en-us/articles/360047082992-How-to-send-a-slack-notification-at-end-of-workflow
|
@cce I had considered that article while working on the PR and concluded the approach only works for success notifications. Admittedly, I didn't try the approach, but looking at a sample failed workflow (https://app.circleci.com/pipelines/github/algorand/go-algorand/10598/workflows/95522810-15f8-4f97-8dc2-9c4a8e421535), we see jobs downstream from failed jobs (e.g. |
Suggests the following build notification failure policy modifications: Notify when release +
masterbranches fail.Rationale:
mastersometimes fail the build. The failure is silent until the nightly build happens.Notes:
cricleci/slackorb. The associated commits and releases seem harmless: CircleCI-Public/slack-orb@v4.4.2...v4.10.1.