-
Notifications
You must be signed in to change notification settings - Fork 3k
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
{CI} Add Test Rpm Package Mariner #25747
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This script should be run in a centos7 docker. | ||
set -exv | ||
|
||
export USERNAME=azureuser | ||
|
||
tdnf --nogpgcheck install /mnt/rpm/$RPM_NAME -y | ||
|
||
tdnf install git gcc python3-devel python3-pip findutils -y | ||
Comment on lines
+1
to
+10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can this script be reused from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are some differences between Mariner and UBI, see #25747 (comment). Using same script decreases the duplicate code but increases the complexity of script. |
||
|
||
ln -s -f /usr/bin/python3 /usr/bin/python | ||
time az self-test | ||
time az --version | ||
|
||
cd /azure-cli/ | ||
pip install wheel | ||
./scripts/ci/build.sh | ||
|
||
# From Fedora36, when using `pip install --prefix` with root privileges, the package is installed into `{prefix}/local/lib`. | ||
# In order to keep the original installation path, I have to set RPM_BUILD_ROOT | ||
# Ref https://docs.fedoraproject.org/en-US/fedora/latest/release-notes/developers/Development_Python/#_pipsetup_py_installation_with_prefix | ||
export RPM_BUILD_ROOT=/ | ||
|
||
pip install pytest --prefix /usr/lib64/az | ||
pip install pytest-xdist --prefix /usr/lib64/az | ||
pip install pytest-forked --prefix /usr/lib64/az | ||
|
||
find /azure-cli/artifacts/build -name "azure_cli_testsdk*" | xargs pip install --prefix /usr/lib64/az --upgrade --ignore-installed | ||
find /azure-cli/artifacts/build -name "azure_cli_fulltest*" | xargs pip install --prefix /usr/lib64/az --upgrade --ignore-installed --no-deps | ||
|
||
python /azure-cli/scripts/release/rpm/test_rpm_package.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some differences with
test_rpm_in_docker.sh
pip
when installpython3-devel
.dnf
becomestdnf
./usr/bin/
by default.I don't want to add the fifth env variables, so I create a new script for Mariner.