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

Features/fitnesse plugin fix fitnesse server start #13

Conversation

antoine-aumjaud
Copy link
Contributor

This plugin looks at standard outuput to know if Fitnesse server is started.

Last version of Fitnesse doesn't write on stdout when the server start.
(since unclebob/fitnesse@91e93be - commit date: 13 nov 2013 - impacted version 20140201 & 20140418)

I've replaced this check by verify the target Fitnesse URL (do a HTTP GET on it).

@cloudbees-pull-request-builder

plugins » fitnesse-plugin #19 SUCCESS
This pull request looks good

@jenkinsadmin
Copy link
Member

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

Organise imports
@cloudbees-pull-request-builder

plugins » fitnesse-plugin #20 SUCCESS
This pull request looks good

@@ -29,63 +29,63 @@
*/
public class FitnesseExecutor {
private static final int SLEEP_MILLIS = 1000;
private static final int STARTUP_TIMEOUT_MILLIS = 10*1000;
private static final int ADDITIONAL_TIMEOUT_MILLIS = 20*1000;
private static final int STARTUP_TIMEOUT_MILLIS = 30 * 1000;
Copy link
Member

Choose a reason for hiding this comment

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

Nit: what happened to the indentation here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

:), I don't know... I will push this soon.

@lessonz
Copy link
Member

lessonz commented May 28, 2014

I apologize my review can't be more substantive as I am currently pressed for time. I hope to be able to do a more in depth review of the pull request in the coming days.

I do have two suggestions for you in general:

  1. I can't speak for anyone else, but I feel pull requests are best/easiest when they only deal with the change at hand, in this case the move to HTTP get from reading stdout. So the changing the log facility and reformatting were superfluous to the change at hand and could have been separate pull requests.
  2. Building on that, changing parameters named log to instance variables named logger and one line if statements to two line statements when such changes are not in your new code can be viewed as the equivalent of a curly brace war. (Personally I think all compound statements, even one liners, should be enclosed in braces, but that's neither here nor there. I only mention it to point out I'm not a big fan of a lot of how the code is either.)

In any event, thank you very much for your contribution. I hope to be able to merge it soon.

@antoine-aumjaud
Copy link
Contributor Author

Thanks for advice. Next time, I will remove auto format in my IDE and try to not reformat code which not concerns the pull request.
And yes, I should have split this pull request in 2.

@cloudbees-pull-request-builder

plugins » fitnesse-plugin #21 SUCCESS
This pull request looks good

@cloudbees-pull-request-builder

plugins » fitnesse-plugin #22 SUCCESS
This pull request looks good

@cloudbees-pull-request-builder

plugins » fitnesse-plugin #23 SUCCESS
This pull request looks good

lessonz added a commit that referenced this pull request Jun 22, 2014
…FixFitnesseServerStart

Features/fitnesse plugin fix fitnesse server start, use HTTP GET instead of scraping stdout.
@lessonz lessonz merged commit c48dfae into jenkinsci:master Jun 22, 2014
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.

4 participants