Skip to content
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

Test result page keeps identifying tests as age 1 #576

Merged
merged 1 commit into from Jun 1, 2014
Merged

Test result page keeps identifying tests as age 1 #576

merged 1 commit into from Jun 1, 2014

Conversation

JoelJ
Copy link
Contributor

@JoelJ JoelJ commented Sep 25, 2012

If a test has not been viewed, the age will keep being '1'.
This is because getFailedSince()/failedSince is lazy loaded.
Without having viewed the CaseResult that method is never
called and the prev.failedSince returns '0' which may or may
not be accurate.
Example: http://jenkins.361315.n4.nabble.com/Problem-with-Age-column-on-Test-Results-tab-td3172208.html

If a test has not been viewed, the age will keep being 1.
This is because getFailedSince()/failedSince is lazy loaded.
Without having viewed the CaseResult that method is never
called and the prev.failedSince returns '0' which may or may
not be accurate.
http://jenkins.361315.n4.nabble.com/Problem-with-Age-column-on-Test-Results-tab-td3172208.html
@ghost ghost assigned kohsuke Sep 25, 2012
@daniel-beck
Copy link
Member

This appears to fix JENKINS-18626.

@oleg-nenashev
Copy link
Member

@wolfs
Stefan, could you review the PR?

@wolfs
Copy link
Member

wolfs commented May 18, 2014

Seems good to me. Why did you want my input on this?

@oleg-nenashev
Copy link
Member

You're the most active contributor of hudson.tasks.junit.*
I suppose you know the background better than others

@wolfs
Copy link
Member

wolfs commented May 18, 2014

I must admit I only fixed a link and added some tests. So I mainly was working with the jelly files and never had a look at this part of the code. So I am not sure if my input is really valuable.

oleg-nenashev added a commit that referenced this pull request Jun 1, 2014
[FIXED JENKINS-18626] - Test result page keeps identifying tests as age 1
@oleg-nenashev oleg-nenashev merged commit 4af464a into jenkinsci:master Jun 1, 2014
oleg-nenashev added a commit that referenced this pull request Jun 1, 2014
Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants