+ set -e
+ set -o pipefail
++ dirname ./run.sh
+ cd .
+ echo 851333
+ echo '2.0-SNAPSHOT BUILD'
2.0-SNAPSHOT BUILD
+ date
Tue Feb 6 07:38:22 AM CET 2024
+ uptime
07:38:22 up 145 days, 11:52, 0 users, load average: 0.58, 0.56, 0.29
+ head=git@github.com:yegor256/jekyll-git-hash.git
+ ff=default
+ image=yegor256/rultor-image:1.22.0
+ rebase=false
+ squash=false
+ head_branch=master
+ author=yegor256
+ tag=0.1.1
+ vars=('--env=head=git@github.com:yegor256/jekyll-git-hash.git' '--env=tag=0.1.1' '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:yegor256/jekyll-git-hash.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=0.1.1'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=yegor256'\''\'\'''\'''\'' '\'';'\'' '\''pdd -f /dev/null'\'' '\'';'\'' '\''bundle install --no-color'\'' '\'';'\'' '\''bundle exec rake'\'' '\'';'\'' '\''rm -rf *.gem'\'' '\'';'\'' '\''sed -i "s/0\.0\.0/${tag}/g" jekyll-git-hash.gemspec'\'' '\'';'\'' '\''git add jekyll-git-hash.gemspec'\'' '\'';'\'' '\''git commit -m "version set to ${tag}"'\'' '\'';'\'' '\''gem build jekyll-git-hash.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/jekyll-git-hash.git'\''' ';' 'export '\''tag=0.1.1'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''author=yegor256'\''' ';' 'pdd -f /dev/null' ';' 'bundle install --no-color' ';' 'bundle exec rake' ';' 'rm -rf *.gem' ';' 'sed -i "s/0\.0\.0/${tag}/g" jekyll-git-hash.gemspec' ';' 'git add jekyll-git-hash.gemspec' ';' 'git commit -m "version set to ${tag}"' ';' 'gem build jekyll-git-hash.gemspec' ';' 'chmod 0600 ../rubygems.yml' ';' 'gem push *.gem --config-file ../rubygems.yml' ';')
+ directory=
+ container=yegor256_jekyll-git-hash_28
+ as_root=false
+ hostname
b3.rultor.com
+ pwd
/tmp/rultor-lSh0
+ git --version
git version 2.34.1
+ docker --version
Docker version 24.0.5, build 24.0.5-0ubuntu1~22.04.1
+ 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/jekyll-git-hash.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/jekyll-git-hash.git'\''' ']'
+ cd ..
+ cat
+ '[' false = true ']'
+ cat
+ chmod a+x entry.sh
+ cat
+ echo 'export '\''head=git@github.com:yegor256/jekyll-git-hash.git'\''' ';' 'export '\''tag=0.1.1'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''author=yegor256'\''' ';' 'pdd -f /dev/null' ';' 'bundle install --no-color' ';' 'bundle exec rake' ';' 'rm -rf *.gem' ';' 'sed -i "s/0\.0\.0/${tag}/g" jekyll-git-hash.gemspec' ';' 'git add jekyll-git-hash.gemspec' ';' 'git commit -m "version set to ${tag}"' ';' 'gem build jekyll-git-hash.gemspec' ';' 'chmod 0600 ../rubygems.yml' ';' 'gem push *.gem --config-file ../rubygems.yml' ';'
+ sensitive=()
+ rm -rf .gnupg
+ '[' -z 0.1.1 ']'
+ [[ 0.1.1 =~ ^[a-zA-Z0-9\.\-]+$ ]]
+ echo 'tag name is valid: "0.1.1"'
tag name is valid: "0.1.1"
+ cd repo
++ git tag -l 0.1.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.29
++ echo 0.29 '>' 30
++ bc
./run.sh: line 108: bc: command not found
+ '[' -eq 1 ']'
./run.sh: line 108: [: -eq: unary operator expected
+ echo 'load average is 0.29, low enough to run a new Docker container'
load average is 0.29, low enough to run a new Docker container
+ break
+ cd ..
+ '[' -n '' ']'
+ use_image=yegor256/rultor-image:1.22.0
+ docker pull yegor256/rultor-image:1.22.0
1.22.0: Pulling from yegor256/rultor-image
Digest: sha256:0e360fba8fb992c4c6cb495ddefdf5ecbc0f3edb887dd12deefd4af4b2a13272
Status: Image is up to date for yegor256/rultor-image:1.22.0
docker.io/yegor256/rultor-image:1.22.0
+ docker ps --filter=status=exited
+ grep --quiet '\syegor256_jekyll-git-hash_28\s*$'
+ ls -al .
total 48
drwx------ 3 rultor rultor 4096 Feb 6 07:38 .
drwxrwxrwt 14 root root 4096 Feb 6 07:38 ..
-rwxrwxr-x 1 rultor rultor 556 Feb 6 07:38 end.sh
-rwxrwxr-x 1 rultor rultor 466 Feb 6 07:38 entry.sh
-rw-rw-r-- 1 rultor rultor 7 Feb 6 07:38 pid
drwxrwxr-x 5 rultor rultor 4096 Feb 6 07:38 repo
-rw-rw-r-- 1 rultor rultor 81 Feb 6 07:38 rubygems.yml
-rwxrwxr-x 1 rultor rultor 6018 Feb 6 07:38 run.sh
-rw-rw-r-- 1 rultor rultor 638 Feb 6 07:38 script.sh
-rw-rw-r-- 1 rultor rultor 4257 Feb 6 07:38 stdout
++ pwd
++ pwd
+ docker run -t --rm -v /tmp/rultor-lSh0:/main --env=head=git@github.com:yegor256/jekyll-git-hash.git --env=tag=0.1.1 '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:yegor256/jekyll-git-hash.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=0.1.1'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=yegor256'\''\'\'''\'''\'' '\'';'\'' '\''pdd -f /dev/null'\'' '\'';'\'' '\''bundle install --no-color'\'' '\'';'\'' '\''bundle exec rake'\'' '\'';'\'' '\''rm -rf *.gem'\'' '\'';'\'' '\''sed -i "s/0\.0\.0/${tag}/g" jekyll-git-hash.gemspec'\'' '\'';'\'' '\''git add jekyll-git-hash.gemspec'\'' '\'';'\'' '\''git commit -m "version set to ${tag}"'\'' '\'';'\'' '\''gem build jekyll-git-hash.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-lSh0/cid -w=/main -v /var/run/docker.sock:/var/run/docker.sock --name=yegor256_jekyll-git-hash_28 yegor256/rultor-image:1.22.0 /main/entry.sh
WARNING: Your kernel does not support OomKillDisable. OomKillDisable discarded.
Using /usr/local/rvm/gems/ruby-3.2.2
Using /usr/local/rvm/gems/ruby-3.2.2
+ set -e
+ set -o pipefail
+ shopt -s dotglob
+ useradd -m -G sudo r
++ cat /etc/group
++ awk -F : '$3 > 100 { print $1 }'
+ for g in $(cat /etc/group | awk -F ':' '$3 > 100 { print $1 }')
+ usermod -a -G nogroup r
+ for g in $(cat /etc/group | awk -F ':' '$3 > 100 { print $1 }')
+ usermod -a -G systemd-journal r
+ for g in $(cat /etc/group | awk -F ':' '$3 > 100 { print $1 }')
+ usermod -a -G systemd-network r
+ for g in $(cat /etc/group | awk -F ':' '$3 > 100 { print $1 }')
+ usermod -a -G systemd-resolve r
+ for g in $(cat /etc/group | awk -F ':' '$3 > 100 { print $1 }')
+ usermod -a -G messagebus r
+ for g in $(cat /etc/group | awk -F ':' '$3 > 100 { print $1 }')
+ usermod -a -G systemd-timesync r
+ for g in $(cat /etc/group | awk -F ':' '$3 > 100 { print $1 }')
+ usermod -a -G _ssh r
+ for g in $(cat /etc/group | awk -F ':' '$3 > 100 { print $1 }')
+ usermod -a -G rvm r
+ for g in $(cat /etc/group | awk -F ':' '$3 > 100 { print $1 }')
+ usermod -a -G ssl-cert r
+ for g in $(cat /etc/group | awk -F ':' '$3 > 100 { print $1 }')
+ usermod -a -G postgres r
+ for g in $(cat /etc/group | awk -F ':' '$3 > 100 { print $1 }')
+ usermod -a -G r r
+ usermod -s /bin/bash r
+ echo '%sudo ALL=(ALL) NOPASSWD:ALL'
+ cp -R /root/.bashrc /root/.cargo /root/.config /root/.gem /root/.gemrc /root/.launchpadlib /root/.m2 /root/.npm /root/.profile /root/.rustup /root/.rvmrc /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
Using /usr/local/rvm/gems/ruby-3.2.2
Using /usr/local/rvm/gems/ruby-3.2.2
Using /usr/local/rvm/gems/ruby-3.2.2
Using /usr/local/rvm/gems/ruby-3.2.2
Found 7 lines in /home/r/repo/.pdd
My version is 0.23.1
Ruby version is 3.2.2 at x86_64-linux
Reading from root dir .
Excluding target/**/*
Excluding src/main/resources/images/**/*
/usr/local/rvm/gems/ruby-3.2.2/gems/pdd-0.23.1/lib/pdd/sources.rb:90: warning: undefining the allocator of T_DATA class FileMagic
/home/r/repo/renovate.json is a binary file (204 bytes)
Reading .0pdd.yml ...
Reading .github/workflows/rake.yml ...
Reading .gitignore ...
Reading .pdd ...
Reading .rubocop.yml ...
Reading .rultor.yml ...
Reading Gemfile ...
Reading LICENSE.txt ...
Reading README.md ...
Reading Rakefile ...
Reading jekyll-git-hash.gemspec ...
Reading lib/jekyll-git-hash.rb ...
Fetching gem metadata from https://rubygems.org/............
Resolving dependencies...
Fetching rake 13.1.0
Installing rake 13.1.0
Fetching ast 2.4.2
Fetching colorator 1.1.0
Fetching rb-fsevent 0.11.2
Fetching public_suffix 5.0.4
Using bundler 2.4.10
Fetching liquid 4.0.4
Fetching rexml 3.2.6
Fetching eventmachine 1.2.7
Fetching concurrent-ruby 1.2.3
Fetching ffi 1.16.3
Fetching http_parser.rb 0.8.0
Fetching forwardable-extended 2.6.0
Fetching google-protobuf 3.25.2 (x86_64-linux)
Installing colorator 1.1.0
Installing ast 2.4.2
Installing rb-fsevent 0.11.2
Installing liquid 4.0.4
Installing public_suffix 5.0.4
Installing rexml 3.2.6
Installing forwardable-extended 2.6.0
Installing eventmachine 1.2.7 with native extensions
Installing concurrent-ruby 1.2.3
Fetching mercenary 0.4.0
Fetching rouge 4.2.0
Installing mercenary 0.4.0
Installing http_parser.rb 0.8.0 with native extensions
Fetching safe_yaml 1.0.5
Installing safe_yaml 1.0.5
Fetching unicode-display_width 2.5.0
Installing unicode-display_width 2.5.0
Fetching webrick 1.8.1
Installing webrick 1.8.1
Installing google-protobuf 3.25.2 (x86_64-linux)
Installing rouge 4.2.0
Fetching json 2.7.1
Fetching language_server-protocol 3.17.0.3
Fetching parallel 1.24.0
Installing ffi 1.16.3 with native extensions
Installing json 2.7.1 with native extensions
Installing parallel 1.24.0
Installing language_server-protocol 3.17.0.3
Fetching racc 1.7.3
Installing racc 1.7.3 with native extensions
Using rainbow 3.1.1
Fetching regexp_parser 2.9.0
Fetching ruby-progressbar 1.13.0
Fetching pathutil 0.16.2
Installing regexp_parser 2.9.0
Installing ruby-progressbar 1.13.0
Installing pathutil 0.16.2
Fetching addressable 2.8.6
Fetching kramdown 2.4.0
Fetching terminal-table 3.0.2
Installing addressable 2.8.6
Installing terminal-table 3.0.2
Installing kramdown 2.4.0
Fetching i18n 1.14.1
Installing i18n 1.14.1
Fetching sass-embedded 1.70.0 (x86_64-linux-gnu)
Fetching parser 3.3.0.5
Installing parser 3.3.0.5
Fetching kramdown-parser-gfm 1.1.0
Installing sass-embedded 1.70.0 (x86_64-linux-gnu)
Installing kramdown-parser-gfm 1.1.0
Fetching rubocop-ast 1.30.0
Installing rubocop-ast 1.30.0
Fetching jekyll-sass-converter 3.0.0
Installing jekyll-sass-converter 3.0.0
Fetching rubocop 1.59.0
Installing rubocop 1.59.0
Fetching rubocop-factory_bot 2.25.1
Fetching rubocop-capybara 2.20.0
Installing rubocop-capybara 2.20.0
Installing rubocop-factory_bot 2.25.1
Fetching rubocop-rspec 2.25.0
Installing rubocop-rspec 2.25.0
Fetching rb-inotify 0.10.1
Installing rb-inotify 0.10.1
Fetching listen 3.8.0
Installing listen 3.8.0
Fetching jekyll-watch 2.2.1
Installing jekyll-watch 2.2.1
Fetching em-websocket 0.5.3
Installing em-websocket 0.5.3
Fetching jekyll 4.3.3
Installing jekyll 4.3.3
Using jekyll-git-hash 0.0.0 from source at `.`
Bundle complete! 4 Gemfile dependencies, 46 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Running RuboCop...
Inspecting 4 files
32m.0m32m.0m32m.0m32m.0m
4 files inspected, 32mno offenses0m detected
grep -q -r '2014-2024' --include '*.rb' --include '*.txt' --include 'Rakefile' .
[__rultor d1e2c69] version set to 0.1.1
1 file changed, 1 insertion(+), 1 deletion(-)
WARNING: open-ended dependency on jekyll (>= 3.9.2) is not recommended
if jekyll is semantically versioned, use:
add_runtime_dependency 'jekyll', '~> 3.9', '>= 3.9.2'
WARNING: See https://guides.rubygems.org/specification-reference/ for help
Successfully built RubyGem
Name: jekyll-git-hash
Version: 0.1.1
File: jekyll-git-hash-0.1.1.gem
Pushing gem to https://rubygems.org...
Successfully registered gem: jekyll-git-hash (0.1.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.1.1 -m '0.1.1: tagged by rultor.com'
+ git reset --hard
HEAD is now at d1e2c69 version set to 0.1.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 d1e2c69).
+ git push --all origin
Everything up-to-date
+ git push --tags origin
To github.com:yegor256/jekyll-git-hash.git
* [new tag] 0.1.1 -> 0.1.1
container 4d9784eee71c949e72625680fe636c5ad306321165a6f1e691f6307c4efd0ff4 is dead
Tue Feb 6 07:39:47 AM CET 2024