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

[JENKINS-31660] avoid reading unnecessary test results from disk #117

Merged
merged 1 commit into from
May 7, 2019

Conversation

zbynek
Copy link
Contributor

@zbynek zbynek commented Apr 13, 2019

See JENKINS-31660

In case the a test was skipped, we don't need to know if it had previous failures, which allows us to avoid loading a lot of data from the disk and avoid StackOverflowError (in case the test was always skipped, we avoid loading all the previous builds).

There are two methods that recompute the failedSince field, one of them handled skipped builds correctly, the other one did not. With this PR they will both use the same logic.

@zbynek
Copy link
Contributor Author

zbynek commented Apr 17, 2019

From a few days of testing on a server with 10k+ builds it seems the StackOverflowErrors are gone and the server is more responsive. @olivergondza I would like to ask you or one of the other maintainers for a review.

@zbynek
Copy link
Contributor Author

zbynek commented Apr 29, 2019

@jenkinsci/code-reviewers sorry for nagging, but could someone please have a look at this?

Copy link
Member

@abayer abayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very sorry for the delay! This is a very nice addition - thanks!

@abayer abayer merged commit bcad82d into jenkinsci:master May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants