Skip to content

Conversation

@necusjz
Copy link
Member

@necusjz necusjz commented Dec 10, 2025

Related command

Description

#32489 (comment)

the problem itself will cause pull requests based on the new sdk structure to fail in ci, e.g., #31949.

close: #32489

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature


This checklist is used to make sure that common guidelines for a pull request are followed.

@necusjz necusjz self-assigned this Dec 10, 2025
Copilot AI review requested due to automatic review settings December 10, 2025 06:19
@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Dec 10, 2025

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

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

azure-client-tools-bot-prd bot commented Dec 10, 2025

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

@yonzhan
Copy link
Collaborator

yonzhan commented Dec 10, 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>

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 removes the obsolete Python 2 patching step from the Windows build script. The patch_models_v2.py script was used to generate Python 2/3 compatible model files for AutoRest-generated SDKs, which is no longer necessary since Python 2 reached end-of-life and Azure CLI only supports Python 3.

Key Changes

  • Removed the call to patch_models_v2.py from the Windows build script
  • Eliminates build failures caused by the patching step interfering with the new SDK structure

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@necusjz
Copy link
Member Author

necusjz commented Dec 11, 2025

Q from @bebound: Based on the initial PR's description, it's used to Concatenate management sdk model files into 1 to minimize the file number in the installer. Does it only process Python2 SDK, does it still produce the same zip file after removing this step?

A: i believe such logic is implied in the changes to the build.cmd (not patch_models_v2.py) of #7633.

the following is the detailed experiment:
both #32519 (without the step) and #32489 (with the step) are based on the commit a3298ec255b9e7582d91fb32cbd2072bb8071218, let's compare their logs of Build Windows ZIP x64:

  • prev:
    2025-12-11T00:52:52.4003427Z Building ZIP...
    2025-12-11T00:53:01.1509201Z 
    2025-12-11T00:53:01.1510435Z 7-Zip 25.00 (x64) : Copyright (c) 1999-2025 Igor Pavlov : 2025-07-05
    2025-12-11T00:53:01.1510605Z 
    2025-12-11T00:53:01.1510891Z Scanning the drive:
    2025-12-11T00:53:01.1511110Z 1962 folders, 12018 files, 272189213 bytes (260 MiB)
    2025-12-11T00:53:01.1511194Z 
    2025-12-11T00:53:01.1511413Z Creating archive: D:\a\_work\1\s\build_scripts\windows\scripts\..\out\Microsoft Azure CLI.zip
    2025-12-11T00:53:01.1511523Z 
    2025-12-11T00:53:01.1511717Z Add new data to archive: 1962 folders, 12018 files, 272189213 bytes (260 MiB)
    
  • curr:
    2025-12-10T06:33:34.6623861Z Building ZIP...
    2025-12-10T06:33:43.1545974Z 
    2025-12-10T06:33:43.1546949Z 7-Zip 25.00 (x64) : Copyright (c) 1999-2025 Igor Pavlov : 2025-07-05
    2025-12-10T06:33:43.1547114Z 
    2025-12-10T06:33:43.1547381Z Scanning the drive:
    2025-12-10T06:33:43.1547691Z 1962 folders, 12018 files, 272189213 bytes (260 MiB)
    2025-12-10T06:33:43.1547851Z 
    2025-12-10T06:33:43.1548202Z Creating archive: D:\a\_work\1\s\build_scripts\windows\scripts\..\out\Microsoft Azure CLI.zip
    2025-12-10T06:33:43.1548418Z 
    2025-12-10T06:33:43.1548762Z Add new data to archive: 1962 folders, 12018 files, 272189213 bytes (260 MiB)
    

they are identical. hence, we can conclude that it still produces the same zip file after removing this step.

@necusjz necusjz merged commit 96e2a7c into Azure:dev Dec 11, 2025
62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto-Assign Auto assign by bot CI CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants