Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

an old puzzle #4

Merged
merged 2 commits into from
Jan 23, 2024
Merged

an old puzzle #4

merged 2 commits into from
Jan 23, 2024

Conversation

h1alexbel
Copy link
Contributor

@h1alexbel h1alexbel commented Jan 23, 2024

ref: #1
closes: #3


PR-Codex overview

This PR updates the Ruby version in the workflow and Gemfile and removes XSL resources from the tracehub repository.

Detailed summary

  • Updates the Ruby version in .github/workflows/rake.yml from 3.1.4 to 3.2
  • Updates the Ruby version in Gemfile from ~>3.1.4 to ~>3.2
  • Removes XSL resources from xsl/project/arc.xsl file
  • Removes the commented section related to transferring XSL sheets to a different repository

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@h1alexbel
Copy link
Contributor Author

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Jan 23, 2024

@rultor merge

@h1alexbel OK, I'll try to merge now. You can check the progress of the merge here

@rultor
Copy link
Collaborator

rultor commented Jan 23, 2024

@rultor merge

@h1alexbel Oops, I failed. You can see the full log here (spent 1min)

load average is 0.24, low enough to run a new Docker container
+ break
+ cd ..
+ '[' -n '' ']'
+ use_image=l3r8y/rultor-image:1.0.3
+ docker pull l3r8y/rultor-image:1.0.3
1.0.3: Pulling from l3r8y/rultor-image
Digest: sha256:96e574a7cd73ccce66c990865592cd600d626d3a95f8d4b36b8f6dd9ec61b118
Status: Image is up to date for l3r8y/rultor-image:1.0.3
docker.io/l3r8y/rultor-image:1.0.3
+ docker ps --filter=status=exited
+ grep --quiet '\stracehubpm_vsheets_4\s*$'
+ ls -al .
total 44
drwx------  3 rultor rultor 4096 Jan 23 13:29 .
drwxrwxrwt 14 root   root   4096 Jan 23 13:29 ..
-rwxrwxr-x  1 rultor rultor  556 Jan 23 13:29 end.sh
-rwxrwxr-x  1 rultor rultor  466 Jan 23 13:29 entry.sh
-rw-rw-r--  1 rultor rultor    8 Jan 23 13:29 pid
drwxrwxr-x  6 rultor rultor 4096 Jan 23 13:29 repo
-rwxrwxr-x  1 rultor rultor 5679 Jan 23 13:29 run.sh
-rw-rw-r--  1 rultor rultor  467 Jan 23 13:29 script.sh
-rw-rw-r--  1 rultor rultor 4628 Jan 23 13:29 stdout
++ pwd
++ pwd
+ docker run -t --rm -v /tmp/rultor-dqcP:/main --env=head=git@github.com:tracehubpm/vsheets.git --env=pull_id=4 --env=fork=git@github.com:tracehubpm/vsheets.git --env=fork_branch=chore --env=head_branch=master '--env=pull_title=an old puzzle' --env=author=h1alexbel '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:tracehubpm/vsheets.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_id=4'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''fork=git@github.com:tracehubpm/vsheets.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''fork_branch=chore'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_title=an old puzzle'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=h1alexbel'\''\'\'''\'''\'' '\'';'\'' '\''bundle install'\'' '\'';'\'' '\''bundle exec rake'\'' '\'';'\'' )' --hostname=docker --privileged --memory=8g --memory-swap=16g --oom-kill-disable --cidfile=/tmp/rultor-dqcP/cid -w=/main -v /var/run/docker.sock:/var/run/docker.sock --name=tracehubpm_vsheets_4 l3r8y/rultor-image:1.0.3 /main/entry.sh
WARNING: Your kernel does not support OomKillDisable. OomKillDisable discarded.
+ 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-timesync 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 ssh 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/.m2 /root/.profile /home/r
+ cp -R ./cid ./end.sh ./entry.sh ./pid ./repo ./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
/home/r/script.sh: line 9: bundle: command not found
container 09869a73c1b6ea762f1ade34d39586b3fb3faccdd077f570ae1005ce0b1b296e is dead
Tue Jan 23 01:31:12 PM CET 2024

@h1alexbel
Copy link
Contributor Author

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Jan 23, 2024

@rultor merge

@h1alexbel OK, I'll try to merge now. You can check the progress of the merge here

@rultor
Copy link
Collaborator

rultor commented Jan 23, 2024

@rultor merge

@h1alexbel Oops, I failed. You can see the full log here (spent 2min)

-rwxrwxr-x  1 rultor rultor  466 Jan 23 13:39 entry.sh
-rw-rw-r--  1 rultor rultor    8 Jan 23 13:39 pid
drwxrwxr-x  6 rultor rultor 4096 Jan 23 13:39 repo
-rwxrwxr-x  1 rultor rultor 5683 Jan 23 13:39 run.sh
-rw-rw-r--  1 rultor rultor  467 Jan 23 13:39 script.sh
-rw-rw-r--  1 rultor rultor 4647 Jan 23 13:39 stdout
++ pwd
++ pwd
+ docker run -t --rm -v /tmp/rultor-CYhS:/main --env=head=git@github.com:tracehubpm/vsheets.git --env=pull_id=4 --env=fork=git@github.com:tracehubpm/vsheets.git --env=fork_branch=chore --env=head_branch=master '--env=pull_title=an old puzzle' --env=author=h1alexbel '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:tracehubpm/vsheets.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_id=4'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''fork=git@github.com:tracehubpm/vsheets.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''fork_branch=chore'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_title=an old puzzle'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=h1alexbel'\''\'\'''\'''\'' '\'';'\'' '\''bundle install'\'' '\'';'\'' '\''bundle exec rake'\'' '\'';'\'' )' --hostname=docker --privileged --memory=8g --memory-swap=16g --oom-kill-disable --cidfile=/tmp/rultor-CYhS/cid -w=/main -v /var/run/docker.sock:/var/run/docker.sock --name=tracehubpm_vsheets_4 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 ./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
RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too,
you can ignore these warnings with 'rvm rvmrc warning ignore /home/r/repo/Gemfile'.
To ignore the warning for all files run 'rvm rvmrc warning ignore allGemfiles'.

