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

#692 And/Or javadoc #817

Merged
merged 5 commits into from
May 7, 2018
Merged

#692 And/Or javadoc #817

merged 5 commits into from
May 7, 2018

Conversation

Vatavuk
Copy link
Contributor

@Vatavuk Vatavuk commented May 4, 2018

Expanded javadoc for And/Or/AndInThreads for #692

I've updated And and Or javadoc and added a link to AndInThreads which refers to And javadoc examples.

@0crat 0crat added the scope label May 4, 2018
@0crat
Copy link
Collaborator

0crat commented May 4, 2018

Job #817 is now in scope, role is REV

@0crat
Copy link
Collaborator

0crat commented May 4, 2018

This pull request #817 is assigned to @krzyk/z, here is why; the budget is 15 minutes, see §4; please, read §27 and when you decide to accept the changes, inform @llorllale/z (the architect) right in this ticket; if you decide that this PR should not be accepted ever, also inform the architect; this blog post will help you understand what is expected from a code reviewer

@codecov-io
Copy link

codecov-io commented May 4, 2018

Codecov Report

Merging #817 into master will increase coverage by 0.65%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #817      +/-   ##
============================================
+ Coverage     83.58%   84.24%   +0.65%     
- Complexity     1321     1363      +42     
============================================
  Files           240      248       +8     
  Lines          3589     3681      +92     
  Branches        210      214       +4     
============================================
+ Hits           3000     3101     +101     
+ Misses          542      532      -10     
- Partials         47       48       +1
Impacted Files Coverage Δ Complexity Δ
src/main/java/org/cactoos/scalar/AndInThreads.java 85.41% <ø> (ø) 18 <0> (ø) ⬇️
src/main/java/org/cactoos/scalar/Or.java 80% <ø> (ø) 12 <0> (ø) ⬇️
src/main/java/org/cactoos/scalar/And.java 90.47% <ø> (ø) 9 <0> (ø) ⬇️
...c/main/java/org/cactoos/func/FuncWithFallback.java 80% <0%> (ø) 3% <0%> (ø) ⬇️
src/main/java/org/cactoos/iterable/Skipped.java
src/main/java/org/cactoos/iterator/Skipped.java
src/main/java/org/cactoos/collection/Skipped.java
src/main/java/org/cactoos/collection/TailOf.java 100% <0%> (ø) 3% <0%> (?)
src/main/java/org/cactoos/iterator/TailOf.java 100% <0%> (ø) 3% <0%> (?)
src/main/java/org/cactoos/scalar/Equality.java 100% <0%> (ø) 8% <0%> (?)
... and 11 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 ced96f1...f774130. Read the comment docs.

Copy link
Contributor

@krzyk krzyk left a comment

Choose a reason for hiding this comment

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

@Vatavuk please see my comment

*
* <pre>
* new Or(
* new ProcOf<>(input -> System.out.printf("\'%s\' ", input) ),
Copy link
Contributor

Choose a reason for hiding this comment

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

@Vatavuk You can't use < or > inside javadoc without some kind of escaping, either &lt; and &gt; or preferably replace the <pre>...</pre> with {@code ...}

@Vatavuk
Copy link
Contributor Author

Vatavuk commented May 4, 2018

@krzyk fixed in abf8ec8

Copy link
Contributor

@krzyk krzyk left a comment

Choose a reason for hiding this comment

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

@Vatavuk almost there :), please see my 2 comments

* {@link java.util.stream.Stream#forEach(java.util.function.Consumer)}
* works:</p>
*
* <pre>
Copy link
Contributor

Choose a reason for hiding this comment

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

@Vatavuk pre now should be removed ({@code } already uses code font)

* <p>This class could be also used for matching multiple boolean
* expressions:</p>
*
* <pre>
Copy link
Contributor

Choose a reason for hiding this comment

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

@Vatavuk and here also, <pre></pre> should be removed

@Vatavuk
Copy link
Contributor Author

Vatavuk commented May 4, 2018

@krzyk fixed in ee45ae1

Copy link
Contributor

@krzyk krzyk left a comment

Choose a reason for hiding this comment

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

@Vatavuk looks good

@krzyk
Copy link
Contributor

krzyk commented May 4, 2018

@llorllale ready to merge

@Vatavuk
Copy link
Contributor Author

Vatavuk commented May 6, 2018

@llorllale ping

* // the result of this operation is always true
* }
*
* <p>This class could be also used for matching multiple boolean
Copy link
Contributor

Choose a reason for hiding this comment

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

@Vatavuk could you also please add a note somewhere that And performs a short-circuit evaluation?

* // the result of this operation is always false
* }
*
* <p>This class could be also used for matching multiple boolean
Copy link
Contributor

Choose a reason for hiding this comment

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

@Vatavuk could you also please add a note somewhere that Or performs a short-circuit evaluation?

@llorllale
Copy link
Contributor

@Vatavuk two minor observations and we're good, see above

@Vatavuk
Copy link
Contributor Author

Vatavuk commented May 6, 2018

@llorllale fixed in f774130

@llorllale
Copy link
Contributor

@rultor merge

@rultor
Copy link
Collaborator

rultor commented May 6, 2018

@rultor merge

@llorllale OK, I'll try to merge now. You can check the progress of the merge here

@rultor
Copy link
Collaborator

rultor commented May 6, 2018

@rultor merge

@Vatavuk @llorllale Oops, I failed. You can see the full log here (spent 5min)


Failed tests: 
  AndInThreadsTest.worksWithProc:154 
Expected: <2>
     but: was <1>

Tests run: 992, Failures: 1, Errors: 0, Skipped: 2

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:53 min
[INFO] Finished at: 2018-05-06T13:36:33+00:00
[INFO] Final Memory: 31M/459M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project cactoos: There are test failures.
[ERROR] 
[ERROR] Please refer to /home/r/repo/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project cactoos: There are test failures.

Please refer to /home/r/repo/target/surefire-reports for the individual test results.
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.

Please refer to /home/r/repo/target/surefire-reports for the individual test results.
	at org.apache.maven.plugin.surefire.SurefireHelper.reportExecution(SurefireHelper.java:91)
	at org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary(SurefirePlugin.java:320)
	at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:892)
	at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:755)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
	... 20 more
[ERROR] 
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
container 5417b123f3e532820f46991478543dd5a4130a2e1aebc8877401418bdd4ed729 is dead
Sun May  6 15:37:38 CEST 2018

@Vatavuk
Copy link
Contributor Author

Vatavuk commented May 6, 2018

@llorllale Can you please merge again, it seems that we have also a problem with stability of AndInThreadsTest . These tests are failing randomly on my local machine also.

@llorllale
Copy link
Contributor

@Vatavuk you're right. Please open a bug

@llorllale
Copy link
Contributor

@rultor merge

@rultor
Copy link
Collaborator

rultor commented May 7, 2018

@rultor merge

@llorllale OK, I'll try to merge now. You can check the progress of the merge here

@rultor rultor merged commit f774130 into yegor256:master May 7, 2018
@rultor
Copy link
Collaborator

rultor commented May 7, 2018

@rultor merge

@llorllale Done! FYI, the full log is here (took me 16min)

@0crat
Copy link
Collaborator

0crat commented May 7, 2018

@elenavolokhova/z please review this job completed by @krzyk/z, as in §30; the job will be fully closed and all payments will be made when the quality review is completed

@0crat 0crat removed the scope label May 7, 2018
@0crat
Copy link
Collaborator

0crat commented May 7, 2018

The job #817 is now out of scope

@0crat
Copy link
Collaborator

0crat commented May 7, 2018

Payment to ARC for a closed pull request, as in §28: +10 point(s) just awarded to @llorllale/z

@elenavolokhova
Copy link

@0crat quality good

@0crat
Copy link
Collaborator

0crat commented May 7, 2018

Order was finished, quality is "good": +20 point(s) just awarded to @krzyk/z

@0crat
Copy link
Collaborator

0crat commented May 7, 2018

Quality review completed: +8 point(s) just awarded to @elenavolokhova/z

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.

7 participants