yegor256 / cam

Classes and Metriсs (CaM): a dataset of Java classes from public open-source GitHub repositories
http://cam.yegor256.com
MIT License
25 stars 39 forks source link

make install fails on MacOS #356

Closed nai1ka closed 2 months ago

nai1ka commented 2 months ago

sudo make install fails on MacOS 14.6, because installing brew packages as a root is no longer supported

Screenshot 2024-09-03 at 11 36 49
nai1ka commented 2 months ago

Moreover, install-pip.sh fails because of externally-managed-environment error

Screenshot 2024-09-06 at 21 07 58
yegor256 commented 2 months ago

@rultor release, tag is 0.9.3

rultor commented 2 months ago

@rultor release, tag is 0.9.3

@yegor256 OK, I will release it now. Please check the progress here

rultor commented 2 months ago

@rultor release, tag is 0.9.3

@nai1ka @yegor256 Oops, I failed. You can see the full log here (spent 30min)

+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
\u001b[0m\u001b[91m+ /cam/help/sudo.sh tlmgr --verify-repo=none install acmart algorithmicx algpseudocodex anyfontsize babel-russian bibcop biber biblatex cancel catchfile changepage cjk cleveref cm-super comment csquotes currfile cyrillic datetime doi enumitem environ fdsymbol ffcode fmtcount footmisc framed fvextra href-ul huawei hyperxmp hyphen-russian iexec ifmtarg lastpage latexmk lh libertine makecell ncctools paralist preprint silence stmaryrd svg textpos titlesec titling to-be-determined totpages transparent trimspaces upquote wrapfig xstring
\u001b[0m\u001b[91m
tlmgr: Remote database (revision 72285 of the texlive-scripts package)
seems to be older than the local installation (rev 72293 of
texlive-scripts); please use a different mirror and/or wait a day or two.

\u001b[0mThe command '/bin/bash -eo pipefail -c installs/install-texlive.sh' returned a non-zero code: 1
container 712b4d54b5f04b161ebe278ff61f66db776ac9580614c534640d66845f4f0742 is dead
Mon Sep 16 09:14:51 UTC 2024
yegor256 commented 2 months ago

@rultor release, tag is 0.9.3

rultor commented 2 months ago

@rultor release, tag is 0.9.3

@yegor256 OK, I will release it now. Please check the progress here

rultor commented 2 months ago

@rultor release, tag is 0.9.3

@nai1ka @yegor256 Oops, I failed. You can see the full log here (spent 30min)

+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
+ packages+=("${p}")
+ IFS=
+ read -r p
\u001b[0m\u001b[91m+ /cam/help/sudo.sh tlmgr --verify-repo=none install acmart algorithmicx algpseudocodex anyfontsize babel-russian bibcop biber biblatex cancel catchfile changepage cjk cleveref cm-super comment csquotes currfile cyrillic datetime doi enumitem environ fdsymbol ffcode fmtcount footmisc framed fvextra href-ul huawei hyperxmp hyphen-russian iexec ifmtarg lastpage latexmk lh libertine makecell ncctools paralist preprint silence stmaryrd svg textpos titlesec titling to-be-determined totpages transparent trimspaces upquote wrapfig xstring
\u001b[0m\u001b[91m
tlmgr: Remote database (revision 72285 of the texlive-scripts package)
seems to be older than the local installation (rev 72293 of
texlive-scripts); please use a different mirror and/or wait a day or two.

\u001b[0mThe command '/bin/bash -eo pipefail -c installs/install-texlive.sh' returned a non-zero code: 1
container 03040ec6680e3bf2ca03fba29ed9775abcbece6b6bbadd8a6c53f86c9d544218 is dead
Mon Sep 16 10:53:30 UTC 2024
yegor256 commented 2 months ago

@rultor release, tag is 0.9.3

rultor commented 2 months ago

@rultor release, tag is 0.9.3

@yegor256 OK, I will release it now. Please check the progress here

rultor commented 2 months ago

@rultor release, tag is 0.9.3

@nai1ka @yegor256 Oops, I failed. You can see the full log here (spent 1hr)

Docker container yegor256_cam_356 is lost
yegor256 commented 2 months ago

@rultor release, tag is 0.9.3

rultor commented 2 months ago

@rultor release, tag is 0.9.3

@yegor256 OK, I will release it now. Please check the progress here

rultor commented 2 months ago

@rultor release, tag is 0.9.3

@nai1ka @yegor256 Oops, I failed. You can see the full log here (spent 1hr)

Docker container yegor256_cam_356 is lost
yegor256 commented 2 months ago

@rultor release, tag is 0.9.3

rultor commented 2 months ago

@rultor release, tag is 0.9.3

@yegor256 OK, I will release it now. Please check the progress here

rultor commented 2 months ago

@rultor release, tag is 0.9.3

@nai1ka @yegor256 Oops, I failed. You can see the full log here (spent 4min)

+ ls -al .
total 48
drwx------  3 ubuntu ubuntu 4096 Sep 23 04:54 .
drwxrwxrwt 12 root   root   4096 Sep 23 04:54 ..
-rwxrwxr-x  1 ubuntu ubuntu  556 Sep 23 04:57 end.sh
-rwxrwxr-x  1 ubuntu ubuntu  490 Sep 23 04:54 entry.sh
-rw-rw-r--  1 ubuntu ubuntu    5 Sep 23 04:54 pid
-rw-rw-r--  1 ubuntu ubuntu    9 Sep 23 04:54 pwd
drwxrwxr-x 13 ubuntu ubuntu 4096 Sep 23 04:54 repo
-rwxrwxr-x  1 ubuntu ubuntu 6105 Sep 23 04:54 run.sh
-rw-rw-r--  1 ubuntu ubuntu  699 Sep 23 04:54 script.sh
-rw-rw-r--  1 ubuntu ubuntu 5553 Sep 23 04:57 stdout
++ pwd
++ pwd
+ docker run -t --rm -v /tmp/rultor-v1lO:/main --env=head=git@github.com:yegor256/cam.git --env=tag=0.9.3 '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:yegor256/cam.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=0.9.3'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=yegor256'\''\'\'''\'''\'' '\'';'\'' '\''pdd --file=/dev/null'\'' '\'';'\'' '\''[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit 1'\'' '\'';'\'' '\''sed -i "s/0\.0\.0/${tag}/g" Makefile'\'' '\'';'\'' '\''repo=yegor256/cam'\'' '\'';'\'' '\''sudo docker build --no-cache --tag "${repo}:${tag}" "$(pwd)"'\'' '\'';'\'' '\''mkdir /tmp/dataset'\'' '\'';'\'' '\''sudo docker run --rm "${repo}:${tag}" make install env lint test'\'' '\'';'\'' '\''cat ../pwd | sudo docker login --password-stdin --username yegor256'\'' '\'';'\'' '\''sudo docker push "${repo}:${tag}"'\'' '\'';'\'' )' --env=head_branch=master --env=author=yegor256 --hostname=docker --privileged --memory=8g --memory-swap=16g --oom-kill-disable --cidfile=/tmp/rultor-v1lO/cid -w=/main -v /var/run/docker.sock:/var/run/docker.sock --name=yegor256_cam_356 yegor256/rultor-ruby /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
++ awk -F : '$3 > 100 { print $1 }'
++ cat /etc/group
+ 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 ubuntu 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 r r
+ usermod -s /bin/bash r
+ echo '%sudo ALL=(ALL) NOPASSWD:ALL'
+ cp -R /root/.bashrc /root/.cache /root/.gem /root/.gemrc /root/.gnupg /root/.profile /root/.rvmrc /home/r
+ cp -R ./cid ./end.sh ./entry.sh ./pid ./pwd ./repo ./run.sh ./script.sh ./stdout /home/r
+ rm -rf repo
+ chown -R r:r /home/r
+ chmod a+x /home/r/script.sh
+ cat /home/r/script.sh
#!/bin/bash
set -e
set -o pipefail
if [ -e /home/r/.profile ]; then source /home/r/.profile; fi
shopt -s expand_aliases
alias 'sudo=sudo -i'
export HOME=/home/r
cd "${HOME}/repo"
export 'head=git@github.com:yegor256/cam.git' ; export 'tag=0.9.3' ; export 'head_branch=master' ; export 'author=yegor256' ; pdd --file=/dev/null ; [[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit 1 ; sed -i "s/0\.0\.0/${tag}/g" Makefile ; repo=yegor256/cam ; sudo docker build --no-cache --tag "${repo}:${tag}" "$(pwd)" ; mkdir /tmp/dataset ; sudo docker run --rm "${repo}:${tag}" make install env lint test ; cat ../pwd | sudo docker login --password-stdin --username yegor256 ; sudo docker push "${repo}:${tag}" ;
+ 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
/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
Using /usr/local/rvm/gems/ruby-3.2.2
Using /usr/local/rvm/gems/ruby-3.2.2
-bash: line 1: docker: command not found
container 654f1a0434667e5b47686bccec65907eb74f0acd9397dfb49bfe749b841305fe is dead
Mon Sep 23 04:58:13 UTC 2024
yegor256 commented 2 months ago

@rultor release, tag is 0.9.3

rultor commented 2 months ago

@rultor release, tag is 0.9.3

@yegor256 OK, I will release it now. Please check the progress here

rultor commented 2 months ago

@rultor release, tag is 0.9.3

@nai1ka @yegor256 Oops, I failed. You can see the full log here (spent 4min)

+ docker ps --filter=status=exited
+ grep --quiet '\syegor256_cam_356\s*$'
+ ls -al .
total 48
drwx------  3 ubuntu ubuntu 4096 Sep 23 06:37 .
drwxrwxrwt 12 root   root   4096 Sep 23 06:38 ..
-rwxrwxr-x  1 ubuntu ubuntu  556 Sep 23 06:40 end.sh
-rwxrwxr-x  1 ubuntu ubuntu  490 Sep 23 06:37 entry.sh
-rw-rw-r--  1 ubuntu ubuntu    5 Sep 23 06:37 pid
-rw-rw-r--  1 ubuntu ubuntu    9 Sep 23 06:37 pwd
drwxrwxr-x 13 ubuntu ubuntu 4096 Sep 23 06:37 repo
-rwxrwxr-x  1 ubuntu ubuntu 6433 Sep 23 06:37 run.sh
-rw-rw-r--  1 ubuntu ubuntu  843 Sep 23 06:37 script.sh
-rw-rw-r--  1 ubuntu ubuntu 6032 Sep 23 06:40 stdout
++ pwd
++ pwd
+ docker run -t --rm -v /tmp/rultor-uA1q:/main --env=head=git@github.com:yegor256/cam.git --env=tag=0.9.3 '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:yegor256/cam.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=0.9.3'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=yegor256'\''\'\'''\'''\'' '\'';'\'' '\''pdd --file=/dev/null'\'' '\'';'\'' '\''[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit 1'\'' '\'';'\'' '\''sed -i "s/0\.0\.0/${tag}/g" Makefile'\'' '\'';'\'' '\''curl -s -L "https://download.docker.com/linux/static/stable/x86_64/docker-18.06.3-ce.tgz" | tar -xz -C /tmp'\'' '\'';'\'' '\''mv /tmp/docker/docker /usr/bin/'\'' '\'';'\'' '\''repo=yegor256/cam'\'' '\'';'\'' '\''sudo docker build --no-cache --tag "${repo}:${tag}" "$(pwd)"'\'' '\'';'\'' '\''mkdir /tmp/dataset'\'' '\'';'\'' '\''sudo docker run --rm "${repo}:${tag}" make install env lint test'\'' '\'';'\'' '\''cat ../pwd | sudo docker login --password-stdin --username yegor256'\'' '\'';'\'' '\''sudo docker push "${repo}:${tag}"'\'' '\'';'\'' )' --env=head_branch=master --env=author=yegor256 --hostname=docker --privileged --memory=8g --memory-swap=16g --oom-kill-disable --cidfile=/tmp/rultor-uA1q/cid -w=/main -v /var/run/docker.sock:/var/run/docker.sock --name=yegor256_cam_356 yegor256/rultor-ruby /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
++ awk -F : '$3 > 100 { print $1 }'
++ cat /etc/group
+ 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 ubuntu 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 r r
+ usermod -s /bin/bash r
+ echo '%sudo ALL=(ALL) NOPASSWD:ALL'
+ cp -R /root/.bashrc /root/.cache /root/.gem /root/.gemrc /root/.gnupg /root/.profile /root/.rvmrc /home/r
+ cp -R ./cid ./end.sh ./entry.sh ./pid ./pwd ./repo ./run.sh ./script.sh ./stdout /home/r
+ rm -rf repo
+ chown -R r:r /home/r
+ chmod a+x /home/r/script.sh
+ cat /home/r/script.sh
#!/bin/bash
set -e
set -o pipefail
if [ -e /home/r/.profile ]; then source /home/r/.profile; fi
shopt -s expand_aliases
alias 'sudo=sudo -i'
export HOME=/home/r
cd "${HOME}/repo"
export 'head=git@github.com:yegor256/cam.git' ; export 'tag=0.9.3' ; export 'head_branch=master' ; export 'author=yegor256' ; pdd --file=/dev/null ; [[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit 1 ; sed -i "s/0\.0\.0/${tag}/g" Makefile ; curl -s -L "https://download.docker.com/linux/static/stable/x86_64/docker-18.06.3-ce.tgz" | tar -xz -C /tmp ; mv /tmp/docker/docker /usr/bin/ ; repo=yegor256/cam ; sudo docker build --no-cache --tag "${repo}:${tag}" "$(pwd)" ; mkdir /tmp/dataset ; sudo docker run --rm "${repo}:${tag}" make install env lint test ; cat ../pwd | sudo docker login --password-stdin --username yegor256 ; sudo docker push "${repo}:${tag}" ;
+ 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
/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
mv: cannot move '/tmp/docker/docker' to '/usr/bin/docker': Permission denied
container b481a2d527b533c53e89f77001278ec421c585bc4651e23f6fbfb772dcb52d8b is dead
Mon Sep 23 06:41:21 UTC 2024
yegor256 commented 2 months ago

@rultor release, tag is 0.9.3

rultor commented 2 months ago

@rultor release, tag is 0.9.3

@yegor256 OK, I will release it now. Please check the progress here

rultor commented 2 months ago

@rultor release, tag is 0.9.3

@nai1ka @yegor256 Oops, I failed. You can see the full log here (spent 2hr)

Docker container yegor256_cam_356 is lost