+ set -e
+ set -o pipefail
++ dirname ./run.sh
+ cd .
+ echo 3920
+ echo '1.70.6 5bcc93e7c'
1.70.6 5bcc93e7c
+ date
Mon Sep 13 06:18:57 CEST 2021
+ uptime
06:18:57 up 350 days, 14:24, 0 users, load average: 4.46, 4.62, 4.71
+ head=git@github.com:yegor256/iri.git
+ ff=default
+ image=yegor256/rultor-image
+ rebase=false
+ squash=false
+ head_branch=master
+ author=yegor256
+ tag=0.5.1
+ vars=('--env=head=git@github.com:yegor256/iri.git' '--env=tag=0.5.1' '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:yegor256/iri.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=0.5.1'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=yegor256'\''\'\'''\'''\'' '\'';'\'' '\''export GEM_HOME=~/.ruby'\'' '\'';'\'' '\''export GEM_PATH=$GEM_HOME:$GEM_PATH'\'' '\'';'\'' '\''bundle install'\'' '\'';'\'' '\''bundle exec rake'\'' '\'';'\'' '\''rm -rf *.gem'\'' '\'';'\'' '\''sed -i "s/0\.0\.0/${tag}/g" iri.gemspec'\'' '\'';'\'' '\''git add iri.gemspec'\'' '\'';'\'' '\''git commit -m "Version set to ${tag}"'\'' '\'';'\'' '\''gem build iri.gemspec'\'' '\'';'\'' '\''chmod 0600 ../rubygems.yml'\'' '\'';'\'' '\''gem push *.gem --config-file ../rubygems.yml'\'' '\'';'\'' )' '--env=head_branch=master' '--env=author=yegor256')
+ scripts=('export '\''head=git@github.com:yegor256/iri.git'\''' ';' 'export '\''tag=0.5.1'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''author=yegor256'\''' ';' 'export GEM_HOME=~/.ruby' ';' 'export GEM_PATH=$GEM_HOME:$GEM_PATH' ';' 'bundle install' ';' 'bundle exec rake' ';' 'rm -rf *.gem' ';' 'sed -i "s/0\.0\.0/${tag}/g" iri.gemspec' ';' 'git add iri.gemspec' ';' 'git commit -m "Version set to ${tag}"' ';' 'gem build iri.gemspec' ';' 'chmod 0600 ../rubygems.yml' ';' 'gem push *.gem --config-file ../rubygems.yml' ';')
+ directory=
+ container=yegor256_iri_10
+ as_root=false
+ git --version
git version 2.7.4
+ docker --version
Docker version 17.12.0-ce, build c97c6d6
+ mkdir -p /home/rultor/.ssh
+ echo -e 'Host github.com\n\tStrictHostKeyChecking no\n'
+ chmod 600 /home/rultor/.ssh/config
+ git clone git@github.com:yegor256/iri.git repo
Cloning into 'repo'...
+ cd repo
+ git config user.email me@rultor.com
+ git config user.name rultor
+ '[' -z 'export '\''head=git@github.com:yegor256/iri.git'\''' ']'
+ cd ..
+ cat
+ '[' false = true ']'
+ cat
+ chmod a+x entry.sh
+ cat
+ echo 'export '\''head=git@github.com:yegor256/iri.git'\''' ';' 'export '\''tag=0.5.1'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''author=yegor256'\''' ';' 'export GEM_HOME=~/.ruby' ';' 'export GEM_PATH=$GEM_HOME:$GEM_PATH' ';' 'bundle install' ';' 'bundle exec rake' ';' 'rm -rf *.gem' ';' 'sed -i "s/0\.0\.0/${tag}/g" iri.gemspec' ';' 'git add iri.gemspec' ';' 'git commit -m "Version set to ${tag}"' ';' 'gem build iri.gemspec' ';' 'chmod 0600 ../rubygems.yml' ';' 'gem push *.gem --config-file ../rubygems.yml' ';'
+ sensitive=()
+ rm -rf .gpg
+ '[' -z 0.5.1 ']'
+ [[ 0.5.1 =~ ^[a-zA-Z0-9\.\-]+$ ]]
+ echo 'tag name is valid: "0.5.1"'
tag name is valid: "0.5.1"
+ cd repo
++ git tag -l 0.5.1
+ '[' ']'
+ export BRANCH_NAME=__rultor
+ BRANCH_NAME=__rultor
++ git show-branch __rultor
++ wc -l
+ '[' 0 -gt 0 ']'
+ git checkout -b __rultor
Switched to a new branch '__rultor'
+ docker_when_possible
+ true
++ uptime
++ sed 's/ /\n/g'
++ tail -n 1
+ load=4.71
++ echo 4.71 '>' 30
++ bc
+ '[' 0 -eq 1 ']'
+ echo 'load average is 4.71, low enough to run a new Docker container'
load average is 4.71, low enough to run a new Docker container
+ break
+ cd ..
+ '[' -n '' ']'
+ use_image=yegor256/rultor-image
+ docker pull yegor256/rultor-image
Using default tag: latest
latest: Pulling from yegor256/rultor-image
a31c7b29f4ad: Pulling fs layer
4f4fb700ef54: Pulling fs layer
31475658ffb0: Pulling fs layer
5b2f6095cc60: Pulling fs layer
a444bc4fd3fd: Pulling fs layer
e0b4390423d5: Pulling fs layer
53e88832e724: Pulling fs layer
29f95d844c54: Pulling fs layer
3000a805a38c: Pulling fs layer
aaf1a79acd98: Pulling fs layer
00e489085dad: Pulling fs layer
4009bd788afc: Pulling fs layer
223557399f0f: Pulling fs layer
1dbaf17e9a80: Pulling fs layer
3594e58c735d: Pulling fs layer
c046119f10c9: Pulling fs layer
1c691c0fe174: Pulling fs layer
56f47702f7f5: Pulling fs layer
6d4987f6443b: Pulling fs layer
ea7b08fa58f5: Pulling fs layer
241a045014e7: Pulling fs layer
496489369dd6: Pulling fs layer
8b3527c5c354: Pulling fs layer
090c49a0f3e0: Pulling fs layer
4a82ef86b9d2: Pulling fs layer
2c945d567da2: Pulling fs layer
8b151fef3144: Pulling fs layer
c046119f10c9: Waiting
1c691c0fe174: Waiting
56f47702f7f5: Waiting
6d4987f6443b: Waiting
ea7b08fa58f5: Waiting
241a045014e7: Waiting
496489369dd6: Waiting
5b2f6095cc60: Waiting
8b3527c5c354: Waiting
090c49a0f3e0: Waiting
4a82ef86b9d2: Waiting
a444bc4fd3fd: Waiting
2c945d567da2: Waiting
e0b4390423d5: Waiting
53e88832e724: Waiting
29f95d844c54: Waiting
8b151fef3144: Waiting
3000a805a38c: Waiting
aaf1a79acd98: Waiting
223557399f0f: Waiting
00e489085dad: Waiting
3594e58c735d: Waiting
1dbaf17e9a80: Waiting
31475658ffb0: Download complete
4f4fb700ef54: Download complete
5b2f6095cc60: Verifying Checksum
5b2f6095cc60: Download complete
a31c7b29f4ad: Verifying Checksum
a31c7b29f4ad: Download complete
a31c7b29f4ad: Pull complete
53e88832e724: Verifying Checksum
53e88832e724: Download complete
4f4fb700ef54: Pull complete
31475658ffb0: Pull complete
5b2f6095cc60: Pull complete
a444bc4fd3fd: Verifying Checksum
a444bc4fd3fd: Download complete
3000a805a38c: Verifying Checksum
3000a805a38c: Download complete
a444bc4fd3fd: Pull complete
29f95d844c54: Verifying Checksum
29f95d844c54: Download complete
00e489085dad: Verifying Checksum
00e489085dad: Download complete
4009bd788afc: Verifying Checksum
4009bd788afc: Download complete
e0b4390423d5: Verifying Checksum
e0b4390423d5: Download complete
1dbaf17e9a80: Verifying Checksum
1dbaf17e9a80: Download complete
aaf1a79acd98: Verifying Checksum
aaf1a79acd98: Download complete
e0b4390423d5: Pull complete
53e88832e724: Pull complete
29f95d844c54: Pull complete
3000a805a38c: Pull complete
aaf1a79acd98: Pull complete
00e489085dad: Pull complete
4009bd788afc: Pull complete
3594e58c735d: Verifying Checksum
3594e58c735d: Download complete
1c691c0fe174: Verifying Checksum
1c691c0fe174: Download complete
223557399f0f: Verifying Checksum
223557399f0f: Download complete
56f47702f7f5: Verifying Checksum
56f47702f7f5: Download complete
6d4987f6443b: Verifying Checksum
6d4987f6443b: Download complete
241a045014e7: Verifying Checksum
241a045014e7: Download complete
496489369dd6: Verifying Checksum
496489369dd6: Download complete
8b3527c5c354: Download complete
090c49a0f3e0: Download complete
ea7b08fa58f5: Verifying Checksum
ea7b08fa58f5: Download complete
4a82ef86b9d2: Verifying Checksum
4a82ef86b9d2: Download complete
223557399f0f: Pull complete
1dbaf17e9a80: Pull complete
8b151fef3144: Verifying Checksum
8b151fef3144: Download complete
2c945d567da2: Verifying Checksum
2c945d567da2: Download complete
3594e58c735d: Pull complete
c046119f10c9: Verifying Checksum
c046119f10c9: Download complete
c046119f10c9: Pull complete
1c691c0fe174: Pull complete
56f47702f7f5: Pull complete
6d4987f6443b: Pull complete
ea7b08fa58f5: Pull complete
241a045014e7: Pull complete
496489369dd6: Pull complete
8b3527c5c354: Pull complete
090c49a0f3e0: Pull complete
4a82ef86b9d2: Pull complete
2c945d567da2: Pull complete
8b151fef3144: Pull complete
Digest: sha256:ae457d2438aa9a4989fb3a85705ab72db31f399c2ef11af2e520b03c1ccd2fe0
Status: Downloaded newer image for yegor256/rultor-image:latest
+ docker ps --filter=status=exited
+ grep --quiet '\syegor256_iri_10\s*$'
+ ls -al .
total 716
drwx--x--x 3 rultor rultor 4096 Sep 13 06:18 .
drwxrwxrwt 12 root root 684032 Sep 13 06:21 ..
-rw-rw-r-- 1 rultor rultor 444 Sep 13 06:21 end.sh
-rwxrwxr-x 1 rultor rultor 363 Sep 13 06:18 entry.sh
-rw-rw-r-- 1 rultor rultor 5 Sep 13 06:18 pid
drwxrwxr-x 5 rultor rultor 4096 Sep 13 06:18 repo
-rw-rw-r-- 1 rultor rultor 56 Sep 13 06:18 rubygems.yml
-rwxrwxr-x 1 rultor rultor 5775 Sep 13 06:18 run.sh
-rw-rw-r-- 1 rultor rultor 566 Sep 13 06:18 script.sh
-rw-rw-r-- 1 rultor rultor 7695 Sep 13 06:21 stdout
++ pwd
++ pwd
+ docker run -t --rm -v /tmp/rultor-q93d:/main --env=head=git@github.com:yegor256/iri.git --env=tag=0.5.1 '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:yegor256/iri.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=0.5.1'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=yegor256'\''\'\'''\'''\'' '\'';'\'' '\''export GEM_HOME=~/.ruby'\'' '\'';'\'' '\''export GEM_PATH=$GEM_HOME:$GEM_PATH'\'' '\'';'\'' '\''bundle install'\'' '\'';'\'' '\''bundle exec rake'\'' '\'';'\'' '\''rm -rf *.gem'\'' '\'';'\'' '\''sed -i "s/0\.0\.0/${tag}/g" iri.gemspec'\'' '\'';'\'' '\''git add iri.gemspec'\'' '\'';'\'' '\''git commit -m "Version set to ${tag}"'\'' '\'';'\'' '\''gem build iri.gemspec'\'' '\'';'\'' '\''chmod 0600 ../rubygems.yml'\'' '\'';'\'' '\''gem push *.gem --config-file ../rubygems.yml'\'' '\'';'\'' )' --env=head_branch=master --env=author=yegor256 --hostname=docker --privileged --memory=6g --memory-swap=16g --oom-kill-disable --cidfile=/tmp/rultor-q93d/cid -w=/main -v /var/run/docker.sock:/var/run/docker.sock --name=yegor256_iri_10 yegor256/rultor-image /main/entry.sh
+ set -e
+ set -o pipefail
+ shopt -s dotglob
+ useradd -m -G sudo r
+ usermod -s /bin/bash r
+ echo '%sudo ALL=(ALL) NOPASSWD:ALL'
+ cp -R /root/.bashrc /root/.cache /root/.config /root/.gem /root/.gnupg /root/.m2 /root/.profile /root/texmf /home/r
+ cp -R ./cid ./end.sh ./entry.sh ./pid ./repo ./rubygems.yml ./run.sh ./script.sh ./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
+ 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 head=git@github.com:yegor256/iri.git
+ head=git@github.com:yegor256/iri.git
+ export tag=0.5.1
+ tag=0.5.1
+ export head_branch=master
+ head_branch=master
+ export author=yegor256
+ author=yegor256
+ export GEM_HOME=/home/r/.ruby
+ GEM_HOME=/home/r/.ruby
+ export GEM_PATH=/home/r/.ruby:/usr/local/rvm/gems/ruby-2.7.0:/usr/local/rvm/gems/ruby-2.7.0@global
+ GEM_PATH=/home/r/.ruby:/usr/local/rvm/gems/ruby-2.7.0:/usr/local/rvm/gems/ruby-2.7.0@global
+ bundle install
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
32mFetching rake 12.3.30m
32mInstalling rake 12.3.30m
Using bundler 2.2.23
32mFetching jaro_winkler 1.5.40m
32mFetching simplecov_json_formatter 0.1.30m
32mFetching ast 2.4.20m
Using iri 0.0.0 from source at `.`
32mFetching json 2.5.10m
32mFetching parallel 1.20.10m
32mFetching rdoc 6.3.10m
32mFetching minitest 5.11.30m
32mFetching docile 1.4.00m
32mFetching simplecov-html 0.12.30m
Using rainbow 3.0.0
32mFetching powerpack 0.1.30m
32mFetching ruby-progressbar 1.11.00m
32mFetching unicode-display_width 1.4.10m
32mInstalling powerpack 0.1.30m
32mInstalling ruby-progressbar 1.11.00m
32mInstalling parallel 1.20.10m
32mInstalling minitest 5.11.30m
32mInstalling json 2.5.1 with native extensions0m
32mInstalling jaro_winkler 1.5.4 with native extensions0m
32mInstalling unicode-display_width 1.4.10m
32mInstalling docile 1.4.00m
32mInstalling simplecov_json_formatter 0.1.30m
32mInstalling rdoc 6.3.10m
32mInstalling simplecov-html 0.12.30m
32mInstalling ast 2.4.20m
32mFetching parser 3.0.2.00m
32mFetching simplecov 0.21.20m
32mInstalling simplecov 0.21.20m
32mInstalling parser 3.0.2.00m
GemWrappers: Can not wrap missing file: ruby-parse
GemWrappers: Can not wrap missing file: ruby-rewrite
GemWrappers: Can not wrap missing file: ruby-parse
GemWrappers: Can not wrap missing file: ruby-rewrite
32mFetching rubocop 0.62.00m
32mInstalling rubocop 0.62.00m
32mFetching codecov 0.2.110m
32mInstalling codecov 0.2.110m
GemWrappers: Can not wrap missing file: rubocop
GemWrappers: Can not wrap missing file: rubocop
32mFetching rubocop-rspec 1.31.00m
32mInstalling rubocop-rspec 1.31.00m
32mBundle complete! 7 Gemfile dependencies, 21 gems now installed.0m
32mUse `bundle info [gemname]` to see where a bundled gem is installed.0m
+ bundle exec rake
/home/r/repo/Rakefile:27: warning: already initialized constant CLEAN
/home/r/.ruby/gems/rake-12.3.3/lib/rake/clean.rb:63: warning: previous definition of CLEAN was here
/home/r/.ruby/gems/rake-12.3.3/lib/rake/clean.rb:34: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/usr/local/rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/fileutils.rb:622: warning: The called method `rm_r' is defined here
Run options: --seed 38028
# Running:
.................
Finished in 0.003091s, 5499.4604 runs/s, 6146.4558 assertions/s.
17 runs, 19 assertions, 0 failures, 0 errors, 0 skips
Coverage report generated for Unit Tests to /home/r/repo/coverage. 108 / 109 LOC (99.08%) covered.
Running RuboCop...
Inspecting 6 files
32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m
6 files inspected, 32mno offenses0m detected
+ rm -rf '*.gem'
+ sed -i 's/0\.0\.0/0.5.1/g' iri.gemspec
+ git add iri.gemspec
+ git commit -m 'Version set to 0.5.1'
[__rultor 0206400] Version set to 0.5.1
1 file changed, 1 insertion(+), 1 deletion(-)
+ gem build iri.gemspec
Successfully built RubyGem
Name: iri
Version: 0.5.1
File: iri-0.5.1.gem
+ chmod 0600 ../rubygems.yml
+ gem push iri-0.5.1.gem --config-file ../rubygems.yml
Pushing gem to https://rubygems.org...
Successfully registered gem: iri (0.5.1)
+ mv /home/r/repo .
++ whoami
+ chown -R root repo
+ '[' -n '' ']'
++ whoami
+ sudo chown -R rultor repo
+ cd repo
+ git checkout __rultor
Already on '__rultor'
+ git tag 0.5.1 -m '0.5.1: tagged by rultor.com'
+ git reset --hard
HEAD is now at 0206400 Version set to 0.5.1
+ git clean -fd
+ git checkout master
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
+ git branch -D __rultor
Deleted branch __rultor (was 0206400).
+ git push --all origin
Everything up-to-date
+ git push --tags origin
To git@github.com:yegor256/iri.git
* [new tag] 0.5.1 -> 0.5.1
container d0f57b89bd3df9c7c8fa3483ccd598061db0fe63275411fa725d4d7f07389243 is dead
Mon Sep 13 06:22:46 CEST 2021