-
Notifications
You must be signed in to change notification settings - Fork 125
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
RealJenkinsRule
: add ability to check if Jenkins fails to boot.
#451
Conversation
This seems incorrect to me - if Jenkins is never going to start up then the process should have exited or there should be a boot failure. If Jenkins has failed to start then the |
Indeed, didn't remember that file. Thanks @jtnord |
RealJenkinsRule
: apply timeout as soon as process is launched
That is not true, right? The whole point is that this patch (possibly augmented by a more eager check for |
@jglick no tests needed if the change were only to move up the timeout. With current changes it needs them for sure. |
I am not sure that is true. I am still unclear on what problem you are solving exactly—the original motivation. Unit tests are fine (though I would prefer simple Java code rather than mocks) but there is no test of RJR showing what was broken before which is now fixed. Specifically what does
mean? |
When RJR cannot start (for whatever reason) it hangs up in the while(true) loop. With the UT I demonstrate that when a 500 is coming the loop is broken and an exception is thrown. |
RealJenkinsRule
: apply timeout as soon as process is launchedRealJenkinsRule
: add ability to check if Jenkins fails to boot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks close. Some minor suggestions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some trivia comments, but I think this is good to go; @jtnord do you care to review again?
When executing some tests that are expecting Jenkins not to start the timeout is never executed. Changing to before the status check makes that possible, also makes more sense as the time starts to count when the server starts, not when is up and running.
No new tests required as the functionality remains the same.