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

(#1035) org.cactoos.io.Joined: add a Ctor of Iterable<Input> #1038

Merged
merged 9 commits into from
Jan 27, 2019

Conversation

ilyakharlamov
Copy link
Contributor

This PR:
Regarding #1035
creates a constructor and adds a unit test for that

@0crat 0crat added the scope label Jan 22, 2019
@0crat
Copy link
Collaborator

0crat commented Jan 22, 2019

Job #1038 is now in scope, role is REV

@codecov-io
Copy link

codecov-io commented Jan 22, 2019

Codecov Report

Merging #1038 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1038      +/-   ##
============================================
+ Coverage     87.46%   87.47%   +<.01%     
- Complexity     1514     1515       +1     
============================================
  Files           266      266              
  Lines          3885     3887       +2     
  Branches        212      212              
============================================
+ Hits           3398     3400       +2     
  Misses          438      438              
  Partials         49       49
Impacted Files Coverage Δ Complexity Δ
src/main/java/org/cactoos/io/Joined.java 100% <100%> (ø) 5 <2> (+1) ⬆️

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 b8bf44e...5feae8c. Read the comment docs.

@0crat
Copy link
Collaborator

0crat commented Jan 22, 2019

This pull request #1038 is assigned to @fabriciofx/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; there will be no monetary reward for this job

Copy link
Contributor

@fabriciofx fabriciofx left a comment

Choose a reason for hiding this comment

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

@ilyakharlamov Done. Please, check out.

src/main/java/org/cactoos/io/Joined.java Outdated Show resolved Hide resolved
public Joined(final Iterable<Input> inputs) {
this.inputs = inputs;
}

/**
* Ctor.
* @param first First input
* @param rest The rest
*/
public Joined(final Input first, final Input... rest) {
Copy link
Contributor

Choose a reason for hiding this comment

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

@ilyakharlamov Same above.

this(
new org.cactoos.iterable.Joined<>(
first,
new IterableOf<>(rest)
Copy link
Contributor

Choose a reason for hiding this comment

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

@ilyakharlamov Same above.

src/test/java/org/cactoos/io/JoinedTest.java Outdated Show resolved Hide resolved
src/test/java/org/cactoos/io/JoinedTest.java Show resolved Hide resolved
Copy link
Contributor

@fabriciofx fabriciofx left a comment

Choose a reason for hiding this comment

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

@ilyakharlamov Done. Please, check it again.

src/test/java/org/cactoos/io/JoinedTest.java Outdated Show resolved Hide resolved
@fabriciofx
Copy link
Contributor

@ilyakharlamov This PR seems fine to me. Congratulations! It was a great job!

@fabriciofx
Copy link
Contributor

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Jan 25, 2019

@rultor merge

@fabriciofx Thanks for your request. @llorllale Please confirm this.

@llorllale
Copy link
Contributor

@ilyakharlamov left you some comments

@fabriciofx
Copy link
Contributor

@ilyakharlamov This PR seems fine to me. Great job!

@fabriciofx
Copy link
Contributor

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Jan 25, 2019

@rultor merge

@fabriciofx Thanks for your request. @llorllale Please confirm this.

@llorllale
Copy link
Contributor

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Jan 26, 2019

@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 Jan 26, 2019

@rultor merge

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

[INFO] artifact org.apache.maven.plugins:maven-source-plugin: checking for updates from oss.sonatype.org
[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for updates from oss.sonatype.org
[INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven-release-plugin: checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven-verifier-plugin: checking for updates from oss.sonatype.org
[INFO] artifact org.apache.maven.plugins:maven-site-plugin: checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven-war-plugin: checking for updates from oss.sonatype.org
[INFO] artifact org.apache.maven.doxia:doxia-module-markdown: checking for updates from central
[INFO] artifact org.codehaus.mojo:versions-maven-plugin: checking for updates from oss.sonatype.org
[INFO] artifact org.apache.maven.plugins:maven-source-plugin: checking for updates from central
[INFO] artifact org.eluder.coveralls:coveralls-maven-plugin: checking for updates from oss.sonatype.org
[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for updates from central
[INFO] artifact org.jacoco:jacoco-maven-plugin: checking for updates from oss.sonatype.org
[INFO] artifact org.apache.maven.plugins:maven-war-plugin: checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven-verifier-plugin: checking for updates from central
[INFO] artifact org.codehaus.mojo:versions-maven-plugin: checking for updates from central
[INFO] artifact org.jacoco:jacoco-maven-plugin: checking for updates from central
[INFO] artifact org.eluder.coveralls:coveralls-maven-plugin: checking for updates from central
[INFO] Generating "JavaDocs" report             --- maven-javadoc-plugin:2.10.4:javadoc
[WARNING] Error fetching link: https://github.com/yegor256/takes/apidocs/package-list. Ignored it.
[WARNING] Error fetching link: https://github.com/llorllale/cactoos-matchers/apidocs/package-list. Ignored it.
[WARNING] Error fetching link: http://junit.org/apidocs/package-list. Ignored it.
[WARNING] Error fetching link: https://github.com/hamcrest/JavaHamcrest/hamcrest-core/apidocs/package-list. Ignored it.
[WARNING] Error fetching link: https://github.com/hamcrest/JavaHamcrest/hamcrest-library/apidocs/package-list. Ignored it.
[WARNING] Error fetching link: https://github.com/mockito/mockito/apidocs/package-list. Ignored it.
[INFO] 
4 warnings
[WARNING] Javadoc Warnings
[WARNING] javadoc: warning - Error fetching URL: http://docs.mockito.googlecode.com/hg/latest/
[WARNING] javadoc: warning - Error fetching URL: http://www.h2database.com/javadoc/
[WARNING] javadoc: warning - Error fetching URL: http://jolbox.com/bonecp/downloads/site/apidocs/
[WARNING] /home/r/repo/src/main/java/org/cactoos/time/package-info.java:34: warning - Tag @link: reference not found: org.cactoos.time
[INFO] Generating "JaCoCo Aggregate" report     --- jacoco-maven-plugin:0.7.7.201606060606:report-aggregate
[INFO] Generating Sitemap.
[INFO] Rendering 1 generated Doxia document: 1 xdoc
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:20 min
[INFO] Finished at: 2019-01-26T12:57:09+00:00
[INFO] Final Memory: 49M/522M
[INFO] ------------------------------------------------------------------------
+ mv /home/r/repo .
++ whoami
+ chown -R root repo
+ '[' -n '' ']'
++ whoami
+ sudo chown -R rultor repo
+ cd repo
+ git push origin master
To git@github.com:yegor256/cactoos.git
 ! [rejected]        master -> master (fetch first)
error: failed to push some refs to 'git@github.com:yegor256/cactoos.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
container 059f2df9e147aa167239e926d5d8fb7539c6b6c971b27619bb08b0294a8c90f4 is dead
Sat Jan 26 13:58:27 CET 2019

@ilyakharlamov
Copy link
Contributor Author

not sure why it's failed, I see no merge conflicts

@fabriciofx
Copy link
Contributor

@llorllale Can you try merge it again?

@llorllale
Copy link
Contributor

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Jan 27, 2019

@rultor merge

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

@rultor rultor merged commit 5feae8c into yegor256:master Jan 27, 2019
@rultor
Copy link
Collaborator

rultor commented Jan 27, 2019

@rultor merge

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

@0crat 0crat removed the scope label Jan 27, 2019
@0crat
Copy link
Collaborator

0crat commented Jan 27, 2019

The job #1038 is now out of scope

@0crat
Copy link
Collaborator

0crat commented Jan 27, 2019

Order was finished: +15 point(s) just awarded to @fabriciofx/z

@0crat
Copy link
Collaborator

0crat commented Jan 27, 2019

Job gh:yegor256/cactoos#1038 doesn't exist in WBS, can't create order

@0crat
Copy link
Collaborator

0crat commented Jan 27, 2019

Payment to ARC for a closed pull request, as in §28: +10 point(s) just awarded to @llorllale/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.

6 participants