Downgrade the weather upon test failure

29 views
Skip to first unread message

Mark Sinclair

unread,
Jul 25, 2014, 3:58:31 PM7/25/14
to jenkins...@googlegroups.com
Currently if some tests fail, I get unstable status (yellow), but weather is good.  The weather is linked to the build status only.  I'd like to make test failures contribute to bad weather.  What's the easiest way to accomplish this?

Thanks!

Daniel Beck

unread,
Jul 25, 2014, 5:12:55 PM7/25/14
to jenkins...@googlegroups.com
Not true: Have more than 20% of tests fail. Only then you'll get the 'partially cloudy' icon due to tests alone.

On 25.07.2014, at 21:58, Mark Sinclair <msin...@juniper.net> wrote:

> Currently if some tests fail, I get unstable status (yellow), but weather is good. The weather is linked to the build status only. I'd like to make test failures contribute to bad weather. What's the easiest way to accomplish this?
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Mark Sinclair

unread,
Jul 25, 2014, 5:16:12 PM7/25/14
to jenkins...@googlegroups.com, m...@beckweb.net
Thanks - I didn't know about that!

Is there a way to configure it so the weather gets cloudy if any tests fail? 

Daniel Beck

unread,
Jul 25, 2014, 5:40:22 PM7/25/14
to jenkins...@googlegroups.com

On 25.07.2014, at 23:16, Mark Sinclair <msin...@juniper.net> wrote:

> Is there a way to configure it so the weather gets cloudy if any tests fail?

No. While the weather report is customizable in principle, it's not used that way.

Stephen Connolly

unread,
Jul 27, 2014, 4:30:07 PM7/27/14
to jenkins...@googlegroups.com
We probably should make it customizable for test results though


Mark Sinclair

unread,
Jul 28, 2014, 9:34:38 AM7/28/14
to jenkins...@googlegroups.com

That would be just what I’m looking for. 

 

I’m fairly new to Jenkins – Is there a place to make a feature enhancement request like this?

 

Thanks,
Mark

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/uzGezGRcueU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.

Stephen Connolly

unread,
Jul 28, 2014, 9:38:33 AM7/28/14
to jenkins...@googlegroups.com

Mark Sinclair

unread,
Jul 28, 2014, 2:36:09 PM7/28/14
to jenkins...@googlegroups.com

Thanks.  I’ve submitted an improvement request.

 

https://issues.jenkins-ci.org/browse/JENKINS-24006

 

In the meantime, I’m going to try to find a workaround to solve my issue.  I don’t want sunny weather when there is at least one test failure.

Mark Sinclair

unread,
Jul 29, 2014, 2:41:58 PM7/29/14
to jenkins...@googlegroups.com

I see you submitted an fix - Thanks a lot for supporting this!

Mark Sinclair

unread,
Aug 28, 2014, 6:03:46 PM8/28/14
to jenkins...@googlegroups.com

Copied from: https://issues.jenkins-ci.org/browse/JENKINS-24006

"

Thanks for implementing this.

I tried it out and have an issue. After saving a job with a new amplification factor, going back to the config screen always loads the default 1.0 amplification factor, rather than the saved value.

It may be due to the code below:

core/src/main/java/hudson/tasks/test/AbstractTestResultAction.java:163

public double getHealthScaleFactor() {
return 1.0;

"

I tried to assign to you, but couldn't see if you have a username on JIRA.

Thank

Reply all
Reply to author
Forward
0 new messages