Skip to content

fix: Add Azurelinx 4.0 Package Dependencies - #4651

Open
Madhur Aggarwal (MadhurAggarwal) wants to merge 1 commit into
microsoft:mainfrom
MadhurAggarwal:madagg/install-azl4-package-deps
Open

fix: Add Azurelinx 4.0 Package Dependencies#4651
Madhur Aggarwal (MadhurAggarwal) wants to merge 1 commit into
microsoft:mainfrom
MadhurAggarwal:madagg/install-azl4-package-deps

Conversation

@MadhurAggarwal

@MadhurAggarwal Madhur Aggarwal (MadhurAggarwal) commented Aug 12, 2026

Copy link
Copy Markdown
Member

Description

This PR adds support for installing AzureLinux 4.0 Package Dependencies in multiple files. There are some missing packages like build-essential, renamed packages like zlib-devel and some new packages like perf. This PR handles all these cases by installing the correct dependencies for 4.0 for each test suite.

Related Issue

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Documentation update

Checklist

  • Description is filled in above
  • No credentials, secrets, or internal details are included
  • Peer review requested (if not, add required peer reviewers after raising PR)
  • Tests executed and results posted below

Test Validation

Key Test Cases:

Impacted LISA Features:

Tested Azure Marketplace Images:

Test Results

Image VM Size Result
PASSED / FAILED / SKIPPED

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates package installation logic across multiple tools, features, and transformers to support Azure Linux (CBL-Mariner) 4.0, accounting for removed/renamed packages (e.g., no build-essential, zlib-develzlib-ng-compat-devel, kernel-toolsperf, Docker CLI packaging changes).

Changes:

  • Add Azure Linux 4.0–specific dependency sets where build-essential is unavailable (installing gcc, make, and related -devel packages explicitly).
  • Handle package renames/splits on Azure Linux 4.0 (e.g., perf, zlib-ng-compat-devel, Docker CLI dependency behavior).
  • Update multiple test/tool dependency installers to branch on CBLMariner version >= 4.0.0.

Reviewed changes

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

Show a summary per file
File Description
lisa/transformers/kernel_source_installer.py Adjust Mariner build-tool dependencies for 4.0 where build-essential isn’t available.
lisa/tools/sockperf.py Update Mariner dependency installation for 4.0 by adding explicit header/-devel packages.
lisa/tools/perf.py Install perf directly on Azure Linux 4.0 instead of kernel-tools.
lisa/tools/ntttcp.py Switch Mariner zlib devel dependency based on 4.0 rename (zlib-ng-compat-devel).
lisa/tools/gpu_drivers.py Replace build-essential with explicit compiler + libc-devel deps on Mariner 4.0.
lisa/tools/fio.py Handle Mariner 4.0 zlib rename and add make where build-essential was used.
lisa/tools/docker.py Adjust Mariner 4.0 Docker install to rely on moby-engine pulling CLI dependencies.
lisa/tools/cargo.py Install explicit build toolchain packages on Mariner 4.0 instead of build-essential.
lisa/microsoft/testsuites/xfstests/xfstests.py Add Mariner 4.0 dependency list and install path using repo-availability filtering.
lisa/microsoft/testsuites/ltp/ltp.py Update Mariner dependency list for 4.0 (incl. pkgconfig/zlib changes).
lisa/microsoft/testsuites/kselftest/kselftest.py Replace build-essential usage on Mariner 4.0 with explicit gcc/make.
lisa/features/infiniband.py Update Mariner dependency installation for 4.0 to avoid build-essential.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@LiliDeng

LiliDeng commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Madhur Aggarwal (@MadhurAggarwal) please resolve the conflicts and provide the results against both mariner 3 and 4

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