Unknown ruby interpreter version (do not know how to handle): ~>3.1.4.
\u001b[31mYour Ruby version is 3.2.2, but your Gemfile specified ~> 3.1.4\u001b[0m
container e573e81932da40401f1135e0c53336a3408af511aea0390a40a52c14d9fc92a0 is dead
Tue Jan 23 01:40:27 PM CET 2024

@h1alexbel
Copy link
Contributor Author

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Jan 23, 2024

@rultor merge

@h1alexbel OK, I'll try to merge now. You can check the progress of the merge here

@rultor
Copy link
Collaborator

rultor commented Jan 23, 2024

@rultor merge

@h1alexbel Oops, I failed. You can see the full log here (spent 2min)

\u001b[32mInstalling language_server-protocol 3.17.0.3\u001b[0m
\u001b[32mInstalling rexml 3.2.6\u001b[0m
\u001b[32mFetching simplecov-html 0.12.3\u001b[0m
\u001b[32mFetching simplecov_json_formatter 0.1.4\u001b[0m
Using slop 4.10.1
\u001b[32mInstalling simplecov_json_formatter 0.1.4\u001b[0m
\u001b[32mFetching rspec-core 3.12.2\u001b[0m
\u001b[32mInstalling simplecov-html 0.12.3\u001b[0m
\u001b[32mInstalling rspec-core 3.12.2\u001b[0m
\u001b[32mFetching rspec-mocks 3.12.6\u001b[0m
\u001b[32mFetching rspec-expectations 3.12.3\u001b[0m
\u001b[32mInstalling rspec-expectations 3.12.3\u001b[0m
\u001b[32mInstalling rspec-mocks 3.12.6\u001b[0m
\u001b[32mFetching simplecov 0.22.0\u001b[0m
\u001b[32mInstalling simplecov 0.22.0\u001b[0m
\u001b[32mFetching rspec 3.12.0\u001b[0m
\u001b[32mInstalling rspec 3.12.0\u001b[0m
\u001b[32mFetching nokogiri 1.16.0 (x86_64-linux)\u001b[0m
\u001b[32mFetching parser 3.3.0.5\u001b[0m
\u001b[32mInstalling parser 3.3.0.5\u001b[0m
\u001b[32mFetching rubocop-ast 1.30.0\u001b[0m
\u001b[32mInstalling rubocop-ast 1.30.0\u001b[0m
\u001b[32mInstalling nokogiri 1.16.0 (x86_64-linux)\u001b[0m
Using xcop 0.7.1
\u001b[32mFetching rubocop 1.60.1\u001b[0m
\u001b[32mInstalling rubocop 1.60.1\u001b[0m
\u001b[32mFetching rubocop-capybara 2.20.0\u001b[0m
\u001b[32mFetching rubocop-factory_bot 2.25.1\u001b[0m
\u001b[32mInstalling rubocop-capybara 2.20.0\u001b[0m
\u001b[32mInstalling rubocop-factory_bot 2.25.1\u001b[0m
\u001b[32mFetching rubocop-rspec 2.26.1\u001b[0m
\u001b[32mInstalling rubocop-rspec 2.26.1\u001b[0m
\u001b[32mBundle complete! 7 Gemfile dependencies, 32 gems now installed.\u001b[0m
\u001b[32mUse `bundle info [gemname]` to see where a bundled gem is installed.\u001b[0m
/usr/local/rvm/rubies/ruby-3.2.2/bin/ruby -I/usr/local/rvm/gems/ruby-3.2.2/gems/rspec-core-3.12.2/lib:/usr/local/rvm/gems/ruby-3.2.2/gems/rspec-support-3.12.1/lib /usr/local/rvm/gems/ruby-3.2.2/gems/rspec-core-3.12.2/exe/rspec --pattern spec/\*\*/\*_spec.rb
\u001b[32m.\u001b[0m

Finished in 0.0037 seconds (files took 0.1431 seconds to load)
\u001b[32m1 example, 0 failures\u001b[0m

Running xcop...
Inspecting 4 files...
\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m
4 files checked, everything looks \u001b[32mpretty\u001b[0m
grep -q -r '2023-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
remote: error: GH006: Protected branch update failed for refs/heads/master.        
remote: error: Cannot change this locked branch        
To github.com:tracehubpm/vsheets.git
 ! [remote rejected] master -> master (protected branch hook declined)
error: failed to push some refs to 'github.com:tracehubpm/vsheets.git'
container 7d1f82bca2d64f2742f3c931e907e8e4e2012346e69b07a8126a9a7c10c12b0e is dead
Tue Jan 23 02:00:26 PM CET 2024

@h1alexbel
Copy link
Contributor Author

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Jan 23, 2024

@rultor merge

@h1alexbel OK, I'll try to merge now. You can check the progress of the merge here

@rultor rultor merged commit 3bea224 into master Jan 23, 2024
2 checks passed
@h1alexbel h1alexbel deleted the chore branch January 23, 2024 13:05
@rultor
Copy link
Collaborator

rultor commented Jan 23, 2024

@rultor merge

@h1alexbel Done! FYI, the full log is here (took me 2min)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

arc.xsl:26-29: Get rid of XSL resources inside tracehub...
2 participants