Skip to content

{Packaging} Bump msal to 1.33.0b1 and pymsalruntime to 0.18.1#31563

Merged
jiasli merged 1 commit intoAzure:devfrom
jiasli:bump-pymsalruntime
Jun 5, 2025
Merged

{Packaging} Bump msal to 1.33.0b1 and pymsalruntime to 0.18.1#31563
jiasli merged 1 commit intoAzure:devfrom
jiasli:bump-pymsalruntime

Conversation

@jiasli
Copy link
Member

@jiasli jiasli commented May 28, 2025

Related command
az login

Description
Fix #31479

The latest pymsalruntime 0.18.1 should have fixed WAM error:

Couldn't lock file 'UD\u_0H464OL3O60O9BSG\e_C2GK9UTC67FSUCG3\Accounts\r_DNH2KNJ6EM9NTUE8.bin' for writing: 'ios_base::failbit set: iostream stream error'. Status: Response_Status.Status_Unexpected, Error code: 5, Tag: 593794768

Only the latest msal 1.33.0b1 allows pymsalruntime 0.18.1, so msal is bumped as well.

Testing Guide
az login --tenant

Copilot AI review requested due to automatic review settings May 28, 2025 07:34
@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented May 28, 2025

️✔️AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.9
️✔️acs
️✔️latest
️✔️3.12
️✔️3.9
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.9
️✔️ams
️✔️latest
️✔️3.12
️✔️3.9
️✔️apim
️✔️latest
️✔️3.12
️✔️3.9
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.9
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.9
️✔️aro
️✔️latest
️✔️3.12
️✔️3.9
️✔️backup
️✔️latest
️✔️3.12
️✔️3.9
️✔️batch
️✔️latest
️✔️3.12
️✔️3.9
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.9
️✔️billing
️✔️latest
️✔️3.12
️✔️3.9
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.9
️✔️cdn
️✔️latest
️✔️3.12
️✔️3.9
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.9
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.9
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.9
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.9
️✔️config
️✔️latest
️✔️3.12
️✔️3.9
️✔️configure
️✔️latest
️✔️3.12
️✔️3.9
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.9
️✔️container
️✔️latest
️✔️3.12
️✔️3.9
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.9
️✔️core
️✔️latest
️✔️3.12
️✔️3.9
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.9
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.9
️✔️dls
️✔️latest
️✔️3.12
️✔️3.9
️✔️dms
️✔️latest
️✔️3.12
️✔️3.9
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.9
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.9
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.9
️✔️find
️✔️latest
️✔️3.12
️✔️3.9
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.9
️✔️identity
️✔️latest
️✔️3.12
️✔️3.9
️✔️iot
️✔️latest
️✔️3.12
️✔️3.9
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.9
️✔️lab
️✔️latest
️✔️3.12
️✔️3.9
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.9
️✔️maps
️✔️latest
️✔️3.12
️✔️3.9
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.9
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.9
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.9
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.9
️✔️network
️✔️latest
️✔️3.12
️✔️3.9
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.9
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.9
️✔️profile
️✔️latest
️✔️3.12
️✔️3.9
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.9
️✔️redis
️✔️latest
️✔️3.12
️✔️3.9
️✔️relay
️✔️latest
️✔️3.12
️✔️3.9
️✔️resource
️✔️latest
️✔️3.12
️✔️3.9
️✔️role
️✔️latest
️✔️3.12
️✔️3.9
️✔️search
️✔️latest
️✔️3.12
️✔️3.9
️✔️security
️✔️latest
️✔️3.12
️✔️3.9
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.9
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.9
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.9
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.9
️✔️sql
️✔️latest
️✔️3.12
️✔️3.9
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.9
️✔️storage
️✔️latest
️✔️3.12
️✔️3.9
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.9
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.9
️✔️util
️✔️latest
️✔️3.12
️✔️3.9
️✔️vm
️✔️latest
️✔️3.12
️✔️3.9

