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

(#1259) Sorted Set with custom comparator #1279

Merged
merged 4 commits into from
Feb 10, 2020
Merged

Conversation

fanifieiev
Copy link
Contributor

This PR is for #1259

@fanifieiev
Copy link
Contributor Author

@paulodamaso
Question:
image
Do you now where that test org.cactoos.experimental.TimedTest is located ?? The repo does not contain it.

@paulodamaso
Copy link
Contributor

@fanifieiev Please update your branch, Timed was introduced in #1000

@0crat
Copy link
Collaborator

0crat commented Feb 3, 2020

This pull request #1279 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 @paulodamaso/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

@paulodamaso
Copy link
Contributor

@0crat assign me

@0crat
Copy link
Collaborator

0crat commented Feb 3, 2020

@0crat assign me (here)

@paulodamaso This pull request #1279 is assigned to @paulodamaso/z, here is why; the budget is 15 minutes, see §4; please, read §27 and when you decide to accept the changes, inform @paulodamaso/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

@0crat
Copy link
Collaborator

0crat commented Feb 3, 2020

Manual assignment of issues is discouraged, see §19: -5 point(s) just awarded to @paulodamaso/z

@0crat
Copy link
Collaborator

0crat commented Feb 3, 2020

@0crat assign me (here)

@paulodamaso There is an unrecoverable failure on my side. Please, submit it here:

PID: 11@377a78bde909, thread: PQ-C63314D6Z
com.zerocracy.claims.ClaimIn[214] java.lang.IllegalArgumentException: Parameter "age" not found in "Order was canceled" among: [comment, job, issue, repo, cause, _parent_sig, flow, login]

0.51.0: CID: 22701f4d-5817-401c-8869-638368d49a1c, Type: "Order was canceled"

@0crat
Copy link
Collaborator

0crat commented Feb 3, 2020

Job #1279 is already in the agenda of @paulodamaso/z

@fanifieiev
Copy link
Contributor Author

@paulodamaso I have no idea why that build fails. It does not fail locally and the failure is related to TimedTest.

@codecov-io
Copy link

codecov-io commented Feb 5, 2020

Codecov Report

Merging #1279 into master will increase coverage by 0.21%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1279      +/-   ##
============================================
+ Coverage     89.24%   89.46%   +0.21%     
- Complexity     1690     1691       +1     
============================================
  Files           285      286       +1     
  Lines          4053     4061       +8     
  Branches        211      212       +1     
============================================
+ Hits           3617     3633      +16     
+ Misses          403      393      -10     
- Partials         33       35       +2
Impacted Files Coverage Δ Complexity Δ
src/main/java/org/cactoos/set/Sorted.java 100% <100%> (ø) 3 <3> (?)
src/main/java/org/cactoos/set/SetOf.java 100% <100%> (ø) 3 <0> (ø) ⬇️
src/main/java/org/cactoos/list/Shuffled.java 60% <0%> (-15%) 2% <0%> (ø)
src/main/java/org/cactoos/scalar/Solid.java 90% <0%> (-10%) 3% <0%> (-1%)
src/main/java/org/cactoos/list/Immutable.java 94.44% <0%> (-5.56%) 38% <0%> (+11%)
src/main/java/org/cactoos/list/Sticky.java 100% <0%> (ø) 4% <0%> (+1%) ⬆️
src/main/java/org/cactoos/list/Joined.java 100% <0%> (ø) 3% <0%> (ø) ⬇️
src/main/java/org/cactoos/list/Sorted.java 83.33% <0%> (ø) 4% <0%> (ø) ⬇️
src/main/java/org/cactoos/list/Solid.java 100% <0%> (ø) 3% <0%> (ø) ⬇️
...rc/main/java/org/cactoos/collection/Immutable.java 94.73% <0%> (ø) 16% <0%> (ø) ⬇️
... and 8 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 45b9990...f3635ad. Read the comment docs.

@paulodamaso
Copy link
Contributor

@fanifieiev PLease solve these conflicts

@paulodamaso
Copy link
Contributor

@fanifieiev Please merge with master, there are too much files being altered in this PR

@fanifieiev
Copy link
Contributor Author

@paulodamaso Please have a look.

@paulodamaso
Copy link
Contributor

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Feb 8, 2020

@rultor merge

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

@rultor
Copy link
Collaborator

rultor commented Feb 8, 2020

@rultor merge

@fanifieiev @paulodamaso Oops, I failed. You can see the full log here (spent 2min)

+ ls -al .
total 724
drwx--x--x  3 rultor rultor   4096 Feb  8 04:15 .
drwxrwxrwt 12 root   root   684032 Feb  8 04:15 ..
-rw-rw-r--  1 rultor rultor    444 Feb  8 04:15 end.sh
-rwxrwxr-x  1 rultor rultor    338 Feb  8 04:15 entry.sh
-rw-rw-r--  1 rultor rultor      5 Feb  8 04:15 pid
-rw-rw-r--  1 rultor rultor   1192 Feb  8 04:15 pubring.gpg
drwxrwxr-x  5 rultor rultor   4096 Feb  8 04:15 repo
-rwxrwxr-x  1 rultor rultor   6295 Feb  8 04:15 run.sh
-rw-rw-r--  1 rultor rultor    691 Feb  8 04:15 script.sh
-rw-rw-r--  1 rultor rultor   2570 Feb  8 04:15 secring.gpg
-rw-rw-r--  1 rultor rultor    831 Feb  8 04:15 settings.xml
-rw-rw-r--  1 rultor rultor   7542 Feb  8 04:15 stdout
++ pwd
++ pwd
+ docker run -t --rm -v /tmp/rultor-TD6H:/main --env=MAVEN_OPTS=-Xmx1g --env=JAVA_OPTS=-Xmx1g [email protected]:yegor256/cactoos.git --env=pull_id=1279 [email protected]:fanifieiev/cactoos.git --env=fork_branch=1259 --env=head_branch=master '--env=pull_title=(#1259) Sorted Set with custom comparator' --env=author=paulodamaso '--env=scripts=( '\''export '\''\'\'''\''MAVEN_OPTS=-Xmx1g'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''JAVA_OPTS=-Xmx1g'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''[email protected]:yegor256/cactoos.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_id=1279'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''[email protected]:fanifieiev/cactoos.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''fork_branch=1259'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_title=(#1259) Sorted Set with custom comparator'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=paulodamaso'\''\'\'''\'''\'' '\'';'\'' '\''sudo gem install --no-rdoc --no-ri pdd'\'' '\'';'\'' '\''sudo gem install --no-rdoc --no-ri xcop'\'' '\'';'\'' '\''pdd --file=/dev/null'\'' '\'';'\'' '\''mvn clean install -Pqulice --errors --settings ../settings.xml'\'' '\'';'\'' '\''mvn clean site -Psite --errors --settings ../settings.xml'\'' '\'';'\'' )' --hostname=docker --privileged --memory=6g --memory-swap=16g --oom-kill-disable --cidfile=/tmp/rultor-TD6H/cid -w=/main -v /var/run/docker.sock:/var/run/docker.sock --entrypoint=/main/entry.sh --name=yegor256_cactoos_1279 yegor256/rultor-image /main/entry.sh
WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
+ set -e
+ set -o pipefail
+ shopt -s dotglob
+ useradd -m -G sudo r
+ echo '%sudo ALL=(ALL) NOPASSWD:ALL'
+ cp -R /root/.bashrc /root/.composer /root/.gem /root/.gnupg /root/.m2 /root/.profile /root/texmf /root/.wget-hsts /home/r
+ cp -R ./cid ./end.sh ./entry.sh ./pid ./pubring.gpg ./repo ./run.sh ./script.sh ./secring.gpg ./settings.xml ./stdout /home/r
+ rm -rf repo
+ chown -R r:r /home/r
+ chmod a+x /home/r/script.sh
+ su --login r --command /home/r/script.sh
mesg: change /dev/pts/0 mode failed: Operation not permitted
+ set -e
+ set -o pipefail
+ shopt -s expand_aliases
+ alias 'sudo=sudo -i'
+ export HOME=/home/r
+ HOME=/home/r
+ cd /home/r/repo
+ export MAVEN_OPTS=-Xmx1g
+ MAVEN_OPTS=-Xmx1g
+ export JAVA_OPTS=-Xmx1g
+ JAVA_OPTS=-Xmx1g
+ export [email protected]:yegor256/cactoos.git
+ [email protected]:yegor256/cactoos.git
+ export pull_id=1279
+ pull_id=1279
+ export [email protected]:fanifieiev/cactoos.git
+ [email protected]:fanifieiev/cactoos.git
+ export fork_branch=1259
+ fork_branch=1259
+ export head_branch=master
+ head_branch=master
+ export 'pull_title=(#1259) Sorted Set with custom comparator'
+ pull_title='(#1259) Sorted Set with custom comparator'
+ export author=paulodamaso
+ author=paulodamaso
+ sudo -i gem install --no-rdoc --no-ri pdd
ERROR:  While executing gem ... (OptionParser::InvalidOption)
    invalid option: --no-rdoc
container 61c76a7e46ceefb3615a2e7736ca93b129d653a4e811a2018cb6abb676473e00 is dead
Sat Feb  8 04:17:07 CET 2020

@paulodamaso
Copy link
Contributor

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Feb 8, 2020

@rultor merge

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

@rultor
Copy link
Collaborator

rultor commented Feb 8, 2020

@rultor merge

@fanifieiev @paulodamaso Oops, I failed. You can see the full log here (spent 2min)

+ ls -al .
total 724
drwx--x--x  3 rultor rultor   4096 Feb  8 04:40 .
drwxrwxrwt 12 root   root   684032 Feb  8 04:40 ..
-rw-rw-r--  1 rultor rultor    444 Feb  8 04:40 end.sh
-rwxrwxr-x  1 rultor rultor    338 Feb  8 04:40 entry.sh
-rw-rw-r--  1 rultor rultor      6 Feb  8 04:40 pid
-rw-rw-r--  1 rultor rultor   1192 Feb  8 04:40 pubring.gpg
drwxrwxr-x  5 rultor rultor   4096 Feb  8 04:40 repo
-rwxrwxr-x  1 rultor rultor   6295 Feb  8 04:40 run.sh
-rw-rw-r--  1 rultor rultor    691 Feb  8 04:40 script.sh
-rw-rw-r--  1 rultor rultor   2570 Feb  8 04:40 secring.gpg
-rw-rw-r--  1 rultor rultor    831 Feb  8 04:40 settings.xml
-rw-rw-r--  1 rultor rultor   7543 Feb  8 04:40 stdout
++ pwd
++ pwd
+ docker run -t --rm -v /tmp/rultor-lvxS:/main --env=MAVEN_OPTS=-Xmx1g --env=JAVA_OPTS=-Xmx1g [email protected]:yegor256/cactoos.git --env=pull_id=1279 [email protected]:fanifieiev/cactoos.git --env=fork_branch=1259 --env=head_branch=master '--env=pull_title=(#1259) Sorted Set with custom comparator' --env=author=paulodamaso '--env=scripts=( '\''export '\''\'\'''\''MAVEN_OPTS=-Xmx1g'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''JAVA_OPTS=-Xmx1g'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''[email protected]:yegor256/cactoos.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_id=1279'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''[email protected]:fanifieiev/cactoos.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''fork_branch=1259'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_title=(#1259) Sorted Set with custom comparator'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=paulodamaso'\''\'\'''\'''\'' '\'';'\'' '\''sudo gem install --no-rdoc --no-ri pdd'\'' '\'';'\'' '\''sudo gem install --no-rdoc --no-ri xcop'\'' '\'';'\'' '\''pdd --file=/dev/null'\'' '\'';'\'' '\''mvn clean install -Pqulice --errors --settings ../settings.xml'\'' '\'';'\'' '\''mvn clean site -Psite --errors --settings ../settings.xml'\'' '\'';'\'' )' --hostname=docker --privileged --memory=6g --memory-swap=16g --oom-kill-disable --cidfile=/tmp/rultor-lvxS/cid -w=/main -v /var/run/docker.sock:/var/run/docker.sock --entrypoint=/main/entry.sh --name=yegor256_cactoos_1279 yegor256/rultor-image /main/entry.sh
WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
+ set -e
+ set -o pipefail
+ shopt -s dotglob
+ useradd -m -G sudo r
+ echo '%sudo ALL=(ALL) NOPASSWD:ALL'
+ cp -R /root/.bashrc /root/.composer /root/.gem /root/.gnupg /root/.m2 /root/.profile /root/texmf /root/.wget-hsts /home/r
+ cp -R ./cid ./end.sh ./entry.sh ./pid ./pubring.gpg ./repo ./run.sh ./script.sh ./secring.gpg ./settings.xml ./stdout /home/r
+ rm -rf repo
+ chown -R r:r /home/r
+ chmod a+x /home/r/script.sh
+ su --login r --command /home/r/script.sh
mesg: change /dev/pts/0 mode failed: Operation not permitted
+ set -e
+ set -o pipefail
+ shopt -s expand_aliases
+ alias 'sudo=sudo -i'
+ export HOME=/home/r
+ HOME=/home/r
+ cd /home/r/repo
+ export MAVEN_OPTS=-Xmx1g
+ MAVEN_OPTS=-Xmx1g
+ export JAVA_OPTS=-Xmx1g
+ JAVA_OPTS=-Xmx1g
+ export [email protected]:yegor256/cactoos.git
+ [email protected]:yegor256/cactoos.git
+ export pull_id=1279
+ pull_id=1279
+ export [email protected]:fanifieiev/cactoos.git
+ [email protected]:fanifieiev/cactoos.git
+ export fork_branch=1259
+ fork_branch=1259
+ export head_branch=master
+ head_branch=master
+ export 'pull_title=(#1259) Sorted Set with custom comparator'
+ pull_title='(#1259) Sorted Set with custom comparator'
+ export author=paulodamaso
+ author=paulodamaso
+ sudo -i gem install --no-rdoc --no-ri pdd
ERROR:  While executing gem ... (OptionParser::InvalidOption)
    invalid option: --no-rdoc
container 9c6db31c06fb04661dfd6521c86279f377dde22d7d9594343aa979a7333f0d22 is dead
Sat Feb  8 04:42:14 CET 2020

@paulodamaso
Copy link
Contributor

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Feb 10, 2020

@rultor merge

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

@rultor rultor merged commit f3635ad into yegor256:master Feb 10, 2020
@rultor
Copy link
Collaborator

rultor commented Feb 10, 2020

@rultor merge

@paulodamaso Done! FYI, the full log is here (took me 14min)

@0crat 0crat removed the scope label Feb 10, 2020
@0crat
Copy link
Collaborator

0crat commented Feb 10, 2020

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

@0crat
Copy link
Collaborator

0crat commented Feb 10, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants