Skip to content

Conversation

himaja-kesari
Copy link
Contributor

Add Fedora 42 Support to VM Tests

This PR adds support for running VM tests with Fedora 42 images.

Changes

  • Split test_imagecreator.py into separate files for Azure Linux and Fedora tests
  • Created new test_imagecreator_fedora.py for Fedora-specific tests
  • Updated Makefile with separate targets for Fedora and Azure Linux tests:
    • test-imagecreator-fedora: Runs only Fedora tests
    • test-imagecreator-azurelinux: Runs only Azure Linux tests

# 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
Copy link
Contributor

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.

Copy link
Contributor

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.


with open(os_release_path, "r") as os_release_fd:
os_release_text = os_release_fd.read()
logging.info("OS Release content:")
Copy link
Contributor

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.

@himaja-kesari himaja-kesari force-pushed the user/himajakesari/vmtests-fedora42 branch 3 times, most recently from b6441ef to a08147c Compare October 6, 2025 23:41
@himaja-kesari himaja-kesari requested a review from cwize1 October 6, 2025 23:45
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"]]
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants