Skip to content

Enable Azure Linux 4.0 VM Tests#719

Merged
vinceaperri merged 2 commits intomainfrom
user/vinceaperri/azl4-vm-tests
May 1, 2026
Merged

Enable Azure Linux 4.0 VM Tests#719
vinceaperri merged 2 commits intomainfrom
user/vinceaperri/azl4-vm-tests

Conversation

@vinceaperri
Copy link
Copy Markdown
Contributor

@vinceaperri vinceaperri commented May 1, 2026

This PR adds the following tests for Azure Linux 4.0:

  • test_min_change_efi_azl4_qcow_output
  • test_min_change_legacy_azl4_qcow_output
  • test_min_change_efi_azl4_iso_bootstrap_output (skipped until ISO output is supported)
  • test_min_change_efi_azl4_iso_full_os_output (skipped until ISO output is supported)
  • test_min_change_legacy_azl4_iso_output (skipped until ISO output is supported)

Follow-up tasks:

  • When another kernel release is available for Azure Linux 4.0 Alpha 2: change kernel-6.18.5-1.8.azl4~20260420 to a different release in os-vm-config-*-azl4.yaml, iso-full-os-vm-azl4.yaml, iso-bootstrap-vm-azl4.yaml

@vinceaperri vinceaperri requested a review from a team as a code owner May 1, 2026 19:41
@vinceaperri vinceaperri force-pushed the user/vinceaperri/azl4-vm-tests branch from 7586b0d to 13b88c3 Compare May 1, 2026 19:41
@vinceaperri vinceaperri changed the title Enable Azure Linux 4.0 VM Tests, Fix SELinux Status Defer to Config when Determining SELinux Status Enable Azure Linux 4.0 VM Tests May 1, 2026
@vinceaperri vinceaperri force-pushed the user/vinceaperri/azl4-vm-tests branch from 13b88c3 to 42d2bf0 Compare May 1, 2026 19:53
@vinceaperri vinceaperri requested a review from Copilot May 1, 2026 19:54
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Azure Linux 4.0 coverage to the imagecustomizer VM test suite by introducing AZL4-specific test configs, wiring new fixtures/options, and updating CI to fetch AZL4 base images.

Changes:

  • Added AZL4 testdata configs for qcow2 + (currently skipped) ISO scenarios.
  • Extended test_min_change.py to run AZL4 EFI + legacy qcow2 tests and updated AZL3 tests to use arch/release-specific configs.
  • Updated vmtests harness (pytest options/fixtures, Makefile, and GitHub Actions workflow) to pass/download AZL4 input images.

Reviewed changes

Copilot reviewed 10 out of 12 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
toolkit/tools/pkg/imagecustomizerlib/testdata/os-vm-config-arm64-azl4.yaml New AZL4 arm64 OS VM config (kernel/package set).
toolkit/tools/pkg/imagecustomizerlib/testdata/os-vm-config-arm64-azl3.yaml New AZL3 arm64 OS VM config used by vmtests.
toolkit/tools/pkg/imagecustomizerlib/testdata/os-vm-config-amd64-azl4.yaml New AZL4 amd64 OS VM config (kernel/package set).
toolkit/tools/pkg/imagecustomizerlib/testdata/os-vm-config-amd64-azl3.yaml New AZL3 amd64 OS VM config used by vmtests.
toolkit/tools/pkg/imagecustomizerlib/testdata/iso-full-os-vm-azl4.yaml New AZL4 full-OS ISO config (tests currently skipped).
toolkit/tools/pkg/imagecustomizerlib/testdata/iso-full-os-vm-azl3.yaml Minor formatting alignment with other ISO configs.
toolkit/tools/pkg/imagecustomizerlib/testdata/iso-bootstrap-vm-azl4.yaml New AZL4 bootstrap ISO config (tests currently skipped).
toolkit/tools/pkg/imagecustomizerlib/testdata/iso-bootstrap-vm-azl3.yaml Minor formatting alignment with other ISO configs.
test/vmtests/vmtests/imagecustomizer/test_min_change.py Adds AZL4 qcow2 tests, updates config selection, and extends /etc/os-release checks.
test/vmtests/vmtests/imagecustomizer/conftest.py Adds AZL4 CLI options + fixtures for core EFI/legacy images.
test/vmtests/Makefile Passes AZL4 image paths into pytest invocation.
.github/workflows/tests-vmtests.yml Downloads AZL4 base images and plumbs paths into vmtests CI run.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread toolkit/tools/pkg/imagecustomizerlib/testdata/os-vm-config-arm64-azl4.yaml Outdated
Comment thread test/vmtests/vmtests/imagecustomizer/test_min_change.py
liulanze
liulanze previously approved these changes May 1, 2026
Copy link
Copy Markdown
Contributor

@liulanze liulanze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. And the comment from AI looks reasonable to me.

Comment thread .github/workflows/tests-vmtests.yml
@vinceaperri vinceaperri merged commit 161fbeb into main May 1, 2026
22 checks passed
@vinceaperri vinceaperri deleted the user/vinceaperri/azl4-vm-tests branch May 1, 2026 20:27
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