Open
Description
openedon Mar 28, 2022
Describe the bug
Mariner 2.0 (#21245), UBI 8 (#21655) and CentOS Stream 8 (#20918) have rpmbuild
4.17.0 which is very slow while building the RPM. The CI job BuildRpmPackageMariner
and BuildRpmPackageUbi8
take ~40min.
Turning on -vv
(verbose) for rpmbuild
shows the process got stuck at these steps for a very long time:
Processing files: azure-cli-dev-1.el8.x86_64
...
D: execv(/usr/lib/rpm/pythondeps.sh) pid 4341
D: waitpid(4341) rc 4341 status 0
D: execv(/usr/lib/rpm/pythondistdeps.py) pid 4346
D: waitpid(4346) rc 4346 status 0
D: execv(/usr/lib/rpm/pythondeps.sh) pid 4347
D: waitpid(4347) rc 4347 status 0
D: execv(/usr/lib/rpm/pythondistdeps.py) pid 4352
D: waitpid(4352) rc 4352 status 0
D: execv(/usr/lib/rpm/pythondeps.sh) pid 4353
D: waitpid(4353) rc 4353 status 0
htop
shows the same:
To Reproduce
Run the follow commands on WSL or Linux machine:
git clone https://github.com/Azure/azure-cli
docker run -it --rm -v $(pwd)/azure-cli:/root/azure-cli --workdir /root/azure-cli registry.access.redhat.com/ubi8/ubi:8.4
yum update -y
yum install -y wget rpm-build gcc libffi-devel python3-devel openssl-devel make bash diffutils patch dos2unix python3-virtualenv perl
REPO_PATH=$(pwd) CLI_VERSION=dev rpmbuild -v -bb --clean scripts/release/rpm/azure-cli.spec
Additional context
Email: azure-cli FIPS compliance
Install htop
:
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
yum install htop
See: https://www.cyberciti.biz/faq/how-to-install-htop-on-rhel-8-using-yum/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment