Project
TeamCity
Priority
Major
Type
Feature
State
Fixed
Assignee
Pavel Sher
Subsystem
Notifications
Affected versions
Build 1574
Fix versions
TeamCity 3.1 (6760)
Fixed in build
17577  
  • Created by   Gibson
    5 years ago (31 Aug 2006 22:49)
  • Updated by   Vadim Gurov
    3 years ago (06 Feb 2009 19:48)
  • Jira: TW-764
    (history, comments)
 
TW-764 Notifications only on build status change (first fail after success, first success after failure)
5
Issue is visible to: All Users
  The issue is visible to the selected user group only
I would like the possibility to have two new notification types:
  • first build failure after success
  • first build success after failure
This way, if I have several build failures in a row (e.g. someone who checks in files piecemeal over a half-hour period) I don't receive a failing e-mail for every time he checks in and I am notified when things are finally working again.

Issue wasresolved
Comments (10)
 
History
 
Linked Issues (?)
 
Gibson
  Gibson
23 Oct 2006 17:32
5 years ago
Can I implement this myself with a plugin?
Or is there a way to disable builds on test failure until explictly re-enabled
Pavel Sher
  Pavel Sher
07 Feb 2007 15:48
5 years ago
Currently "build failed / build failing" notifications took into account how previous build failed. If failure is the same or similar then notification will not be sent. Of course similar failure detection mechanism requires improvement but in general "build failed / build failing" notification should work like "first build failure after success" if build continues to fail with similar errors.

As for "first build success after failure" this event is not supported now and we could implement it.

For now it is impossible to extend number of supported notification events. However you can write you own listener (BuildServerListener) and try to deliver messages by yourself from a plugin, or you can pause build configuration from the plugin on a test failure.
Gibson
  Gibson
07 Feb 2007 17:44
5 years ago
Is this new behaviour with 1.2 or Agra? I have a 1.1 server which I've configured to send me mails on <All projects>, <All configurations>, - Responsibility changes, * - Build failed

With this config I receive e-mails every time my tests fail, even if there are no new failures. Should I open a bug or is this behaviour fixed in 1.2 or Agra?
Pavel Sher
  Pavel Sher
08 Feb 2007 14:23
5 years ago
Looks like a bug. TC should not send emails on same failure (i.e. if same test failed with similar stacktrace or same error appeared in logs and so on). Could you please submit exceptions from a couple of builds for which you received email notification?
Gibson
  Gibson
08 Feb 2007 15:55
5 years ago
Created a new issue: TW-1649
Pavel Sher
  Pavel Sher
14 Jan 2008 21:20
4 years ago
First failure after success & first success after failure are now supported for all types of watches except build with my changes.
Markus Halttunen
  Markus Halttunen
15 Jan 2008 13:39
4 years ago
Sounds good, but why not for "builds with my changes"? Is it a technical limitation or is there something I'm missing?
Pavel Sher
  Pavel Sher
15 Jan 2008 17:01
4 years ago
We did not see any valuable use cases when it is needed for builds with my changes.
It is not clear why somebody would like to subscribe to "Notify on the first successful build after failed" for builds where he is committer. In most cases build committer either do not want to be notified about successful builds at all or wants to be notified on every successful build with his changes.

As for "Notify on the first failed build after successful" this could be useful in some cases because when a build fails TC will notify each committer of this build on any subsequent failed build. However there is "Ignore failures not caused by my changes" option. If this option is turned ON then TC analyzes how build failed and if failure is the same then previous build committers will not be notified. So it seems that this option covers more use cases. That is why we decided to disable these options for builds with my changes.
Markus Halttunen
  Markus Halttunen
15 Jan 2008 17:24
4 years ago
Here is our use case for the situation where "Notify on the first successful build after failed" should work also for notifications for my changes.

  • Jack, Joe and Jill are developers. All of them have chosen: "Notify about failed builds with my changes"
  • Build 5 contains changes by Joe and Jill
  • Build 5 fails. Joe and Jill will receive an email about the failed build. Jack will not.
  • Joe notices that it is his change that broke the build. As it is a simple change, he will simply fix it without explicitly clicking "Take responsibility". (This happens pretty easily)
  • TeamCity detects the commit and starts Build 6
  • Build 6 is successful. But no notification is sent to anybody.

A notification about the first successful build should be sent to Joe and Jill because they received the original failure email. After that, they will only want to receive an email when a build with their changes in it fails the next time.
Pavel Sher
  Pavel Sher
15 Jan 2008 19:10
4 years ago
We considered this use case, but at the moment it requires too much effort, we decided to move it to the next release, please watch for: TW-4258.