-
Notifications
You must be signed in to change notification settings - Fork 9
Add VM Tests for Fedora 42 #461
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
base: main
Are you sure you want to change the base?
Conversation
b1f9eae
to
4eee2ab
Compare
4eee2ab
to
7d99721
Compare
# Download the test RPM and tools file for azurelinux | ||
./repo/toolkit/tools/internal/testutils/testrpms/download-test-utils.sh -d azurelinux -t 3.0 -s true | ||
# Download the test RPM and tools file for fedora | ||
./repo/toolkit/tools/internal/testutils/testrpms/download-test-utils.sh -d fedora -t 42 -s true |
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.
The Fedora container image is currently being pulled from registry.fedoraproject.org
. Pulling from an external registry is bad for a number of reasons including:
- The reliability of our builds becomes dependent on the uptime on the external resource,
- We are consuming someone else's resources (e.g. egress costs),
- We may end up being subject to pull limits.
We should setup an ACR artifact cache for registry.fedoraproject.org
.
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.
This is a blocking issue.
7d99721
to
a4b5d74
Compare
a4b5d74
to
fc9c1a6
Compare
|
||
with open(os_release_path, "r") as os_release_fd: | ||
os_release_text = os_release_fd.read() | ||
logging.info("OS Release content:") |
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.
Use a single call to log something, to avoid logs messages from being split up if there is something in the background adding to the logs.
b6441ef
to
a08147c
Compare
ssh_client.run("rpm -q grub2").check_exit_code() | ||
ssh_client.run("rpm -q bash").check_exit_code() | ||
# Check required packages | ||
package_list = [str(pkg) for pkg in config["packages"]] |
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.
What's with the str(pkg)
?
# Download the test RPM and tools file for azurelinux | ||
./repo/toolkit/tools/internal/testutils/testrpms/download-test-utils.sh -d azurelinux -t 3.0 -s true | ||
# Download the test RPM and tools file for fedora | ||
./repo/toolkit/tools/internal/testutils/testrpms/download-test-utils.sh -d fedora -t 42 -s true |
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.
This is a blocking issue.
--show-capture=all \ | ||
--tb=short \ | ||
--junitxml=./out/$(DATETIME_AS_VERSION)/report.xml \ | ||
./vmtests/imagecreator/test_imagecreator.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.
Should this file be renamed to test_imagecreator_azurelinux.py to maintain parallel nature of your changes?
a08147c
to
0aa141d
Compare
3ff85f3
to
bbd5634
Compare
bbd5634
to
7c07369
Compare
Add Fedora 42 Support to VM Tests
This PR adds support for running VM tests with Fedora 42 images.
Changes
test-imagecreator-fedora
: Runs only Fedora teststest-imagecreator-azurelinux
: Runs only Azure Linux tests