@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented May 28, 2025

️✔️AzureCLI-BreakingChangeTest
️✔️Non Breaking Changes

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 PR bumps the version of pymsalruntime from 0.16.2 to 0.18.1 to address a known WAM error issue.

  • Updated dependency version for pymsalruntime
  • Fixes an error related to file locking during az login

@yonzhan
Copy link
Collaborator

yonzhan commented May 28, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@microsoft-github-policy-service microsoft-github-policy-service bot added the Auto-Assign Auto assign by bot label May 28, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added the Account az login/account label May 28, 2025
@jiasli jiasli changed the title {Packaging} Bump pymsalruntime to 0.18.1 {Packaging} Bump msal to 1.33.0b1 and pymsalruntime to 0.18.1 Jun 5, 2025
@bebound
Copy link
Contributor

bebound commented Jun 5, 2025

msal finally supports Python3.13 in this release. AzureAD/microsoft-authentication-library-for-python#823

@jiasli
Copy link
Member Author

jiasli commented Jun 5, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jiasli jiasli closed this Jun 5, 2025
@jiasli jiasli reopened this Jun 5, 2025
@jiasli jiasli merged commit 9071ce0 into Azure:dev Jun 5, 2025
49 checks passed
@jiasli jiasli deleted the bump-pymsalruntime branch June 5, 2025 11:54
@bebound
Copy link
Contributor

bebound commented Jun 9, 2025

The new pymsalrumtime causes some issues during build:

  1. No wheel for some distros
# In RHEL8
# pip3 install msal[broker]==1.33.0b1
29.89 ERROR: Could not find a version that satisfies the requirement pymsalruntime<0.19,>=0.18; (python_version >= "3.8" and platform_system == "Linux") and extra == "broker" (from msal[broker]) (from versions: 0.3.0, 0.3.1, 0.3.2, 0.4.0, 0.5.0, 0.6.0, 0.7.0, 0.8.0, 0.8.1, 0.9.0, 0.10.0, 0.11.0, 0.11.2, 0.12.4, 0.13.0, 0.13.1, 0.13.2, 0.13.9, 0.13.12, 0.14.0, 0.14.2a1, 0.14.2, 0.15.0a1)
29.89 ERROR: No matching distribution found for pymsalruntime<0.19,>=0.18; (python_version >= "3.8" and platform_system == "Linux") and extra == "broker"
  1. build error during debbuild
2025-06-05T12:11:22.3105530Z dpkg-shlibdeps: error: cannot find library libnettle-2d3bda6c.so.8.4 needed by debian/azure-cli/opt/az/lib/python3.12/site-packages/pymsalruntime.libs/librtmp-2401c4fc.so.1 (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
2025-06-05T12:11:22.3107569Z dpkg-shlibdeps: error: cannot find library libgmp-4dc20a90.so.10.4.1 needed by debian/azure-cli/opt/az/lib/python3.12/site-packages/pymsalruntime.libs/librtmp-2401c4fc.so.1 (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
2025-06-05T12:11:22.3487957Z dpkg-shlibdeps: error: cannot find library libicuuc-4683f362.so.70.1 needed by debian/azure-cli/opt/az/lib/python3.12/site-packages/pymsalruntime.libs/libharfbuzz-icu-6c8e56ce.so.0.20704.0 (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
2025-06-05T12:11:22.3488860Z dpkg-shlibdeps: error: cannot find library libharfbuzz-da47b2ba.so.0.20704.0 needed by debian/azure-cli/opt/az/lib/python3.12/site-packages/pymsalruntime.libs/libharfbuzz-icu-6c8e56ce.so.0.20704.0 (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
2025-06-05T12:11:22.3550892Z dpkg-shlibdeps: error: cannot find library libgstreamer-1-8f238839.0.so.0.2003.0 needed by debian/azure-cli/opt/az/lib/python3.12/site-packages/pymsalruntime.libs/libgstallocators-1-9bb4cfad.0.so.0.2001.0 (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
2025-06-05T12:11:22.3553218Z dpkg-shlibdeps: error: cannot find library libgobject-2.0.so.0 needed by debian/azure-cli/opt/az/lib/python3.12/site-packages/pymsalruntime.libs/libgstallocators-1-9bb4cfad.0.so.0.2001.0 (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
2025-06-05T12:11:22.3555439Z dpkg-shlibdeps: error: cannot find library libglib-2.0.so.0 needed by debian/azure-cli/opt/az/lib/python3.12/site-packages/pymsalruntime.libs/libgstallocators-1-9bb4cfad.0.so.0.2001.0 (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
2025-06-05T12:11:22.3688677Z dpkg-shlibdeps: error: cannot find library libGLdispatch-a4f26424.so.0.0.0 needed by debian/azure-cli/opt/az/lib/python3.12/site-packages/pymsalruntime.libs/libEGL-69816a70.so.1.1.0 (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
2025-06-05T12:11:22.4637111Z dpkg-shlibdeps: error: cannot find library libmd-bb376813.so.0.0.5 needed by debian/azure-cli/opt/az/lib/python3.12/site-packages/pymsalruntime.libs/libbsd-e4ad21c2.so.0.11.5 (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
2025-06-05T12:11:22.8596425Z dpkg-shlibdeps: error: cannot find library libcrypto-ee446395.so.3 needed by debian/azure-cli/opt/az/lib/python3.12/site-packages/pymsalruntime.libs/libssl-4194be63.so.3 (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
2025-06-05T12:11:22.8736264Z dpkg-shlibdeps: error: cannot find library libdatrie-bb12f6de.so.1.4.0 needed by debian/azure-cli/opt/az/lib/python3.12/site-packages/pymsalruntime.libs/libthai-f8459dca.so.0.3.1 (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
  1. error during azurelinux3 rpm installation
 > [execution-env 4/4] RUN tdnf install -y ./azure-cli-dev.rpm &&     az --version:
0.122 Loaded plugin: tdnfrepogpgcheck
2.352 1. nothing provides libatomic-0413f5aa.so.1.2.0(LIBATOMIC_1.0)(64bit) needed by azure-cli-2.74.0-1.azl3.x86_64
2.352 Found 1 problem(s) while resolving
2.352 Error(1301) : Solv general runtime error

Ref: https://dev.azure.com/azclitools/public/_build/results?buildId=248990&view=logs&j=bc88b567-a18f-591c-ab02-f8ae2aae5855&t=ddc403b1-8548-54eb-33e6-45f6b602c3c2

@bebound
Copy link
Contributor

bebound commented Jun 9, 2025

Since pymsalruntime is required in Linux, this PR also added an empty entry in the homebrew formula, which needs to be removed.

  resource "pymsalruntime" do
    url ""
    sha256 ""
  end

@cceneag
Copy link

cceneag commented Jun 24, 2025

This pull request updates dependencies in the Azure CLI codebase to incorporate newer versions of key libraries. The most significant changes include upgrading the msal[broker] and pymsalruntime packages across multiple files to ensure compatibility and access to new features.

Dependency Updates:

  • msal[broker] Version Upgrade:

    • Updated from 1.32.3 to 1.33.0b1 in the following files:
      • src/azure-cli-core/setup.py
      • src/azure-cli/requirements.py3.Darwin.txt
      • src/azure-cli/requirements.py3.Linux.txt
      • src/azure-cli/requirements.py3.windows.txt
  • pymsalruntime Version Upgrade:

    • Updated from 0.16.2 to 0.18.1 in src/azure-cli/requirements.py3.windows.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Account az login/account Auto-Assign Auto assign by bot Packaging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

unable to login under my subscription/teant-id: Couldn't lock file '...TUE8.bin' for writing

6 participants