{Packaging} Update UBI packages before RPM tests - #33983
Open
Naga Nandyala (naga-nandyala) wants to merge 2 commits into
Open
{Packaging} Update UBI packages before RPM tests#33983Naga Nandyala (naga-nandyala) wants to merge 2 commits into
Naga Nandyala (naga-nandyala) wants to merge 2 commits into
Conversation
Collaborator
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
microsoft-github-policy-service
Bot
requested review from
ZelinWang (wangzelin007) and
Yong Zhang (yonzhan)
August 25, 2026 10:23
Copilot started reviewing on behalf of
Naga Nandyala (naga-nandyala)
August 25, 2026 10:23
View session
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the UBI-based RPM test container flow to ensure OS packages (notably Expat) are upgraded before installing and validating the Azure CLI RPM, preventing pyexpat import failures due to missing newer Expat symbols in older pinned UBI images.
Changes:
- Add a
dnf update -ystep before RPM installation in the UBI RPM test script.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Yong Zhang (yonzhan)
previously approved these changes
Aug 25, 2026
Cooper Cox (coopercox-ms)
approved these changes
Aug 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 PR Validation — ️✔️ All clear
Related command
N/A (RPM packaging CI)
Description
Update UBI packages before installing and testing the Azure CLI RPM.
Red Hat published Python 3.12.14 packages for UBI 8 and UBI 9 that require a newer Expat symbol. The pinned base images still contain older Expat packages, causing every AMD64 and ARM64 RPM test leg for UBI 8/9 to fail when pip imports
pyexpat:Running
dnf update -yfirst upgrades Expat to a compatible version before the Azure CLI RPM and test dependencies are installed.Testing Guide
Reproduced the failure on fresh images without an update:
3.12.14-1.el8_10+ Expat2.2.5-4.el83.12.14-1.el9_8+ Expat2.2.10-12.el9_0.3Validated the fix on fresh images after
dnf update -y:2.5.0-2.el8_10,import pyexpatsucceeds2.5.0-6.el9_8.1,import pyexpatsucceedsbash -n scripts/release/rpm/test_rpm_in_docker.shHistory Notes
N/A
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.