+ set -e + set -o pipefail ++ dirname ./run.sh + cd . + echo 1574177 + echo '1.75.2 993731016' 1.75.2 993731016 + date Thu Feb 8 12:26:22 AM CET 2024 + uptime 00:26:22 up 147 days, 4:40, 0 users, load average: 0.01, 0.03, 0.09 + ff=default + image=yegor256/rultor-image:1.19.0 + rebase=false + head_branch=master + pull_title='Update dependency minitest to v5.22.2' + author=yegor256 + directory= + head=git@github.com:yegor256/hoc.git + pull_id=54 + fork=git@github.com:yegor256/hoc.git + fork_branch=renovate/minitest-5.x + squash=false + vars=('--env=head=git@github.com:yegor256/hoc.git' '--env=pull_id=54' '--env=fork=git@github.com:yegor256/hoc.git' '--env=fork_branch=renovate/minitest-5.x' '--env=head_branch=master' '--env=pull_title=Update dependency minitest to v5.22.2' '--env=author=yegor256' '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:yegor256/hoc.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_id=54'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''fork=git@github.com:yegor256/hoc.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''fork_branch=renovate/minitest-5.x'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_title=Update dependency minitest to v5.22.2'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=yegor256'\''\'\'''\'''\'' '\'';'\'' '\''pdd -f /dev/null'\'' '\'';'\'' '\''sudo bundle install --no-color "--gemfile=$(pwd)/Gemfile"'\'' '\'';'\'' '\''sudo apt-get update --fix-missing'\'' '\'';'\'' '\''sudo apt-get install -y subversion diffstat'\'' '\'';'\'' '\''sudo apt-get install -y software-properties-common'\'' '\'';'\'' '\''sudo add-apt-repository -y ppa:git-core/ppa'\'' '\'';'\'' '\''sudo apt-get update --fix-missing'\'' '\'';'\'' '\''sudo apt-get remove -y git'\'' '\'';'\'' '\''sudo apt-get install -y git'\'' '\'';'\'' '\''bundle exec rake'\'' '\'';'\'' )') + scripts=('export '\''head=git@github.com:yegor256/hoc.git'\''' ';' 'export '\''pull_id=54'\''' ';' 'export '\''fork=git@github.com:yegor256/hoc.git'\''' ';' 'export '\''fork_branch=renovate/minitest-5.x'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''pull_title=Update dependency minitest to v5.22.2'\''' ';' 'export '\''author=yegor256'\''' ';' 'pdd -f /dev/null' ';' 'sudo bundle install --no-color "--gemfile=$(pwd)/Gemfile"' ';' 'sudo apt-get update --fix-missing' ';' 'sudo apt-get install -y subversion diffstat' ';' 'sudo apt-get install -y software-properties-common' ';' 'sudo add-apt-repository -y ppa:git-core/ppa' ';' 'sudo apt-get update --fix-missing' ';' 'sudo apt-get remove -y git' ';' 'sudo apt-get install -y git' ';' 'bundle exec rake' ';') + container=yegor256_hoc_54 + as_root=false + hostname b3.rultor.com + pwd /tmp/rultor-ajGC + 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/hoc.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/hoc.git'\''' ']' + cd .. + cat + '[' false = true ']' + cat + chmod a+x entry.sh + cat + echo 'export '\''head=git@github.com:yegor256/hoc.git'\''' ';' 'export '\''pull_id=54'\''' ';' 'export '\''fork=git@github.com:yegor256/hoc.git'\''' ';' 'export '\''fork_branch=renovate/minitest-5.x'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''pull_title=Update dependency minitest to v5.22.2'\''' ';' 'export '\''author=yegor256'\''' ';' 'pdd -f /dev/null' ';' 'sudo bundle install --no-color "--gemfile=$(pwd)/Gemfile"' ';' 'sudo apt-get update --fix-missing' ';' 'sudo apt-get install -y subversion diffstat' ';' 'sudo apt-get install -y software-properties-common' ';' 'sudo add-apt-repository -y ppa:git-core/ppa' ';' 'sudo apt-get update --fix-missing' ';' 'sudo apt-get remove -y git' ';' 'sudo apt-get install -y git' ';' 'bundle exec rake' ';' + sensitive=() + rm -rf .gnupg + cd repo + git remote add fork git@github.com:yegor256/hoc.git + git remote update Fetching origin Fetching fork From github.com:yegor256/hoc * [new branch] master -> fork/master * [new branch] renovate/actions-checkout-4.x -> fork/renovate/actions-checkout-4.x * [new branch] renovate/minitest-5.x -> fork/renovate/minitest-5.x * [new branch] renovate/rdoc-6.x -> fork/renovate/rdoc-6.x * [new branch] renovate/rubocop-1.x -> fork/renovate/rubocop-1.x * [new branch] renovate/rubocop-rspec-2.x -> fork/renovate/rubocop-rspec-2.x + args= + '[' default == default ']' + args=' --ff' + '[' default == no ']' + '[' default == only ']' + export BRANCH=__rultor + BRANCH=__rultor ++ git show-branch __rultor ++ wc -l + '[' 0 -gt 0 ']' + git status On branch master Your branch is up to date with 'origin/master'. nothing to commit, working tree clean + git checkout -B __rultor fork/renovate/minitest-5.x Switched to a new branch '__rultor' Branch '__rultor' set up to track remote branch 'renovate/minitest-5.x' from 'fork'. + git checkout -B master origin/master Switched to and reset branch 'master' Branch 'master' set up to track remote branch 'master' from 'origin'. Your branch is up to date with 'origin/master'. + '[' false == true ']' + '[' false == true ']' + git merge --ff __rultor Updating c507182..d1a5600 Fast-forward Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) + docker_when_possible + true ++ uptime ++ sed 's/ /\n/g' ++ tail -n 1 + load=0.09 ++ echo 0.09 '>' 30 ++ bc + '[' 0 -eq 1 ']' + echo 'load average is 0.09, low enough to run a new Docker container' load average is 0.09, low enough to run a new Docker container + break + cd .. + '[' -n '' ']' + use_image=yegor256/rultor-image:1.19.0 + docker pull yegor256/rultor-image:1.19.0 1.19.0: Pulling from yegor256/rultor-image Digest: sha256:3abc2d287ea632841f3a54781915afe273841dc824f2e59f4525ff96d6358519 Status: Image is up to date for yegor256/rultor-image:1.19.0 docker.io/yegor256/rultor-image:1.19.0 + docker ps --filter=status=exited + grep --quiet '\syegor256_hoc_54\s*$' + ls -al . total 48 drwx------ 3 rultor rultor 4096 Feb 8 00:26 . drwxrwxrwt 15 root root 4096 Feb 8 00:26 .. -rwxrwxr-x 1 rultor rultor 556 Feb 8 00:26 end.sh -rwxrwxr-x 1 rultor rultor 466 Feb 8 00:26 entry.sh -rw-rw-r-- 1 rultor rultor 8 Feb 8 00:26 pid drwxrwxr-x 8 rultor rultor 4096 Feb 8 00:26 repo -rw-rw-r-- 1 rultor rultor 81 Feb 8 00:26 rubygems.yml -rwxrwxr-x 1 rultor rultor 6628 Feb 8 00:26 run.sh -rw-rw-r-- 1 rultor rultor 833 Feb 8 00:26 script.sh -rw-rw-r-- 1 rultor rultor 6250 Feb 8 00:26 stdout ++ pwd ++ pwd + docker run -t --rm -v /tmp/rultor-ajGC:/main --env=head=git@github.com:yegor256/hoc.git --env=pull_id=54 --env=fork=git@github.com:yegor256/hoc.git --env=fork_branch=renovate/minitest-5.x --env=head_branch=master '--env=pull_title=Update dependency minitest to v5.22.2' --env=author=yegor256 '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:yegor256/hoc.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_id=54'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''fork=git@github.com:yegor256/hoc.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''fork_branch=renovate/minitest-5.x'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_title=Update dependency minitest to v5.22.2'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=yegor256'\''\'\'''\'''\'' '\'';'\'' '\''pdd -f /dev/null'\'' '\'';'\'' '\''sudo bundle install --no-color "--gemfile=$(pwd)/Gemfile"'\'' '\'';'\'' '\''sudo apt-get update --fix-missing'\'' '\'';'\'' '\''sudo apt-get install -y subversion diffstat'\'' '\'';'\'' '\''sudo apt-get install -y software-properties-common'\'' '\'';'\'' '\''sudo add-apt-repository -y ppa:git-core/ppa'\'' '\'';'\'' '\''sudo apt-get update --fix-missing'\'' '\'';'\'' '\''sudo apt-get remove -y git'\'' '\'';'\'' '\''sudo apt-get install -y git'\'' '\'';'\'' '\''bundle exec rake'\'' '\'';'\'' )' --hostname=docker --privileged --memory=8g --memory-swap=16g --oom-kill-disable --cidfile=/tmp/rultor-ajGC/cid -w=/main -v /var/run/docker.sock:/var/run/docker.sock --name=yegor256_hoc_54 yegor256/rultor-image:1.19.0 /main/entry.sh WARNING: Your kernel does not support OomKillDisable. OomKillDisable discarded. Using /usr/local/rvm/gems/ruby-3.0.1 Using /usr/local/rvm/gems/ruby-3.0.1 + 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 messagebus 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 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/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.0.1 Using /usr/local/rvm/gems/ruby-3.0.1 33mWarning! PATH is not properly set up, /usr/local/rvm/gems/ruby-3.0.1/bin is not at first place. 0mUsually this is caused by shell initialization files. Search for 34mPATH=...0m entries. You can also re-add RVM to your profile by running: 34mrvm get stable --auto-dotfiles0m To fix it temporarily in this shell session run: 34mrvm use ruby-3.0.10m To ignore this error add 34mrvm_silence_path_mismatch_check_flag=10m to your 34m~/.rvmrc0m file.0m 0mUsing /usr/local/rvm/gems/ruby-3.0.1 Using /usr/local/rvm/gems/ruby-3.0.1 Found 7 lines in /home/r/repo/.pdd My version is 0.23.1 Ruby version is 3.0.1 at x86_64-linux Reading from root dir . Excluding target/**/* Excluding src/main/resources/images/**/* /home/r/repo/renovate.json is a binary file (107 bytes) Reading .0pdd.yml ... Reading .gitattributes ... Reading .github/workflows/codecov.yml ... Reading .github/workflows/pdd.yml ... Reading .github/workflows/rake.yml ... Reading .github/workflows/xcop.yml ... Reading .gitignore ... Reading .pdd ... Reading .rubocop.yml ... Reading .rultor.yml ... Reading .simplecov ... Reading .travis.yml ... Reading Gemfile ... Reading LICENSE.txt ... Reading README.md ... Reading Rakefile ... Reading appveyor.yml ... Reading bin/hoc ... Reading cucumber.yml ... Reading features/cli.feature ... Reading features/gem_package.feature ... Reading features/git_basics.feature ... Reading features/git_excludes.feature ... Reading features/step_definitions/steps.rb ... Reading features/support/env.rb ... Reading features/svn_basics.feature ... Reading features/uses_config.feature ... Reading hoc.gemspec ... Reading lib/hoc/git.rb ... Reading lib/hoc/hits.rb ... Reading lib/hoc/svn.rb ... Reading lib/hoc/version.rb ... Reading lib/hoc.rb ... Reading test/test__helper.rb ... Reading test/test_git.rb ... Reading test/test_hoc.rb ... Reading test/test_svn.rb ... Using /usr/local/rvm/gems/ruby-3.0.1 Using /usr/local/rvm/gems/ruby-3.0.1 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/......... Resolving dependencies... Fetching rake 13.1.0 Installing rake 13.1.0 Using bundler 2.3.26 Fetching cucumber-messages 22.0.0 Fetching cucumber-cucumber-expressions 17.0.1 Fetching ffi 1.16.3 Using slop 4.10.1 Fetching json 2.7.1 Fetching cucumber-ci-environment 9.2.0 Fetching mini_mime 1.1.5 Fetching multi_test 1.1.0 Fetching cucumber-tag-expressions 5.0.6 Fetching docile 1.4.0 Fetching builder 3.2.4 Fetching diff-lcs 1.5.1 Fetching ast 2.4.2 Installing cucumber-cucumber-expressions 17.0.1 Installing cucumber-ci-environment 9.2.0 Installing cucumber-messages 22.0.0 Installing json 2.7.1 with native extensions Installing cucumber-tag-expressions 5.0.6 Installing ast 2.4.2 Installing mini_mime 1.1.5 Installing docile 1.4.0 Installing builder 3.2.4 Installing multi_test 1.1.0 Installing diff-lcs 1.5.1 Fetching minitest 5.22.2 Installing ffi 1.16.3 with native extensions Installing minitest 5.22.2 Fetching parallel 1.24.0 Installing parallel 1.24.0 Fetching racc 1.7.3 Fetching stringio 3.1.0 Using rainbow 3.1.1 Fetching regexp_parser 2.9.0 Fetching rexml 3.2.6 Installing stringio 3.1.0 with native extensions Installing racc 1.7.3 with native extensions Fetching ruby-progressbar 1.13.0 Fetching unicode-display_width 2.5.0 Fetching simplecov-html 0.12.3 Fetching simplecov_json_formatter 0.1.4 Using hoc 1.0.snapshot from source at `.` and installing its executables Installing ruby-progressbar 1.13.0 Installing regexp_parser 2.9.0 Installing unicode-display_width 2.5.0 Installing rexml 3.2.6 Installing simplecov_json_formatter 0.1.4 Fetching cucumber-gherkin 26.2.0 Installing cucumber-gherkin 26.2.0 Fetching cucumber-html-formatter 21.2.0 Installing simplecov-html 0.12.3 Installing cucumber-html-formatter 21.2.0 Fetching cucumber-core 12.0.0 Installing cucumber-core 12.0.0 Fetching simplecov 0.22.0 Installing simplecov 0.22.0 Fetching parser 3.3.0.5 Fetching psych 5.1.2 Installing psych 5.1.2 with native extensions Installing parser 3.3.0.5 Fetching rubocop-ast 1.30.0 Installing rubocop-ast 1.30.0 Fetching rubocop 1.52.1 Installing rubocop 1.52.1 Fetching rubocop-factory_bot 2.25.1 Fetching rubocop-capybara 2.20.0 Installing rubocop-factory_bot 2.25.1 Installing rubocop-capybara 2.20.0 Fetching rdoc 6.6.1 Fetching rubocop-rspec 2.25.0 Installing rubocop-rspec 2.25.0 Installing rdoc 6.6.1 Fetching sys-uname 1.2.3 Installing sys-uname 1.2.3 Fetching cucumber 9.1.2 Installing cucumber 9.1.2 Bundle complete! 8 Gemfile dependencies, 41 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. Using /usr/local/rvm/gems/ruby-3.0.1 Using /usr/local/rvm/gems/ruby-3.0.1 Get:1ohttp://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB] Hit:2ahttp://archive.ubuntu.com/ubuntuhjammysInRelease1 InRelease 1,138 B/110 k Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB] Get:4 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease [18.1 kB] Get:5 https://ppa.launchpadcontent.net/git-core/ppa/ubuntu jammy InRelease [23.8 kB] Get:6 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease [23.9 kB] Get:7ahttp://archive.ubuntu.com/ubuntu2jammy-backports1InRelease [109 kB] Get:8ahttp://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [1,746 kB] Get:9ahttp://archive.ubuntu.com/ubuntu5jammy-updates/main amd64 Packages [1,723 kB] Get:10Phttps://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy/mainiamd64fPackages [28.2 kB] Get:11Phttps://ppa.launchpadcontent.net/git-core/ppa/ubuntu6jammy/mainsamd64kPackages [2,961 B] Get:12Phttps://ppa.launchpadcontent.net/ondrej/php/ubuntu,jammy/maingamd64.Packages [204 kB] Get:13Phttp://archive.ubuntu.com/ubuntu4jammy-updates/universekamd64]PackagesB[1,334 kB] Get:143http://archive.ubuntu.com/ubuntu8jammy-updates/restrictedaamd64ePackages [1,800 kB] Get:154http://security.ubuntu.com/ubuntuajammy-security/universeaamd64fPackages [1,064 kB] Get:16ahttp://archive.ubuntu.com/ubuntu8jammy-updates/multiverse amd64]Packages [50.4 kB] Get:174http://archive.ubuntu.com/ubunturjammy-backports/universe8amd641Packages [28.1 kB] Get:184http://archive.ubuntu.com/ubunturjammy-backports/maineamd64 Packages [50.4 kB] Get:195http://security.ubuntu.com/ubuntu jammy-security/multiversePamd64ePackages [44.6 kB] Get:20ahttp://security.ubuntu.com/ubuntu jammy-security/main]amd64 Packages [1,436 kB] Fetchedo9,916]kBsint5se(1,9816kB/s)%] Reading package lists... Done Using /usr/local/rvm/gems/ruby-3.0.1 Using /usr/local/rvm/gems/ruby-3.0.1 Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: libserf-1-1 libsvn1 libutf8proc2 Suggested packages: db5.3-util libapache2-mod-svn subversion-tools The following NEW packages will be installed: diffstat libserf-1-1 libsvn1 libutf8proc2 subversion 0 upgraded, 5 newly installed, 0 to remove and 223 not upgraded. Need to get 2,500 kB of archives. After this operation, 10.0 MB of additional disk space will be used. Get:1ohttp://archive.ubuntu.com/ubuntu jammy/main amd64 diffstat amd64 1.64-1build2 [29.2 kB] Get:2ohttp://archive.ubuntu.com/ubuntu jammy/universe amd64 libserf-1-1 amd64 1.3.9-10ubuntu2 [50.0 kB] Get:3Whttp://archive.ubuntu.com/ubuntu jammy/universe amd64 libutf8proc2 amd64 2.7.0-3 [73.9 kB] Get:4Whttp://archive.ubuntu.com/ubuntu]jammy-updates/universe amd64 libsvn1 amd64 1.14.1-3ubuntu0.22.04.1 [1,387 kB] Get:5Whttp://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 subversion amd64 1.14.1-3ubuntu0.22.04.1 [960 kB] Fetchedo2,500]kBnin,1s5(2,091 kB/s)] debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package diffstat. (Reading database ... 96115 files and directories currently installed.) Preparing to unpack .../diffstat_1.64-1build2_amd64.deb ... Unpacking diffstat (1.64-1build2) ... Selecting previously unselected package libserf-1-1:amd64. Preparing to unpack .../libserf-1-1_1.3.9-10ubuntu2_amd64.deb ... Unpacking libserf-1-1:amd64 (1.3.9-10ubuntu2) ... Selecting previously unselected package libutf8proc2:amd64. Preparing to unpack .../libutf8proc2_2.7.0-3_amd64.deb ... Unpacking libutf8proc2:amd64 (2.7.0-3) ... Selecting previously unselected package libsvn1:amd64. Preparing to unpack .../libsvn1_1.14.1-3ubuntu0.22.04.1_amd64.deb ... Unpacking libsvn1:amd64 (1.14.1-3ubuntu0.22.04.1) ... Selecting previously unselected package subversion. Preparing to unpack .../subversion_1.14.1-3ubuntu0.22.04.1_amd64.deb ... Unpacking subversion (1.14.1-3ubuntu0.22.04.1) ... Setting up libutf8proc2:amd64 (2.7.0-3) ... Setting up libserf-1-1:amd64 (1.3.9-10ubuntu2) ... Setting up diffstat (1.64-1build2) ... Setting up libsvn1:amd64 (1.14.1-3ubuntu0.22.04.1) ... Setting up subversion (1.14.1-3ubuntu0.22.04.1) ... Processing triggers for libc-bin (2.35-0ubuntu3.1) ... Processing triggers for man-db (2.10.2-1) ... Using /usr/local/rvm/gems/ruby-3.0.1 Using /usr/local/rvm/gems/ruby-3.0.1 Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: python3-software-properties The following packages will be upgraded: python3-software-properties software-properties-common 2 upgraded, 0 newly installed, 0 to remove and 221 not upgraded. Need to get 42.9 kB of archives. After this operation, 5,120 B of additional disk space will be used. Get:1ohttp://archive.ubuntu.com/ubuntu jammy-updates/main amd64 software-properties-common all 0.99.22.9 [14.1 kB] Get:2Whttp://archive.ubuntu.com/ubuntu2jammy-updates/main amd64 python3-software-properties all 0.99.22.9 [28.8 kB] Fetchedo42.9gkBsint1sr(73.7pkB/s)s 2,606 B/28.8 kB 9%] debconf: delaying package configuration, since apt-utils is not installed (Reading database ... 96241 files and directories currently installed.) Preparing to unpack .../software-properties-common_0.99.22.9_all.deb ... Unpacking software-properties-common (0.99.22.9) over (0.99.22.6) ... Preparing to unpack .../python3-software-properties_0.99.22.9_all.deb ... Unpacking python3-software-properties (0.99.22.9) over (0.99.22.6) ... Setting up python3-software-properties (0.99.22.9) ... Setting up software-properties-common (0.99.22.9) ... Processing triggers for man-db (2.10.2-1) ... Processing triggers for dbus (1.12.20-2ubuntu4.1) ... Using /usr/local/rvm/gems/ruby-3.0.1 Using /usr/local/rvm/gems/ruby-3.0.1 PPA publishes dbgsym, you may need to include 'main/debug' component Repository: 'deb https://ppa.launchpadcontent.net/git-core/ppa/ubuntu/ jammy main' Description: The most current stable version of Git for Ubuntu. For release candidates, go to https://launchpad.net/~git-core/+archive/candidate . More info: https://launchpad.net/~git-core/+archive/ubuntu/ppa Adding repository. Found existing deb entry in /etc/apt/sources.list.d/git-core-ubuntu-ppa-jammy.list Adding deb entry to /etc/apt/sources.list.d/git-core-ubuntu-ppa-jammy.list Found existing deb-src entry in /etc/apt/sources.list.d/git-core-ubuntu-ppa-jammy.list Adding disabled deb-src entry to /etc/apt/sources.list.d/git-core-ubuntu-ppa-jammy.list Adding key to /etc/apt/trusted.gpg.d/git-core-ubuntu-ppa.gpg with fingerprint E1DD270288B4E6030699E45FA1715D88E1DF1F24 Hit:1ohttps://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease Hit:2ahttps://ppa.launchpadcontent.net/git-core/ppa/ubuntu jammy InRelease Hit:3ahttp://archive.ubuntu.com/ubuntuhjammysInRelease Hit:4ahttps://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease Hit:5ahttp://security.ubuntu.com/ubuntuejammy-security InRelease Hit:6ahttp://archive.ubuntu.com/ubuntu jammy-updates InRelease Hit:7ahttp://archive.ubuntu.com/ubuntu jammy-backports InRelease Readingrpackage lists... Done Using /usr/local/rvm/gems/ruby-3.0.1 Using /usr/local/rvm/gems/ruby-3.0.1 Hit:1ohttps://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease Hit:2ahttps://ppa.launchpadcontent.net/git-core/ppa/ubuntu jammy InRelease Hit:3ahttps://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease Hit:4ahttp://security.ubuntu.com/ubuntuejammy-security InRelease Hit:5ahttp://archive.ubuntu.com/ubuntu jammy InRelease Hit:6ahttp://archive.ubuntu.com/ubuntu jammy-updates InRelease Hit:7ahttp://archive.ubuntu.com/ubuntu jammy-backports InRelease Readingrpackage lists... Done Using /usr/local/rvm/gems/ruby-3.0.1 Using /usr/local/rvm/gems/ruby-3.0.1 Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: git-man less liberror-perl Use 'sudo apt autoremove' to remove them. The following packages will be REMOVED: git 0 upgraded, 0 newly installed, 1 to remove and 220 not upgraded. After this operation, 30.0 MB disk space will be freed. (Reading database ... 96241 files and directories currently installed.) Removing git (1:2.40.0-0ppa1~ubuntu22.04.1) ... Using /usr/local/rvm/gems/ruby-3.0.1 Using /usr/local/rvm/gems/ruby-3.0.1 Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: git-man Suggested packages: git-daemon-run | git-daemon-sysvinit git-doc git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn The following NEW packages will be installed: git The following packages will be upgraded: git-man 1 upgraded, 1 newly installed, 0 to remove and 219 not upgraded. Need to get 8,574 kB of archives. After this operation, 31.5 MB of additional disk space will be used. Get:1ohttps://ppa.launchpadcontent.net/git-core/ppa/ubuntu jammy/main amd64 git-man all 1:2.43.0-0ppa1~ubuntu22.04.1 [2,139 kB] Get:2Whttps://ppa.launchpadcontent.net/git-core/ppa/ubuntu jammy/main amd64 git amd64 1:2.43.0-0ppa1~ubuntu22.04.1 [6,435 kB] Fetchedo8,574]kBkin/2s4(5,5124kB/s) debconf: delaying package configuration, since apt-utils is not installed (Reading database ... 95359 files and directories currently installed.) Preparing to unpack .../git-man_1%3a2.43.0-0ppa1~ubuntu22.04.1_all.deb ... Unpacking git-man (1:2.43.0-0ppa1~ubuntu22.04.1) over (1:2.40.0-0ppa1~ubuntu22.04.1) ... Selecting previously unselected package git. Preparing to unpack .../git_1%3a2.43.0-0ppa1~ubuntu22.04.1_amd64.deb ... Unpacking git (1:2.43.0-0ppa1~ubuntu22.04.1) ... Setting up git-man (1:2.43.0-0ppa1~ubuntu22.04.1) ... Setting up git (1:2.43.0-0ppa1~ubuntu22.04.1) ... Processing triggers for man-db (2.10.2-1) ... WARNING: consider using an array rather than a space-delimited string with cucumber_opts to avoid undesired behavior. rm -rf coverage /usr/local/rvm/rubies/ruby-3.0.1/bin/ruby -w -I"lib:lib:test" /usr/local/rvm/gems/ruby-3.0.1/gems/rake-13.1.0/lib/rake/rake_test_loader.rb "test/test__helper.rb" "test/test_git.rb" "test/test_hoc.rb" "test/test_svn.rb" /home/r/repo/hoc.gemspec:36: warning: global variable `$RS' not initialized Warning: Error occurred while trying to load /home/r/repo/.simplecov. Error message: cannot load such file -- coveralls Did you mean? coverage Run options: --seed 5474 # Running: 65536+0 records in 65536+0 records out 65536 bytes (66 kB, 64 KiB) copied, 0.169443 s, 387 kB/s 65536+0 records in 65536+0 records out 65536 bytes (66 kB, 64 KiB) copied, 0.16092 s, 407 kB/s .+ cd /tmp/test20240207-4986-wkfbf7 + git init --quiet . + git config user.email test@zerocracy.com + git config user.name test + echo hello, world! + git add test.txt + git commit -qam add line + echo good bye, world! + git commit -qam modify line + rm test.txt + git add test.txt + git commit -qam delete line .fatal: your current branch 'master' does not have any commits yet .Checked out revision 0. A test.txt Adding test.txt Transmitting file data .done Committing transaction... Committed revision 1. Sending test.txt Transmitting file data .done Committing transaction... Committed revision 2. D test.txt Deleting test.txt Committing transaction... Committed revision 3. Updating '.': At revision 3. .S33mhint: Using 'master' as the name for the initial branch. This default branch namem 33mhint: is subject to change. To configure the initial branch name to use in allm 33mhint: of your new repositories, which will suppress this warning, call:m 33mhint: m 33mhint: git config --global init.defaultBranch <name>m 33mhint: m 33mhint: Names commonly chosen instead of 'master' are 'main', 'trunk' andm 33mhint: 'development'. The just-created branch can be renamed via this command:m 33mhint: m 33mhint: git branch -m <name>m Initialized empty Git repository in /tmp/test20240207-4986-zzx2h8/.git/ [master (root-commit) f277fb6] test 1 file changed, 1 insertion(+) create mode 100644 test.txt .Checked out revision 0. A test.txt Adding test.txt Transmitting file data .done Committing transaction... Committed revision 1. Sending test.txt Transmitting file data .done Committing transaction... Committed revision 2. D test.txt Deleting test.txt Committing transaction... Committed revision 3. Updating '.': At revision 3. ... Finished in 10.520308s, 0.8555 runs/s, 1.1407 assertions/s. 9 runs, 12 assertions, 0 failures, 0 errors, 1 skips You have skipped tests. Run with --verbose for details. Coverage report generated for Unit Tests to /home/r/repo/coverage. 118 / 127 LOC (92.91%) covered. /usr/local/rvm/rubies/ruby-3.0.1/bin/ruby -S bundle exec cucumber --format pretty --no-color --profile travis Warning: Error occurred while trying to load /home/r/repo/.simplecov. Error message: cannot load such file -- coveralls Did you mean? coverage Using the travis profile... Feature: Command Line Processing As a source code writer I want to be able to calculate my hits-of-code metric Scenario: Help can be printed # features/cli.feature:5 When I run bin/hoc with "-h" # features/step_definitions/steps.rb:54 Then Exit code is zero # features/step_definitions/steps.rb:64 And Stdout contains "--format" # features/step_definitions/steps.rb:60 Feature: Gem Package As a source code writer I want to be able to package the Gem into .gem file Scenario: Gem can be packaged # features/gem_package.feature:5 Given It is Unix # features/step_definitions/steps.rb:38 Given I have a "execs.rb" file with content: # features/step_definitions/steps.rb:68 """ #!/usr/bin/env ruby require 'rubygems' spec = Gem::Specification::load('./spec.rb') raise 'no executables' if spec.executables.empty? """ When I run bash: # features/step_definitions/steps.rb:46 """ cd hoc gem build hoc.gemspec gem specification --ruby hoc-*.gem > ../spec.rb cd .. ruby execs.rb """ Then Exit code is zero # features/step_definitions/steps.rb:64 Feature: Git repo processing As a source code writer I want to be able to calculate my hits-of-code metric Scenario: Simple git repo # features/git_basics.feature:5 Given It is Unix # features/step_definitions/steps.rb:38 Given I run bash: # features/step_definitions/steps.rb:46 """ git init --quiet . git config user.email test@zerocracy.com git config user.name test echo 'hello, world!' > test.txt git add test.txt git commit -qam test """ When I run bin/hoc with "-f int" # features/step_definitions/steps.rb:54 Then Exit code is zero # features/step_definitions/steps.rb:64 And Stdout contains "1" # features/step_definitions/steps.rb:60 Scenario: Real git repo # features/git_basics.feature:20 Given I run bash: # features/step_definitions/steps.rb:46 """ git clone --quiet https://github.com/teamed/hoc.git hoc-repo """ When I run bin/hoc with "-f int -d hoc-repo" # features/step_definitions/steps.rb:54 Then Exit code is zero # features/step_definitions/steps.rb:64 Feature: Exclude dirs from Git counting As a source code writer I want to be able to exclude certain files from counting Scenario: Simple git repo # features/git_excludes.feature:5 Given It is Unix # features/step_definitions/steps.rb:38 warning: adding embedded git repository: hoc 33mhint: You've added another git repository inside your current repository.m 33mhint: Clones of the outer repository will not contain the contents ofm 33mhint: the embedded repository and will not know how to obtain it.m 33mhint: If you meant to add a submodule, use:m 33mhint: m 33mhint: git submodule add <url> hocm 33mhint: m 33mhint: If you added this path by mistake, you can remove it from them 33mhint: index with:m 33mhint: m 33mhint: git rm --cached hocm 33mhint: m 33mhint: See "git help submodule" for more information.m Given I run bash: # features/step_definitions/steps.rb:46 """ git init --quiet . git config user.email test@zerocracy.com git config user.name test mkdir x echo 'hello, world!' > x/invalid.txt echo 'hello, world!' > valid.txt git add . git commit -qam test """ When I run bin/hoc with "-e x/** -e a.txt" # features/step_definitions/steps.rb:54 Then Exit code is zero # features/step_definitions/steps.rb:64 And Stdout contains "1" # features/step_definitions/steps.rb:60 Feature: SVN Repo Processing As a source code writer I want to be able to calculate my hits-of-code metric Scenario: Simple SVN repo # features/svn_basics.feature:5 Given It is Unix # features/step_definitions/steps.rb:38 Given I run bash: # features/step_definitions/steps.rb:46 """ svnadmin create base svn co file://$(pwd)/base repo cd repo echo 'Hello, world!' > test.txt svn add test.txt svn ci -m 'first commit' echo 'Bye!' > test.txt svn ci -m 'second commit' svn rm test.txt svn ci -m 'third commit' svn up """ When I run bin/hoc with "-f int -d repo" # features/step_definitions/steps.rb:54 Then Exit code is zero # features/step_definitions/steps.rb:64 Scenario: Real SVN repo # features/svn_basics.feature:24 Given I run bash: # features/step_definitions/steps.rb:46 """ svn co https://svn.apache.org/repos/asf/maven/skins/tags/maven-skins-9/src/site """ When I run bin/hoc with "-f int -d site" # features/step_definitions/steps.rb:54 Then Exit code is zero # features/step_definitions/steps.rb:64 Feature: Using .hoc config file As a source code writer I want to be able to call HOC as a command line tool and configure it via .hoc configuration file Scenario: Simple hoc counting # features/uses_config.feature:6 Given It is Unix # features/step_definitions/steps.rb:38 Given I run bash: # features/step_definitions/steps.rb:46 """ echo '--help' > .hoc """ When I run bin/hoc with "-f int" # features/step_definitions/steps.rb:54 Then Exit code is zero # features/step_definitions/steps.rb:64 And Stdout contains "[options]" # features/step_definitions/steps.rb:60 8 scenarios (8 passed) 32 steps (32 passed) 0m10.690s ┌──────────────────────────────────────────────────────────────────────────────┐ │ Share your Cucumber Report with your team at https://reports.cucumber.io │ │ │ │ Command line option: --publish │ │ Environment variable: CUCUMBER_PUBLISH_ENABLED=true │ │ cucumber.yml: default: --publish │ │ │ │ More information at https://cucumber.io/docs/cucumber/environment-variables/ │ │ │ │ To disable this message, specify CUCUMBER_PUBLISH_QUIET=true or use the │ │ --publish-quiet option. You can also add this to your cucumber.yml: │ │ default: --publish-quiet │ └──────────────────────────────────────────────────────────────────────────────┘ Running RuboCop... Inspecting 16 files 32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m 16 files inspected, 32mno offenses0m detected grep -q -r '2014-2024' --include '*.rb' --include '*.txt' --include 'Rakefile' . + mv /home/r/repo . ++ whoami + chown -R root repo + '[' -n '' ']' ++ whoami + sudo chown -R rultor repo + cd repo + git push origin master To github.com:yegor256/hoc.git c507182..d1a5600 master -> master container faf9a0bf82f1091af64584387022fae1775fab1a553cee5d3e16f9a6f3b8c325 is dead Thu Feb 8 12:31:29 AM CET 2024