Skip to content

{Packaging} Update Expat to be compatible with current Python - #33987

Merged
Naga Nandyala (naga-nandyala) merged 1 commit into
Azure:releasefrom
msarfraz:fix-expat-mismatch
Aug 26, 2026
Merged

{Packaging} Update Expat to be compatible with current Python#33987
Naga Nandyala (naga-nandyala) merged 1 commit into
Azure:releasefrom
msarfraz:fix-expat-mismatch

Conversation

@msarfraz

Copy link
Copy Markdown
Contributor

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

  • Update the expat package via dnf prior to installing the Azure CLI RPM and its dependencies.

Impact

  • Scope: CI/release test tooling only — no changes to Azure CLI source or shipped artifacts.
  • Ensures the RPM smoke test in Docker runs against an Expat version compatible with Python 3.12, preventing spurious pyexpat errors.
    Testing
  • Runs as part of the existing RPM-in-Docker test flow (set -exv ensures the new step is logged and any failure aborts the run).

@azure-client-tools-bot-prd

Copy link
Copy Markdown

Hi mansoor sarfraz (@msarfraz),
Usually we only allow pull requests to be submitted to the dev branch, please double check your pull request target branch release.

@naga-nandyala
Naga Nandyala (naga-nandyala) merged commit dc50d47 into Azure:release Aug 26, 2026
18 of 58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants