+ set -e + set -o pipefail ++ dirname ./run.sh + cd . + echo 2231 + echo '1.68.14 87f2c0278' 1.68.14 87f2c0278 + date Sun May 10 20:46:50 CEST 2020 + uptime 20:46:50 up 206 days, 16:55, 0 users, load average: 4.05, 4.52, 4.58 + head=git@github.com:yegor256/rumble.git + ff=default + image=yegor256/rultor-image + rebase=false + squash=false + head_branch=master + author=yegor256 + tag=0.6.0 + vars=('--env=head=git@github.com:yegor256/rumble.git' '--env=tag=0.6.0' '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:yegor256/rumble.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=0.6.0'\''\'\'''\'''\'' '\'';'\'' '\''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/1\.0\.snapshot/${tag}/g" lib/rumble/version.rb'\'' '\'';'\'' '\''git add lib/rumble/version.rb'\'' '\'';'\'' '\''git commit -m "version set to ${tag}"'\'' '\'';'\'' '\''gem build rumble.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/rumble.git'\''' ';' 'export '\''tag=0.6.0'\''' ';' '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/1\.0\.snapshot/${tag}/g" lib/rumble/version.rb' ';' 'git add lib/rumble/version.rb' ';' 'git commit -m "version set to ${tag}"' ';' 'gem build rumble.gemspec' ';' 'chmod 0600 ../rubygems.yml' ';' 'gem push *.gem --config-file ../rubygems.yml' ';') + directory= + container=yegor256_rumble_15 + as_root=false + 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/rumble.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/rumble.git'\''' ']' + cd .. + cat + '[' false = true ']' + cat + chmod a+x entry.sh + cat + echo 'export '\''head=git@github.com:yegor256/rumble.git'\''' ';' 'export '\''tag=0.6.0'\''' ';' '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/1\.0\.snapshot/${tag}/g" lib/rumble/version.rb' ';' 'git add lib/rumble/version.rb' ';' 'git commit -m "version set to ${tag}"' ';' 'gem build rumble.gemspec' ';' 'chmod 0600 ../rubygems.yml' ';' 'gem push *.gem --config-file ../rubygems.yml' ';' + sensitive=() + rm -rf .gpg + '[' -z 0.6.0 ']' + [[ 0.6.0 =~ ^[a-zA-Z0-9\.\-]+$ ]] + echo 'tag name is valid: "0.6.0"' tag name is valid: "0.6.0" + cd repo ++ git tag -l 0.6.0 + '[' ']' + 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.58 ++ echo 4.58 '>' 30 ++ bc + '[' 0 -eq 1 ']' + echo 'load average is 4.58, low enough to run a new Docker container' load average is 4.58, 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 Digest: sha256:9e0007d3c1f97c64052760bdfa4d74366099fc980adbe1cc58bbffbb92ca628a Status: Image is up to date for yegor256/rultor-image:latest + docker ps --filter=status=exited + grep --quiet '\syegor256_rumble_15\s*$' + ls -al . total 712 drwx--x--x 3 rultor rultor 4096 May 10 20:46 . drwxrwxrwt 14 root root 684032 May 10 20:46 .. -rw-rw-r-- 1 rultor rultor 444 May 10 20:46 end.sh -rwxrwxr-x 1 rultor rultor 363 May 10 20:46 entry.sh -rw-rw-r-- 1 rultor rultor 5 May 10 20:46 pid drwxrwxr-x 8 rultor rultor 4096 May 10 20:46 repo -rw-rw-r-- 1 rultor rultor 56 May 10 20:46 rubygems.yml -rwxrwxr-x 1 rultor rultor 5795 May 10 20:46 run.sh -rw-rw-r-- 1 rultor rultor 597 May 10 20:46 script.sh -rw-rw-r-- 1 rultor rultor 3965 May 10 20:46 stdout ++ pwd ++ pwd + docker run -t --rm -v /tmp/rultor-17tF:/main --env=head=git@github.com:yegor256/rumble.git --env=tag=0.6.0 '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:yegor256/rumble.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=0.6.0'\''\'\'''\'''\'' '\'';'\'' '\''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/1\.0\.snapshot/${tag}/g" lib/rumble/version.rb'\'' '\'';'\'' '\''git add lib/rumble/version.rb'\'' '\'';'\'' '\''git commit -m "version set to ${tag}"'\'' '\'';'\'' '\''gem build rumble.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-17tF/cid -w=/main -v /var/run/docker.sock:/var/run/docker.sock --name=yegor256_rumble_15 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 + usermod -s /bin/bash r + echo '%sudo ALL=(ALL) NOPASSWD:ALL' + cp -R /root/.bashrc /root/.cache /root/.composer /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 mesg: cannot open /dev/pts/0: Permission denied + 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/rumble.git + head=git@github.com:yegor256/rumble.git + export tag=0.6.0 + tag=0.6.0 + export head_branch=master + head_branch=master + export author=yegor256 + author=yegor256 + pdd -f /dev/null Found 7 lines in /home/r/repo/.pdd My version is 0.20.5 Ruby version is 2.6.0 at x86_64-linux Reading . Excluding target/**/* Excluding coverage/**/* 28 file(s) found, 171 excluded Reading rumble.gemspec... Reading .simplecov... Reading Rakefile... Reading Gemfile... Reading .0pdd.yml... Reading .github/ISSUE_TEMPLATE.md... Reading .github/PULL_REQUEST_TEMPLATE.md... Reading cucumber.yml... Reading .travis.yml... Reading LICENSE.txt... Reading test/test_rumble.rb... Reading test/test__helper.rb... Reading .pdd... Reading .rultor.yml... Reading lib/rumble/cli.rb... Reading lib/rumble/version.rb... Reading lib/rumble.rb... Reading README.md... Reading appveyor.yml... Reading .rubocop.yml... Reading .gitignore... Reading features/cli.feature... Reading features/support/env.rb... Reading features/gem_package.feature... Reading features/step_definitions/steps.rb... Reading bin/rumble... Reading logo.svg... Reading .gitattributes... ++ 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. Fetching gem metadata from https://rubygems.org/........... Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Fetching rake 12.0.0 Installing rake 12.0.0 Fetching concurrent-ruby 1.1.6 Installing concurrent-ruby 1.1.6 Fetching i18n 1.8.2 Installing i18n 1.8.2 Fetching minitest 5.5.0 Installing minitest 5.5.0 Fetching thread_safe 0.3.6 Installing thread_safe 0.3.6 Fetching tzinfo 1.2.7 Installing tzinfo 1.2.7 Fetching zeitwerk 2.3.0 Installing zeitwerk 2.3.0 Fetching activesupport 6.0.3 Installing activesupport 6.0.3 Fetching builder 3.2.4 Installing builder 3.2.4 Fetching erubi 1.9.0 Installing erubi 1.9.0 Using mini_portile2 2.4.0 Using nokogiri 1.10.9 Fetching rails-dom-testing 2.0.3 Installing rails-dom-testing 2.0.3 Fetching crass 1.0.6 Installing crass 1.0.6 Fetching loofah 2.5.0 Installing loofah 2.5.0 Fetching rails-html-sanitizer 1.3.0 Installing rails-html-sanitizer 1.3.0 Fetching actionview 6.0.3 Installing actionview 6.0.3 Fetching rack 2.2.2 Installing rack 2.2.2 Fetching rack-test 1.1.0 Installing rack-test 1.1.0 Fetching actionpack 6.0.3 Installing actionpack 6.0.3 Fetching ast 2.4.0 Installing ast 2.4.0 Using bundler 2.1.4 Fetching json 1.8.6 Installing json 1.8.6 with native extensions Fetching docile 1.3.2 Installing docile 1.3.2 Fetching simplecov-html 0.12.2 Installing simplecov-html 0.12.2 Fetching simplecov 0.18.5 Installing simplecov 0.18.5 Fetching url 0.3.2 Installing url 0.3.2 Fetching codecov 0.1.10 Installing codecov 0.1.10 Fetching diff-lcs 1.3 Installing diff-lcs 1.3 Fetching multi_json 1.14.1 Installing multi_json 1.14.1 Fetching gherkin 2.12.2 Installing gherkin 2.12.2 with native extensions Fetching multi_test 0.1.2 Installing multi_test 0.1.2 Fetching cucumber 1.3.17 Installing cucumber 1.3.17 Fetching jaro_winkler 1.5.4 Installing jaro_winkler 1.5.4 with native extensions Fetching liquid 4.0.1 Installing liquid 4.0.1 Fetching mini_mime 1.0.2 Installing mini_mime 1.0.2 Fetching mail 2.7.1 Installing mail 2.7.1 Fetching method_source 1.0.0 Installing method_source 1.0.0 Fetching proxifier 1.0.3 Installing proxifier 1.0.3 Fetching net-smtp-proxy 2.0.0 Installing net-smtp-proxy 2.0.0 Fetching parallel 1.19.1 Installing parallel 1.19.1 Fetching parser 2.7.1.2 Installing parser 2.7.1.2 Fetching powerpack 0.1.2 Installing powerpack 0.1.2 Fetching thor 1.0.1 Installing thor 1.0.1 Fetching railties 6.0.3 Installing railties 6.0.3 Using rainbow 3.0.0 Fetching rdoc 4.2.0 Installing rdoc 4.2.0 Fetching redcarpet 3.4.0 Installing redcarpet 3.4.0 with native extensions Fetching rspec-support 3.1.2 Installing rspec-support 3.1.2 Fetching rspec-core 3.1.7 Installing rspec-core 3.1.7 Fetching rspec-expectations 3.1.2 Installing rspec-expectations 3.1.2 Fetching rspec-mocks 3.1.3 Installing rspec-mocks 3.1.3 Fetching rspec-rails 3.1.0 Installing rspec-rails 3.1.0 Fetching ruby-progressbar 1.10.1 Installing ruby-progressbar 1.10.1 Fetching unicode-display_width 1.4.1 Installing unicode-display_width 1.4.1 Fetching rubocop 0.61.0 Installing rubocop 0.61.0 Fetching rubocop-rspec 1.31.0 Installing rubocop-rspec 1.31.0 Fetching slop 4.6.2 Installing slop 4.6.2 Fetching uuidtools 2.1.5 Installing uuidtools 2.1.5 Using rumble 1.0.snapshot from source at `.` Bundle complete! 9 Gemfile dependencies, 60 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. Post-install message from i18n: HEADS UP! i18n 1.1 changed fallbacks to exclude default locale. But that may break your application. If you are upgrading your Rails application from an older version of Rails: Please check your Rails app for 'config.i18n.fallbacks = true'. If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be 'config.i18n.fallbacks = [I18n.default_locale]'. If not, fallbacks will be broken in your app by I18n 1.1.x. If you are starting a NEW Rails application, you can ignore this notice. For more info see: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0 Post-install message from rdoc: Depending on your version of ruby, you may need to install ruby rdoc/ri data: <= 1.8.6 : unsupported = 1.8.7 : gem install rdoc-data; rdoc-data --install = 1.9.1 : gem install rdoc-data; rdoc-data --install >= 1.9.2 : nothing to do! Yay! + bundle exec rake /usr/local/rvm/gems/ruby-2.6.0/gems/minitest-5.5.0/lib/minitest/assertions.rb:413: warning: mismatched indentations at 'ensure' with 'begin' at 404 /usr/local/rvm/gems/ruby-2.6.0/gems/minitest-5.5.0/lib/minitest/assertions.rb:452: warning: mismatched indentations at 'ensure' with 'begin' at 437 /usr/local/rvm/gems/ruby-2.6.0/gems/uuidtools-2.1.5/lib/uuidtools.rb:530: warning: assigned but unused variable - os_class /usr/local/rvm/gems/ruby-2.6.0/gems/redcarpet-3.4.0/lib/redcarpet/compat.rb:1: warning: /usr/local/rvm/gems/ruby-2.6.0/gems/redcarpet-3.4.0/lib/redcarpet/compat.rb:1: warning: loading in progress, circular require considered harmful - /usr/local/rvm/gems/ruby-2.6.0/gems/redcarpet-3.4.0/lib/redcarpet.rb from /usr/local/rvm/gems/ruby-2.6.0/gems/rake-12.0.0/lib/rake/rake_test_loader.rb:4:in `<main>' from /usr/local/rvm/gems/ruby-2.6.0/gems/rake-12.0.0/lib/rake/rake_test_loader.rb:4:in `select' from /usr/local/rvm/gems/ruby-2.6.0/gems/rake-12.0.0/lib/rake/rake_test_loader.rb:15:in `block in <main>' from /usr/local/rvm/gems/ruby-2.6.0/gems/rake-12.0.0/lib/rake/rake_test_loader.rb:15:in `require' from /home/r/repo/test/test_rumble.rb:27:in `<top (required)>' from /home/r/repo/test/test_rumble.rb:27:in `require_relative' from /home/r/repo/lib/rumble/cli.rb:29:in `<top (required)>' from /home/r/repo/lib/rumble/cli.rb:29:in `require' from /usr/local/rvm/gems/ruby-2.6.0/gems/redcarpet-3.4.0/lib/redcarpet.rb:2:in `<top (required)>' from /usr/local/rvm/gems/ruby-2.6.0/gems/redcarpet-3.4.0/lib/redcarpet.rb:2:in `require' from /usr/local/rvm/gems/ruby-2.6.0/gems/redcarpet-3.4.0/lib/redcarpet/compat.rb:1:in `<top (required)>' from /usr/local/rvm/gems/ruby-2.6.0/gems/redcarpet-3.4.0/lib/redcarpet/compat.rb:1:in `require' Run options: --seed 11920 # Running: Sending 1 email(s) as Yegor Bugayenko <yegor256@gmail.com> Sending to test@yegor256.com test@yegor256.com <test@yegor256.com>... /home/r/repo/lib/rumble/cli.rb:89: warning: instance variable @options not initialized /home/r/repo/lib/rumble/cli.rb:91: warning: instance variable @options not initialized /usr/local/rvm/gems/ruby-2.6.0/gems/mail-2.7.1/lib/mail/parsers/content_type_parser.rb:939: warning: statement not reached /usr/local/rvm/gems/ruby-2.6.0/gems/mail-2.7.1/lib/mail/parsers/content_type_parser.rb:963: warning: statement not reached /usr/local/rvm/gems/ruby-2.6.0/gems/mail-2.7.1/lib/mail/parsers/content_type_parser.rb:709: warning: assigned but unused variable - testEof 32mdone0m #1 Processed 1 emails 32m.0m Finished in 0.233299s, 4.2863 runs/s, 0.0000 assertions/s. 1 runs, 0 assertions, 0 failures, 0 errors, 0 skips Coverage report generated for Unit Tests to /home/r/repo/coverage. 64 / 81 LOC (79.01%) covered. /usr/local/rvm/rubies/ruby-2.6.0/bin/ruby -S bundle exec cucumber /usr/local/rvm/gems/ruby-2.6.0/gems/cucumber-1.3.17/lib/cucumber/ast/step.rb:80: warning: circular argument reference - name Using the default profile... Feature: Command Line Processing As a newsletter author I want to be able to send a newsletter Scenario: Help can be printed90m # features/cli.feature:40m 32mWhen I run bin/rumble with "32m1m--help0m0m32m"90m # features/step_definitions/steps.rb:520m0m 32mThen Exit code is zero90m # features/step_definitions/steps.rb:680m0m 32mAnd Stdout contains "32m1m--help0m0m32m"90m # features/step_definitions/steps.rb:580m0m Scenario: Version can be printed90m # features/cli.feature:90m 32mWhen I run bin/rumble with "32m1m--version0m0m32m"90m # features/step_definitions/steps.rb:520m0m 32mThen Exit code is zero90m # features/step_definitions/steps.rb:680m0m Scenario: Sending test email90m # features/cli.feature:130m 32mGiven I have a "32m1ma.liquid0m0m32m" file with content:90m # features/step_definitions/steps.rb:450m0m 32m """0m 32m Hi, {{ first }}0m 32m How are you?0m 32m0m 32m """0m 32mWhen I run bin/rumble with "32m1m--test=yegor256@gmail.com --subject=test --letter=a.liquid --from=me@example.com --dry --resume=test@example.com0m0m32m"90m # features/step_definitions/steps.rb:520m0m 32mThen Stdout contains "32m1mProcessed 1 email0m0m32m"90m # features/step_definitions/steps.rb:580m0m 32mAnd Exit code is zero90m # features/step_definitions/steps.rb:680m0m Feature: Gem Package As a source code writer I want to be able to package the Gem into .gem file Scenario: Gem can be packaged90m # features/gem_package.feature:50m 32mGiven It is Unix90m # features/step_definitions/steps.rb:880m0m 32mGiven I have a "32m1mexecs.rb0m0m32m" file with content:90m # features/step_definitions/steps.rb:450m0m 32m """0m 32m #!/usr/bin/env ruby0m 32m require 'rubygems'0m 32m spec = Gem::Specification::load('./spec.rb')0m 32m if spec.executables.empty?0m 32m fail 'no executables: ' + File.read('./spec.rb')0m 32m end0m 32m """0m /tmp/test20200510-2408-tojje8/rumble/lib/rumble/version.rb:28: warning: already initialized constant Rumble::VERSION /home/r/repo/lib/rumble/version.rb:28: warning: previous definition of VERSION was here 32mWhen I run bash with:90m # features/step_definitions/steps.rb:820m0m 32m """0m 32m cd rumble0m 32m gem build rumble.gemspec0m 32m gem specification --ruby rumble-*.gem > ../spec.rb0m 32m cd ..0m 32m ruby execs.rb0m 32m """0m 32mThen Exit code is zero90m # features/step_definitions/steps.rb:680m0m 4 scenarios (32m4 passed0m) 13 steps (32m13 passed0m) 0m2.831s Coverage report generated for Cucumber Features, Unit Tests to /home/r/repo/coverage. 64 / 81 LOC (79.01%) covered. Running RuboCop... Inspecting 10 files 32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m 10 files inspected, 32mno offenses0m detected grep -q -r '2020' --include '*.rb' --include '*.txt' --include 'Rakefile' . + rm -rf '*.gem' + sed -i 's/1\.0\.snapshot/0.6.0/g' lib/rumble/version.rb + git add lib/rumble/version.rb + git commit -m 'version set to 0.6.0' [__rultor c1ec530] version set to 0.6.0 1 file changed, 1 insertion(+), 1 deletion(-) + gem build rumble.gemspec Successfully built RubyGem Name: rumble Version: 0.6.0 File: rumble-0.6.0.gem + chmod 0600 ../rubygems.yml + gem push rumble-0.6.0.gem --config-file ../rubygems.yml Pushing gem to https://rubygems.org... Successfully registered gem: rumble (0.6.0) + 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.6.0 -m '0.6.0: tagged by rultor.com' + git reset --hard HEAD is now at c1ec530 version set to 0.6.0 + 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 c1ec530). + git push --all origin Everything up-to-date + git push --tags origin To git@github.com:yegor256/rumble.git * [new tag] 0.6.0 -> 0.6.0 container 2c72ae7393824f26881260df4ce521052f2763db109cb2ae2e6b121bf415883a is dead Sun May 10 20:48:08 CEST 2020