Email notification for unit-test build failure

Jon Choate jchoate at redhat.com
Mon Feb 13 15:19:10 UTC 2012


On 02/13/2012 10:16 AM, Eyal Edri wrote:
> The build is unstable due to those errors:
>
> http://jenkins.ovirt.org/job/ovirt_engine_unit_tests/136/
>
> the flag 'send to commiters' was not set, that's why no email was sent. (fixed now).
>
> Eyal.

I think the real concern is that the maven build does not fail even if 
there are errors in some of the tests.  It actually says "Build 
Successful". This in turn results in a yellow ball in Jenkins.  I think 
it should be red since the tests are not working.

> ----- Original Message -----
>> From: "Moti Asayag"<masayag at redhat.com>
>> To: infra at ovirt.org, "Eyal Edri"<eedri at redhat.com>
>> Sent: Monday, February 13, 2012 5:04:15 PM
>> Subject: Email notification for unit-test build failure
>>
>> Hi,
>>
>> I've noticed when unit tests failed, Jenkins does not fail the build
>> and
>> send no emails about the failure: no email was sent to
>> engine-patches.
>>
>> See under the bll unit-test:
>> http://jenkins.ovirt.org/job/ovirt_engine_unit_tests/136/consoleFull
>>
>> 08:33:22,411 INFO  [Version] Hibernate Validator 4.0.2.GA
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.051
>> sec<<<  FAILURE!
>> ...
>> [ERROR] There are test failures.
>>
>> However the build ended successfully:
>> ------------------------------------------------------------------------
>> [INFO] BUILD SUCCESSFUL
>> ------------------------------------------------------------------------
>> channel stopped
>> No emails were triggered.
>> Finished: SUCCESS
>>
>> Could you verify no flag for ignore-failed-tests were set ?
>>
>> Thanks,
>> Moti
>>
> _______________________________________________
> Infra mailing list
> Infra at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/infra




More information about the Infra mailing list