+ set -e + set -o pipefail ++ dirname ./run.sh + cd . + echo 1278305 + echo '2.0-SNAPSHOT BUILD' 2.0-SNAPSHOT BUILD + date Wed 22 Mar 2023 12:37:11 PM CET + uptime 12:37:11 up 118 days, 18:15, 0 users, load average: 2.27, 0.71, 0.32 + head=git@github.com:yegor256/loog.git + ff=default + image=yegor256/rultor-image:1.9.1 + rebase=false + squash=false + head_branch=master + author=yegor256 + tag=0.3.1 + vars=('--env=head=git@github.com:yegor256/loog.git' '--env=tag=0.3.1' '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:yegor256/loog.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=0.3.1'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=yegor256'\''\'\'''\'''\'' '\'';'\'' '\''pdd -f /dev/null'\'' '\'';'\'' '\''sudo bundle install --no-color "--gemfile=$(pwd)/Gemfile"'\'' '\'';'\'' '\''bundle exec rake'\'' '\'';'\'' '\''rm -rf *.gem'\'' '\'';'\'' '\''sed -i "s/0\.0\.0/${tag}/g" loog.gemspec'\'' '\'';'\'' '\''git add loog.gemspec'\'' '\'';'\'' '\''git commit -m "version set to ${tag}"'\'' '\'';'\'' '\''gem build loog.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/loog.git'\''' ';' 'export '\''tag=0.3.1'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''author=yegor256'\''' ';' 'pdd -f /dev/null' ';' 'sudo bundle install --no-color "--gemfile=$(pwd)/Gemfile"' ';' 'bundle exec rake' ';' 'rm -rf *.gem' ';' 'sed -i "s/0\.0\.0/${tag}/g" loog.gemspec' ';' 'git add loog.gemspec' ';' 'git commit -m "version set to ${tag}"' ';' 'gem build loog.gemspec' ';' 'chmod 0600 ../rubygems.yml' ';' 'gem push *.gem --config-file ../rubygems.yml' ';') + directory= + container=yegor256_loog_7 + as_root=false + hostname m2262.contaboserver.net + git --version git version 2.25.1 + docker --version Docker version 23.0.1, build a5ee5b1 + 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/loog.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/loog.git'\''' ']' + cd .. + cat + '[' false = true ']' + cat + chmod a+x entry.sh + cat + echo 'export '\''head=git@github.com:yegor256/loog.git'\''' ';' 'export '\''tag=0.3.1'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''author=yegor256'\''' ';' 'pdd -f /dev/null' ';' 'sudo bundle install --no-color "--gemfile=$(pwd)/Gemfile"' ';' 'bundle exec rake' ';' 'rm -rf *.gem' ';' 'sed -i "s/0\.0\.0/${tag}/g" loog.gemspec' ';' 'git add loog.gemspec' ';' 'git commit -m "version set to ${tag}"' ';' 'gem build loog.gemspec' ';' 'chmod 0600 ../rubygems.yml' ';' 'gem push *.gem --config-file ../rubygems.yml' ';' + sensitive=() + rm -rf .gnupg + '[' -z 0.3.1 ']' + [[ 0.3.1 =~ ^[a-zA-Z0-9\.\-]+$ ]] + echo 'tag name is valid: "0.3.1"' tag name is valid: "0.3.1" + cd repo ++ git tag -l 0.3.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=0.32 ++ echo 0.32 '>' 30 ++ bc + '[' 0 -eq 1 ']' + echo 'load average is 0.32, low enough to run a new Docker container' load average is 0.32, low enough to run a new Docker container + break + cd .. + '[' -n '' ']' + use_image=yegor256/rultor-image:1.9.1 + docker pull yegor256/rultor-image:1.9.1 1.9.1: Pulling from yegor256/rultor-image Digest: sha256:61885a12aa213b79fd79e2b4ade12645535717267474cb0d1067a3323514589e Status: Image is up to date for yegor256/rultor-image:1.9.1 docker.io/yegor256/rultor-image:1.9.1 + docker ps --filter=status=exited + grep --quiet '\syegor256_loog_7\s*$' + ls -al . total 44 drwx------ 3 rultor rultor 4096 Mar 22 12:37 . drwxrwxrwt 14 root root 4096 Mar 22 12:37 .. -rwxrwxr-x 1 rultor rultor 556 Mar 22 12:37 end.sh -rwxrwxr-x 1 rultor rultor 363 Mar 22 12:37 entry.sh -rw-rw-r-- 1 rultor rultor 8 Mar 22 12:37 pid drwxrwxr-x 6 rultor rultor 4096 Mar 22 12:37 repo -rw-rw-r-- 1 rultor rultor 56 Mar 22 12:37 rubygems.yml -rwxrwxr-x 1 rultor rultor 5851 Mar 22 12:37 run.sh -rw-rw-r-- 1 rultor rultor 629 Mar 22 12:37 script.sh -rw-rw-r-- 1 rultor rultor 4027 Mar 22 12:37 stdout ++ pwd ++ pwd + docker run -t --rm -v /tmp/rultor-cnvE:/main --env=head=git@github.com:yegor256/loog.git --env=tag=0.3.1 '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:yegor256/loog.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=0.3.1'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=yegor256'\''\'\'''\'''\'' '\'';'\'' '\''pdd -f /dev/null'\'' '\'';'\'' '\''sudo bundle install --no-color "--gemfile=$(pwd)/Gemfile"'\'' '\'';'\'' '\''bundle exec rake'\'' '\'';'\'' '\''rm -rf *.gem'\'' '\'';'\'' '\''sed -i "s/0\.0\.0/${tag}/g" loog.gemspec'\'' '\'';'\'' '\''git add loog.gemspec'\'' '\'';'\'' '\''git commit -m "version set to ${tag}"'\'' '\'';'\'' '\''gem build loog.gemspec'\'' '\'';'\'' '\''chmod 0600 ../rubygems.yml'\'' '\'';'\'' '\''gem push *.gem --config-file ../rubygems.yml'\'' '\'';'\'' )' --env=head_branch=master --env=author=yegor256 --hostname=docker --privileged --memory=8g --memory-swap=16g --oom-kill-disable --cidfile=/tmp/rultor-cnvE/cid -w=/main -v /var/run/docker.sock:/var/run/docker.sock --name=yegor256_loog_7 yegor256/rultor-image:1.9.1 /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 + 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/.npm /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 + '[' -e /home/r/.profile ']' + source /home/r/.profile ++ '[' /bin/bash ']' ++ '[' -f /home/r/.bashrc ']' ++ . /home/r/.bashrc +++ '[' -z '' ']' +++ return ++ mesg n ++ true + 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/loog.git + head=git@github.com:yegor256/loog.git + export tag=0.3.1 + tag=0.3.1 + export head_branch=master + head_branch=master + export author=yegor256 + author=yegor256 + pdd -f /dev/null Found 5 lines in /home/r/repo/.pdd My version is 0.20.8 Ruby version is 2.7.0 at x86_64-linux Reading from root dir . Reading test/test_loog.rb ... Reading test/test__helper.rb ... Reading test/test_tee.rb ... Reading renovate.json ... Reading LICENSE.txt ... Reading .github/workflows/pdd.yml ... Reading .github/workflows/xcop.yml ... Reading .github/workflows/rake.yml ... Reading .github/workflows/codecov.yml ... Reading .pdd ... Reading loog.gemspec ... Reading .0pdd.yml ... Reading Gemfile ... Reading lib/loog/tee.rb ... Reading lib/loog.rb ... Reading .rubocop.yml ... Reading .gitattributes ... Reading appveyor.yml ... Reading .rultor.yml ... Reading .travis.yml ... Reading .gitignore ... Reading logo.svg ... Reading .simplecov ... Reading README.md ... Reading Rakefile ... ++ pwd + sudo -i bundle install --no-color --gemfile=/home/r/repo/Gemfile Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. fatal: unsafe repository ('/home/r/repo' is owned by someone else) To add an exception for this directory, call: git config --global --add safe.directory /home/r/repo Fetching gem metadata from https://rubygems.org/......... Resolving dependencies... Fetching rake 13.0.6 Installing rake 13.0.6 Fetching ast 2.4.2 Using bundler 2.3.16 Using loog 0.0.0 from source at `.` Using rainbow 3.1.1 Fetching simplecov_json_formatter 0.1.4 Fetching json 2.6.3 Fetching minitest 5.18.0 Fetching stringio 3.0.5 Fetching parallel 1.22.1 Fetching docile 1.4.0 Fetching regexp_parser 2.7.0 Fetching ruby-progressbar 1.13.0 Fetching rexml 3.2.5 Fetching simplecov-html 0.12.3 Fetching unicode-display_width 2.4.2 Installing ast 2.4.2 Installing docile 1.4.0 Installing minitest 5.18.0 Installing regexp_parser 2.7.0 Installing simplecov_json_formatter 0.1.4 Installing ruby-progressbar 1.13.0 Installing stringio 3.0.5 with native extensions Installing parallel 1.22.1 Installing rexml 3.2.5 Installing unicode-display_width 2.4.2 Installing simplecov-html 0.12.3 Installing json 2.6.3 with native extensions Fetching parser 3.2.1.1 Installing parser 3.2.1.1 Fetching simplecov 0.21.2 Installing simplecov 0.21.2 Fetching rubocop-ast 1.27.0 Fetching codecov 0.6.0 Installing codecov 0.6.0 Installing rubocop-ast 1.27.0 Fetching psych 5.1.0 Installing psych 5.1.0 with native extensions Fetching rdoc 6.5.0 Installing rdoc 6.5.0 Fetching rubocop 1.48.1 Installing rubocop 1.48.1 Fetching rubocop-capybara 2.17.1 Installing rubocop-capybara 2.17.1 Fetching rubocop-rspec 2.19.0 Installing rubocop-rspec 2.19.0 Bundle complete! 7 Gemfile dependencies, 25 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. + bundle exec rake /home/r/repo/Rakefile:27: warning: already initialized constant CLEAN /usr/local/rvm/gems/ruby-2.7.0/gems/rake-13.0.6/lib/rake/clean.rb:63: warning: previous definition of CLEAN was here Run options: --seed 55974 # Running: Works? Works? ..Works? . Finished in 0.001742s, 1722.6155 runs/s, 0.0000 assertions/s. 3 runs, 0 assertions, 0 failures, 0 errors, 0 skips Coverage report generated for Unit Tests to /home/r/repo/coverage. 33 / 41 LOC (80.49%) covered. Running RuboCop... Inspecting 9 files 32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m 9 files inspected, 32mno offenses0m detected + rm -rf '*.gem' + sed -i 's/0\.0\.0/0.3.1/g' loog.gemspec + git add loog.gemspec + git commit -m 'version set to 0.3.1' [__rultor f27cbf3] version set to 0.3.1 1 file changed, 1 insertion(+), 1 deletion(-) + gem build loog.gemspec Successfully built RubyGem Name: loog Version: 0.3.1 File: loog-0.3.1.gem + chmod 0600 ../rubygems.yml + gem push loog-0.3.1.gem --config-file ../rubygems.yml Pushing gem to https://rubygems.org... Successfully registered gem: loog (0.3.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.3.1 -m '0.3.1: tagged by rultor.com' + git reset --hard HEAD is now at f27cbf3 version set to 0.3.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 f27cbf3). + git push --all origin Everything up-to-date + git push --tags origin To github.com:yegor256/loog.git * [new tag] 0.3.1 -> 0.3.1 container 0400e5e9fcd6acf61363269fc259f881d65bedf36c5f856eae55fd2e3ff36cab is dead Wed 22 Mar 2023 12:38:28 PM CET