{Packaging} Update Expat to be compatible with current Python - #33986
Closed
mansoor sarfraz (msarfraz) wants to merge 1 commit into
Closed
{Packaging} Update Expat to be compatible with current Python#33986mansoor sarfraz (msarfraz) wants to merge 1 commit into
mansoor sarfraz (msarfraz) wants to merge 1 commit into
Conversation
microsoft-github-policy-service
Bot
requested review from
ZelinWang (wangzelin007) and
Yong Zhang (yonzhan)
August 26, 2026 00:49
Copilot started reviewing on behalf of
mansoor sarfraz (msarfraz)
August 26, 2026 00:49
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a package update step to the UBI8/UBI9 RPM-in-Docker smoke test to avoid pyexpat failures with the Python 3.12 runtime by ensuring the container has a compatible Expat library version.
Changes:
- Update Expat via
dnfbefore installing and exercising the built Azure CLI RPM inside the container.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+7
to
+8
| # Pinned UBI 8/9 images contain an older Expat incompatible with current Python 3.12 pyexpat. | ||
| dnf update -y expat |
Collaborator
|
Packaging |
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.
Summary
Adds a dnf update -y expat step to the RPM Docker test script (scripts/release/rpm/test_rpm_in_docker.sh) before installing the built RPM.
Background
The pinned UBI 8/9 base images ship with an older version of the Expat XML library. This version is incompatible with the pyexpat module in the current Python 3.12 runtime, causing failures when the RPM is exercised inside the container.
Changes
Impact
Testing