-
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
Conversation
️✔️acr
️✔️acs
️✔️advisor
️✔️ams
️✔️apim
️✔️appconfig
️✔️appservice
️✔️aro
️✔️backup
️✔️batch
️✔️batchai
️✔️billing
️✔️botservice
️✔️cdn
️✔️cloud
️✔️cognitiveservices
️✔️config
️✔️configure
️✔️consumption
️✔️container
️✔️core
️✔️cosmosdb
️✔️databoxedge
️✔️dla
️✔️dls
️✔️dms
️✔️eventgrid
️✔️eventhubs
️✔️feedback
️✔️find
️✔️hdinsight
️✔️identity
️✔️iot
️✔️keyvault
️✔️kusto
️✔️lab
️✔️managedservices
️✔️maps
️✔️marketplaceordering
️✔️monitor
️✔️netappfiles
️✔️network
️✔️policyinsights
️✔️privatedns
️✔️profile
️✔️rdbms
️✔️redis
️✔️relay
️✔️resource
️✔️role
️✔️search
️✔️security
️✔️servicebus
️✔️serviceconnector
️✔️servicefabric
️✔️signalr
️✔️sql
️✔️sqlvm
️✔️storage
️✔️synapse
️✔️telemetry
️✔️util
️✔️vm
|
CI |
|
||
tdnf --nogpgcheck install /mnt/rpm/$RPM_NAME -y | ||
|
||
tdnf install git gcc python3-devel python3-pip findutils -y |
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
- Mariner does not install
pip
when installpython3-devel
. dnf
becomestdnf
.- pip is also in
/usr/bin/
by default.
I don't want to add the fifth env variables, so I create a new script for Mariner.
#!/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 |
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.
Can this script be reused from test_rpm_in_docker.sh
by introducing some parameters?
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 between Mariner and UBI, see #25747 (comment).
Using same script decreases the duplicate code but increases the complexity of script.
We've used different dockerfile for Mariner and UBI. We can also use different test scripts.
Description
Other builds have this test, add the same test for Mariner.
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.