Skip to content

Conversation

@rane-rajasi
Copy link
Contributor

Expanding Tdnf Package Manager to support Azure Linux 2.0

Inn VM Test Logs:
[x] Azure Linux 2.0 (Common Base Linux):
     - 4.core.log
     - 4.status.txt
[x] Pre-Existing Azure Linux 3.0 code compatibility test
     - 1.core.log
     - 1.status.txt

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

This pull request expands the Tdnf Package Manager support to include Azure Linux 2.0 (Common Base Linux Mariner) by updating platform checks and related constants.

  • Updated installation logic in TdnfPackageManager.py to include both Azure Linux and Common Base Linux Mariner.
  • Modified EnvLayer.py to correctly detect the new distribution scenario.
  • Added a new constant in Constants.py for Common Base Linux Mariner.

Reviewed Changes

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

File Description
src/core/src/package_managers/TdnfPackageManager.py Updated patch logic to include Common Base Linux Mariner in the distribution check.
src/core/src/bootstrap/EnvLayer.py Revised package manager detection to account for the new distribution name.
src/core/src/bootstrap/Constants.py Added a constant for Common Base Linux Mariner.

@codecov
Copy link

codecov bot commented Apr 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.13%. Comparing base (9a49d16) to head (472f720).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #311   +/-   ##
=======================================
  Coverage   93.12%   93.13%           
=======================================
  Files         103      103           
  Lines       17550    17555    +5     
=======================================
+ Hits        16344    16349    +5     
  Misses       1206     1206           
Flag Coverage Δ
python27 93.12% <100.00%> (+<0.01%) ⬆️
python312 93.12% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kjohn-msft kjohn-msft changed the title Adding support for Azure Linux 2.0 in Tdnf Package Manager Feature: Adding support for Azure Linux 2.0 in Tdnf Package Manager Apr 18, 2025
@kjohn-msft kjohn-msft added the feature New feature or request label Apr 18, 2025
Copy link
Collaborator

@kjohn-msft kjohn-msft left a comment

Choose a reason for hiding this comment

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

Minor inline

@kjohn-msft kjohn-msft added the OE PR is considered near complete due to OE sign-off. label Apr 18, 2025
@rane-rajasi rane-rajasi enabled auto-merge (squash) April 18, 2025 20:48
@rane-rajasi rane-rajasi merged commit d28c9cc into master Apr 18, 2025
7 checks passed
@rane-rajasi rane-rajasi deleted the rarane/repairitem/azlinux2support branch April 18, 2025 21:03
@rane-rajasi rane-rajasi mentioned this pull request Apr 25, 2025
rane-rajasi added a commit that referenced this pull request Apr 25, 2025
This release includes:
[x] Engg. hygiene: Remove TelemetryWriter related log noise
[#312](#312)
[x] Bugfix: Mitigate external Ubuntu Pro Client issue
[#308](#308)
[x] Feature: Adding support for Azure Linux 2.0 in Tdnf Package Manager
[#311](#311)
[x] Eng. sys: Upgrade CICD pipeline from Python 3.9 to Python 3.12
[#309](#309)
[x] Coverage: Increase code coverage - TimerManager and ServiceManager
[#307](#307)
[x] Bugfix: Unit tests broken in Python 3.12
[#306](#306)
[x] Feature: Adding Azure Linux 3.0 Base Support
[#293](#293)
[x] Bugfix: Retry Handler to Prevent Unbounded Retries while trying to
Mitigate YUM Update Errors
[#303](#303)
[x] BugFix: CentOS VMs not installing patches during Auto Patching
[#298](#298)
[x] Bugfix: Auto-assessment - Restricting execution permissions to root
user/ owner
[#299](#299)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request OE PR is considered near complete due to OE sign-off.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants