-
Notifications
You must be signed in to change notification settings - Fork 6.3k
[CI] Gitter notifications on failure for all nightly and non-PR jobs #12174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CI] Gitter notifications on failure for all nightly and non-PR jobs #12174
Conversation
c854887 to
fd1f5ef
Compare
22b897c to
e3d79ea
Compare
fd1f5ef to
842362a
Compare
e3d79ea to
ab3b17f
Compare
7d67d21 to
e4d304c
Compare
9dbc57f to
f8853c9
Compare
e4d304c to
90ac3d2
Compare
246f161 to
c76a8a7
Compare
90ac3d2 to
e8885fa
Compare
|
#12173 has been merged so this is now reviewable. Also, I realized that the notifications will go not only for nightlies but also for jobs that run directly on |
e8885fa to
205e05b
Compare
The newly added notifications for jobs on |
|
The changes look technically good to me, I am just not sure if the notification load would be too much. |
|
Yes only on failure. Non-PRs would for example be release runs (when a new tag is pushed) or merging a PR into Recently I discovered that you can get e-mail notifications for the whole project on CircleCI but you have to explicitly "follow" it. It would be an alternative way to get notified about these runs but I think not many people on the team do it so gitter notifications give breakage much more visibility. Finally, there's a technical difficulty in discerning failures in scheduled runs from ones on non-PRs. I would probably have to hard-code workflow names in the command, which seems very easy to break. Doing a notification in both cases was just easier to implement. |
Well, I'd argue that breakage outside of PRs is meant to be an exception rather than the rule so it shouldn't be a big problem. The biggest downside I see is that if it fails, we're likely to get notifications from multiple jobs. It would be better to get it just once per workflow but there does not seem to be any easy way to achieve this. |
ekpyron
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can try it - if it gets annoying we can still revert the behavior again!
|
Let's try then :) |
Depends on #12173 (draft until it's merged).Merged.In the past we had some situations where the nightlies were failing and no one noticed because only two jobs post notifications to our Gitter channel. This PR fixes the problem by adding making all jobs used by the nightly workflow post notifications on failure. It also disables success notifications for
t_ems_test_ext_colony(I think a failure notification is enough here not to spam the channel) but leaves the success notification for that one fuzzer job on so that we can see that notifications still work.Unfortunately CircleCI does not have any feature that would let us enable/disable the notification job based on workflow. We have to either duplicate jobs or add parameters to every job. The only reasonable solution I found is to always include the notification but then in the notification step check if we're running a scheduled run or a PR check.