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

Add multiline log matching #743

Merged
merged 2 commits into from
Mar 25, 2017

Conversation

rhuss
Copy link
Collaborator

@rhuss rhuss commented Mar 25, 2017

This is related to #628 and #608 and should fix both issues.

Also, some refactoring has been performed for the wait checkers which were extracted into an extra package.

This is related to fabric8io#628 and fabric8io#608 and should fix both issues.

Also, some refactoring has been performed for the wait checkers which were extracted into an extra package.
public boolean check() {
try {
return ping();
} catch (IOException exception) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

MAJOR Either log or rethrow this exception. rule


private WaitUtil() {}

public static long wait(int wait, Callable<Void> callable) throws ExecutionException, WaitTimeoutException {
Copy link
Collaborator

Choose a reason for hiding this comment

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

MAJOR Refactor this method to throw at most one checked exception instead of: java.util.concurrent.ExecutionException, io.fabric8.maven.docker.wait.WaitTimeoutException rule

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

its fine here.

s.connect(address, TCP_PING_TIMEOUT);
s.close();
iter.remove();
} catch (IOException e) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

MAJOR Either log or rethrow this exception. rule

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

wont fix

InetSocketAddress address = iter.next();

try {
Socket s = new Socket();
Copy link
Collaborator

Choose a reason for hiding this comment

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

BLOCKER Close this "Socket". rule

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

its closed short after that and its part of the test. wont fix

@codecov
Copy link

codecov bot commented Mar 25, 2017

Codecov Report

Merging #743 into master will increase coverage by 0.38%.
The diff coverage is 69.38%.

@@             Coverage Diff              @@
##             master     #743      +/-   ##
============================================
+ Coverage     47.51%   47.89%   +0.38%     
- Complexity     1023     1041      +18     
============================================
  Files           126      130       +4     
  Lines          6699     6710      +11     
  Branches        872      872              
============================================
+ Hits           3183     3214      +31     
+ Misses         3244     3222      -22     
- Partials        272      274       +2
Impacted Files Coverage Δ Complexity Δ
...va/io/fabric8/maven/docker/service/RunService.java 51.9% <ø> (ø) 25 <0> (ø) ⬇️
...c/main/java/io/fabric8/maven/docker/StartMojo.java 0% <0%> (ø) 0 <0> (ø) ⬇️
.../io/fabric8/maven/docker/wait/HttpPingChecker.java 59.18% <59.18%> (ø) 8 <8> (?)
...abric8/maven/docker/wait/WaitTimeoutException.java 75% <75%> (ø) 1 <1> (?)
...in/java/io/fabric8/maven/docker/wait/WaitUtil.java 75.75% <75.75%> (ø) 11 <11> (?)
...a/io/fabric8/maven/docker/wait/LogWaitChecker.java 79.41% <79.41%> (ø) 3 <3> (?)
...a/io/fabric8/maven/docker/wait/TcpPortChecker.java 85.71% <85.71%> (ø) 5 <5> (?)
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ade81b8...72f32c6. Read the comment docs.

@pepperbot
Copy link
Collaborator

SonarQube analysis reported 4 issues

  • BLOCKER 1 blocker
  • MAJOR 3 major

Watch the comments in this conversation to review them.

@rhuss
Copy link
Collaborator Author

rhuss commented Mar 25, 2017

[merge]

@fusesource-ci fusesource-ci merged commit 7880674 into fabric8io:master Mar 25, 2017
rgbj pushed a commit to rgbj/docker-maven-plugin that referenced this pull request Jun 21, 2017
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.

None yet

3 participants