Skip to content

[AutoPR azure-mgmt-cognitiveservices]-generated-from-SDK Generation - Python-7065615 - #49963

Open
azure-sdk-automation[bot] wants to merge 4 commits into
mainfrom
sdkauto/azure-mgmt-cognitiveservices-7065615
Open

azure-sdk-automation[bot] wants to merge 4 commits into
mainfrom
sdkauto/azure-mgmt-cognitiveservices-7065615

Conversation

@azure-sdk-automation

Copy link
Copy Markdown
Contributor

SDK Generation Details

Note

This pull request was generated automatically.

Detail Value
TypeSpec source specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/CognitiveServices/tspconfig.yaml at bb09e37
API versions 2026-11-01 (Namespace: Microsoft.CognitiveServices)
Pipeline run SDK Generation #7065615
Release plan Release plan #37743
Submitted by fmabrouk@microsoft.com

Important

Complete the SDK release prerequisites before release.

Copilot AI balanced review requested due to automatic review settings November 11, 2026 18:56
@azure-sdk-automation azure-sdk-automation Bot added the auto-release When merged to main, release pipelines for this PR's changed packages trigger automatically. label Nov 11, 2026
@azure-sdk-automation

Copy link
Copy Markdown
Contributor Author

Add sdk-api-review-ready when this working PR is ready for API review of azure-mgmt-cognitiveservices. The review will compare target version 15.0.0 from this working PR against baseline version 14.1.0 (tag azure-mgmt-cognitiveservices_14.1.0). If you need a different comparison, use the Azure SDK CLI (azsdk apireview create).

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
9 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The GA regeneration removes Cost Control models and operations still referenced by tests, causing collection-time AttributeError failures and leaving live tests dependent on an unavailable API.

1 open issue
What changed in this PR

Regenerates azure-mgmt-cognitiveservices for API version 2026-11-01 and promotes the package from preview to stable 15.0.0.

Changes:

  • Updates generation provenance, API defaults, version, and stability metadata.
  • Removes preview-only operation exports and refreshes generated tests and samples for the stable API.
  • Applies formatting-only changes to handwritten Cost Control tests.

Paths below are relative to sdk/cognitiveservices/azure-mgmt-cognitiveservices/. Generated samples and tests are listed for completeness but excluded from substantive review.

File Description
tsp-location.yaml Updates TypeSpec source commit.
tests/​test_cost_controls_operations.py Removes an extra blank line.
tests/​test_cost_controls_operations_async.py Removes an extra blank line.
tests/​test_cost_controls_live.py Adjusts formatting only.
pyproject.toml Marks package stable; adds Python 3.15 classifier.
generated_tests/​test_cognitive_services_management_subscription_rai_policy_operations.py Removes preview policy fields.
generated_tests/​test_cognitive_services_management_subscription_rai_policy_operations_async.py Removes preview policy fields.
generated_tests/​test_cognitive_services_management_rai_regos_operations.py Deletes generated Rego tests.
generated_tests/​test_cognitive_services_management_rai_regos_operations_async.py Deletes generated async Rego tests.
generated_tests/​test_cognitive_services_management_rai_policies_operations.py Removes preview policy fields.
generated_tests/​test_cognitive_services_management_rai_bindings_operations.py Deletes generated binding tests.
generated_tests/​test_cognitive_services_management_rai_bindings_operations_async.py Deletes generated async binding tests.
generated_tests/​test_cognitive_services_management_projects_operations.py Removes capability settings.
generated_tests/​test_cognitive_services_management_projects_operations_async.py Removes capability settings.
generated_tests/​test_cognitive_services_management_managed_compute_usages_operation_group_operations.py Deletes generated compute-usage tests.
generated_tests/​test_cognitive_services_management_managed_compute_usages_operation_group_operations_async.py Deletes generated async compute-usage tests.
generated_tests/​test_cognitive_services_management_deployments_operations.py Removes preview deployment fields.
generated_tests/​test_cognitive_services_management_deployments_operations_async.py Removes preview deployment fields.
generated_tests/​test_cognitive_services_management_compute_operations_operations.py Deletes generated compute-operation tests.
generated_tests/​test_cognitive_services_management_compute_operations_operations_async.py Deletes generated async compute-operation tests.
generated_tests/​test_cognitive_services_management_adapter_deployments_operations.py Deletes generated adapter tests.
generated_samples/​update.py Updates source-version comment only.
generated_samples/​update_workbench_reset_compute_properties.py Deletes workbench reset sample.
generated_samples/​update_workbench_compute_properties.py Deletes workbench compute-update sample.
generated_samples/​update_vm_managed_compute_deployment.py Deletes VM deployment-update sample.
generated_samples/​update_shared_commitment_plan.py Updates source-version comment only.
generated_samples/​update_rai_rego.py Deletes Rego update sample.
generated_samples/​update_rai_policy_acs.py Removes preview policy configuration.
generated_samples/​update_rai_binding.py Deletes binding update sample.
generated_samples/​update_quota_tier.py Updates source-version comment only.
generated_samples/​update_projects.py Updates source-version comment only.
generated_samples/​update_metadata.py Deletes Cost Control metadata sample.
generated_samples/​update_managed_compute_deployment.py Deletes managed deployment-update sample.
generated_samples/​update_deployment.py Updates source-version comment only.
generated_samples/​update_defender_for_ai_setting.py Updates source-version comment only.
generated_samples/​update_arc_deployment.py Deletes Arc deployment-update sample.
generated_samples/​update_account.py Removes Cost Control connections.
generated_samples/​update_account_rotate_trusted_certificate_sources.py Demonstrates certificate-source rotation.
generated_samples/​update_account_preserve_trusted_certificate_sources.py Demonstrates preserving certificate sources.
generated_samples/​update_account_clear_trusted_certificate_sources.py Demonstrates clearing certificate sources.
generated_samples/​test_rai_external_safety_provider.py Updates source-version comment only.
generated_samples/​stop.py Updates source-version comment only.
generated_samples/​stop_workbench.py Deletes workbench stop sample.
generated_samples/​stop_container_instance_compute.py Deletes container compute-stop sample.
generated_samples/​start.py Updates source-version comment only.
generated_samples/​start_workbench.py Deletes workbench start sample.
generated_samples/​start_container_instance_compute.py Deletes container compute-start sample.
generated_samples/​resume_deployment.py Updates source-version comment only.
generated_samples/​restart_workbench.py Deletes workbench restart sample.
generated_samples/​restart_container_instance_compute.py Deletes container compute-restart sample.
generated_samples/​regenerate_key.py Updates source-version comment only.
generated_samples/​reconcile_network_security_perimeter_configurations.py Updates source-version comment only.
generated_samples/​put_workbench.py Deletes workbench creation sample.
generated_samples/​put_subscription_rai_policy.py Updates source-version comment only.
generated_samples/​put_rai_topic.py Updates source-version comment only.
generated_samples/​put_rai_tool_label.py Updates source-version comment only.
generated_samples/​put_rai_rego.py Deletes Rego creation sample.
generated_samples/​put_rai_policy.py Updates source-version comment only.
generated_samples/​put_rai_policy_with_egress.py Updates source-version comment only.
generated_samples/​put_rai_policy_acs.py Removes preview policy configuration.
generated_samples/​put_rai_policy_acs_without_tools.py Removes preview policy configuration.
generated_samples/​put_rai_external_safety_provider.py Updates source-version comment only.
generated_samples/​put_rai_blocklist.py Updates source-version comment only.
generated_samples/​put_rai_blocklist_item.py Updates source-version comment only.
generated_samples/​put_rai_binding.py Deletes binding creation sample.
generated_samples/​put_private_endpoint_connection.py Updates source-version comment only.
generated_samples/​put_encryption_scope.py Updates source-version comment only.
generated_samples/​put_deployment.py Updates source-version comment only.
generated_samples/​put_deployment_with_speculative_decoding.py Removes speculative decoding configuration.
generated_samples/​put_defender_for_ai_setting.py Updates source-version comment only.
generated_samples/​put_compute.py Deletes compute creation sample.
generated_samples/​put_commitment_plan.py Updates source-version comment only.
generated_samples/​purge_deleted_account.py Updates source-version comment only.
generated_samples/​provision_managed_network.py Updates source-version comment only.
generated_samples/​post_outbound_rules_v2.py Updates source-version comment only.
generated_samples/​pause_deployment.py Updates source-version comment only.
generated_samples/​patch_managed_network_v2.py Updates source-version comment only.
generated_samples/​list.py Updates source-version comment only.
generated_samples/​list_workbenches.py Deletes workbench listing sample.
generated_samples/​list_vm_managed_compute_deployments.py Deletes VM deployment listing sample.
generated_samples/​list_usages.py Updates source-version comment only.
generated_samples/​list_usages_with_resource_metadata.py Updates source-version comment only.
generated_samples/​list_usages_global_scope.py Updates source-version comment only.
generated_samples/​list_usages_data_zone_scope.py Updates source-version comment only.
generated_samples/​list_usages_classic_scope.py Updates source-version comment only.
generated_samples/​list_skus.py Updates source-version comment only.
generated_samples/​list_shared_commitment_plans_by_subscription.py Updates source-version comment only.
generated_samples/​list_shared_commitment_plans_by_resource_group.py Updates source-version comment only.
generated_samples/​list_shared_commitment_plan_associations.py Updates source-version comment only.
generated_samples/​list_rule_v2.py Updates source-version comment only.
generated_samples/​list_rai_topics.py Updates source-version comment only.
generated_samples/​list_rai_tool_labels.py Updates source-version comment only.
generated_samples/​list_rai_policies.py Updates source-version comment only.
generated_samples/​list_rai_external_safety_providers.py Updates source-version comment only.
generated_samples/​list_rai_content_filters.py Updates source-version comment only.
generated_samples/​list_quota_tiers.py Updates source-version comment only.
generated_samples/​list_projects.py Updates source-version comment only.
generated_samples/​list_private_link_resources.py Updates source-version comment only.
generated_samples/​list_private_endpoint_connections.py Updates source-version comment only.
generated_samples/​list_network_security_perimeter_configurations.py Updates source-version comment only.
generated_samples/​list_model_capacities.py Updates source-version comment only.
generated_samples/​list_model_capacities_global_scope.py Updates source-version comment only.
generated_samples/​list_model_capacities_data_zone_scope.py Updates source-version comment only.
generated_samples/​list_model_capacities_classic_scope.py Updates source-version comment only.
generated_samples/​list_managed_network_v2.py Updates source-version comment only.
generated_samples/​list_managed_compute_usages.py Deletes compute-usage listing sample.
generated_samples/​list_managed_compute_deployments.py Deletes managed deployment listing sample.
generated_samples/​list_managed_compute_capacities.py Updates source-version comment only.
generated_samples/​list_managed_compute_capacities_with_unsupported_location.py Switches to managed-capacity listing.
generated_samples/​list_managed_compute_capacities_with_location.py Switches to managed-capacity listing.
generated_samples/​list_managed_compute_capacities_with_deployment.py Switches to managed-capacity listing.
generated_samples/​list_location_models.py Updates source-version comment only.
generated_samples/​list_location_based_model_capacities.py Updates source-version comment only.
generated_samples/​list_location_based_model_capacities_global_scope.py Updates source-version comment only.
generated_samples/​list_location_based_model_capacities_data_zone_scope.py Updates source-version comment only.
generated_samples/​list_location_based_model_capacities_classic_scope.py Updates source-version comment only.
generated_samples/​list_keys.py Updates source-version comment only.
generated_samples/​list_encryption_scopes.py Updates source-version comment only.
generated_samples/​list_deployments.py Updates source-version comment only.
generated_samples/​list_deployment_skus.py Updates source-version comment only.
generated_samples/​list_deleted_accounts_by_subscription.py Updates source-version comment only.
generated_samples/​list_defender_for_ai_setting.py Updates source-version comment only.
generated_samples/​list_computes.py Deletes compute listing sample.
generated_samples/​list_commitment_tiers.py Updates source-version comment only.
generated_samples/​list_commitment_plans.py Updates source-version comment only.
generated_samples/​list_blocklists.py Updates source-version comment only.
generated_samples/​list_blocklist_items.py Updates source-version comment only.
generated_samples/​list_agents.py Updates source-version comment only.
generated_samples/​list_adapter_deployments.py Deletes adapter listing sample.
generated_samples/​list_accounts_by_subscription.py Updates source-version comment only.
generated_samples/​list_accounts_by_resource_group.py Updates source-version comment only.
generated_samples/​list_account_models.py Updates source-version comment only.
generated_samples/​get.py Updates source-version comment only.
generated_samples/​get_vm_managed_compute_deployment.py Deletes VM deployment retrieval sample.
generated_samples/​get_usages.py Updates source-version comment only.
generated_samples/​get_usages_global_scope.py Updates source-version comment only.
generated_samples/​get_usages_data_zone_scope.py Updates source-version comment only.
generated_samples/​get_usages_classic_scope.py Updates source-version comment only.
generated_samples/​get_subscription_rai_policy.py Updates source-version comment only.
generated_samples/​get_skus.py Updates source-version comment only.
generated_samples/​get_shared_commitment_plan.py Updates source-version comment only.
generated_samples/​get_shared_commitment_plan_association.py Updates source-version comment only.
generated_samples/​get_rule_v2.py Updates source-version comment only.
generated_samples/​get_rai_topic.py Updates source-version comment only.
generated_samples/​get_rai_tool_label.py Updates source-version comment only.
generated_samples/​get_rai_rego.py Deletes Rego retrieval sample.
generated_samples/​get_rai_policy.py Updates source-version comment only.
generated_samples/​get_rai_policy_acs.py Updates source-version comment only.
generated_samples/​get_rai_external_safety_provider.py Updates source-version comment only.
generated_samples/​get_rai_content_filter.py Updates source-version comment only.
generated_samples/​get_rai_blocklist.py Updates source-version comment only.
generated_samples/​get_rai_blocklist_item.py Updates source-version comment only.
generated_samples/​get_rai_binding.py Deletes binding retrieval sample.
generated_samples/​get_quota_tier.py Updates source-version comment only.
generated_samples/​get_project.py Updates source-version comment only.
generated_samples/​get_private_endpoint_connection.py Updates source-version comment only.
generated_samples/​get_operations.py Updates source-version comment only.
generated_samples/​get_network_security_perimeter_configurations.py Updates source-version comment only.
generated_samples/​get_managed_network_v2.py Updates source-version comment only.
generated_samples/​get_managed_compute_deployment.py Deletes managed deployment retrieval sample.
generated_samples/​get_legacy.py Deletes legacy Cost Control sample.
generated_samples/​get_encryption_scope.py Updates source-version comment only.
generated_samples/​get_deployment.py Updates source-version comment only.
generated_samples/​get_deleted_account.py Updates source-version comment only.
generated_samples/​get_defender_for_ai_setting.py Updates source-version comment only.
generated_samples/​get_container_instance_compute.py Deletes container compute retrieval sample.
generated_samples/​get_compute_operation_status.py Deletes compute-status sample.
generated_samples/​get_commitment_plan.py Updates source-version comment only.
generated_samples/​get_arc_deployment.py Deletes Arc deployment retrieval sample.
generated_samples/​get_adapter_deployment.py Deletes adapter retrieval sample.
generated_samples/​get_account.py Updates source-version comment only.
generated_samples/​get_account_with_trusted_certificate_sources.py Switches to account retrieval.
generated_samples/​evaluate_deployment_policies.py Deletes policy evaluation sample.
generated_samples/​enable.py Updates source-version comment only.
generated_samples/​disable.py Updates source-version comment only.
generated_samples/​delete.py Updates source-version comment only.
generated_samples/​delete_workbench.py Deletes workbench deletion sample.
generated_samples/​delete_subscription_rai_policy.py Updates source-version comment only.
generated_samples/​delete_shared_commitment_plan.py Updates source-version comment only.
generated_samples/​delete_shared_commitment_plan_association.py Updates source-version comment only.
generated_samples/​delete_rule_v2.py Updates source-version comment only.
generated_samples/​delete_rai_topic.py Updates source-version comment only.
generated_samples/​delete_rai_tool_label.py Updates source-version comment only.
generated_samples/​delete_rai_rego.py Deletes Rego deletion sample.
generated_samples/​delete_rai_policy.py Updates source-version comment only.
generated_samples/​delete_rai_policy_acs.py Updates source-version comment only.
generated_samples/​delete_rai_external_safety_provider.py Updates source-version comment only.
generated_samples/​delete_rai_blocklist.py Updates source-version comment only.
generated_samples/​delete_rai_blocklist_items.py Updates source-version comment only.
generated_samples/​delete_rai_blocklist_item.py Updates source-version comment only.
generated_samples/​delete_rai_binding.py Deletes binding deletion sample.
generated_samples/​delete_project.py Updates source-version comment only.
generated_samples/​delete_private_endpoint_connection.py Updates source-version comment only.
generated_samples/​delete_managed_network_v2.py Updates source-version comment only.
generated_samples/​delete_managed_compute_deployment.py Deletes managed deployment deletion sample.
generated_samples/​delete_encryption_scope.py Updates source-version comment only.
generated_samples/​delete_deployment.py Updates source-version comment only.
generated_samples/​delete_compute.py Deletes compute deletion sample.
generated_samples/​delete_commitment_plan.py Updates source-version comment only.
generated_samples/​delete_arc_deployment.py Deletes Arc deployment deletion sample.
generated_samples/​delete_adapter_deployment.py Deletes adapter deletion sample.
generated_samples/​delete_account.py Updates source-version comment only.
generated_samples/​create.py Updates source-version comment only.
generated_samples/​create_shared_commitment_plan.py Updates source-version comment only.
generated_samples/​create_shared_commitment_plan_association.py Updates source-version comment only.
generated_samples/​create_project.py Removes project capability settings.
generated_samples/​create_project_min.py Updates source-version comment only.
generated_samples/​create_or_update.py Updates source-version comment only.
generated_samples/​create_or_update_vm_managed_compute_deployment.py Deletes VM deployment creation sample.
generated_samples/​create_or_update_rule_v2.py Updates source-version comment only.
generated_samples/​create_or_update_quota_tier.py Updates source-version comment only.
generated_samples/​create_or_update_managed_network_v2.py Updates source-version comment only.
generated_samples/​create_or_update_managed_compute_deployment.py Deletes managed deployment creation sample.
generated_samples/​create_or_update_arc_deployment.py Deletes Arc deployment creation sample.
generated_samples/​create_or_update_arc_deployment_with_template.py Deletes templated Arc deployment sample.
generated_samples/​create_or_update_adapter_deployment.py Deletes adapter creation sample.
generated_samples/​create_account.py Removes account capability settings.
generated_samples/​create_account_with_trusted_certificate_sources.py Demonstrates account certificate sources.
generated_samples/​create_account_with_agent_hosting_configuration.py Removes agent-hosting configuration.
generated_samples/​create_account_min.py Updates source-version comment only.
generated_samples/​check_sku_availability.py Updates source-version comment only.
generated_samples/​check_domain_availability.py Updates source-version comment only.
generated_samples/​calculate_model_capacity.py Updates source-version comment only.
generated_samples/​add_rai_blocklist_items.py Updates source-version comment only.
azure/​mgmt/​cognitiveservices/​operations/​__init__.py Removes preview operation exports.
azure/​mgmt/​cognitiveservices/​aio/​operations/​__init__.py Removes async preview operation exports.
azure/​mgmt/​cognitiveservices/​aio/​_configuration.py Sets stable API default and documentation.
azure/​mgmt/​cognitiveservices/​_version.py Promotes version to 15.0.0.
azure/​mgmt/​cognitiveservices/​_utils/​utils.py Removes ETag preparation helpers.
azure/​mgmt/​cognitiveservices/​_configuration.py Sets stable API default and documentation.
api.metadata.yml Refreshes API hash and version metadata.
_metadata.json Records stable API and updated generator provenance.

Review effort: Balanced

@ChenxiJiang333 Chenxi Jiang (ChenxiJiang333) added the mgmt-review-needed PR for Mgmt SDK is ready to review label Nov 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Management SDK PR review

Review completeness: partial - human review required. No package-wide approval is implied.

Findings: None.

Unverified checks

Package Check Reason
sdk/cognitiveservices/azure-mgmt-cognitiveservices Breaking-change attribution truncated 55 of 63 breaking-change entries were not reviewed. Attribution is bounded to 8 entries initially and a 9000-byte MCP request budget; human review is required for the omitted suffix.

Breaking-change attribution

Package: sdk/cognitiveservices/azure-mgmt-cognitiveservices | Release: 15.0.0 (2026-11-11)

Changelog entry Cause Evidence and explanation Confidence
Method `CognitiveServicesManagementClient.calculate_model_capacity` inserted a `positional_or_keyword` parameter `parameters`
Change: added
TypeSpec/API routes.tsp's calculateModelCapacity operation declares Request = CalculateModelCapacityParameter, a single body model, so the generator now passes the request as one `parameters` argument instead of individual fields.
routes.tsp
High
Method `CognitiveServicesManagementClient.calculate_model_capacity` deleted or renamed its parameter `model` of kind `positional_or_keyword`
Change: added
TypeSpec/API The `model` field moved into the CalculateModelCapacityParameter body model used by calculateModelCapacity's Request, so it is no longer a standalone operation parameter.
routes.tsp
High
Method `CognitiveServicesManagementClient.calculate_model_capacity` deleted or renamed its parameter `sku_name` of kind `positional_or_keyword`
Change: added
TypeSpec/API The `skuName` field moved into the CalculateModelCapacityParameter body model used by calculateModelCapacity's Request, so `sku_name` is no longer a standalone operation parameter.
routes.tsp
High
Method `CognitiveServicesManagementClient.calculate_model_capacity` deleted or renamed its parameter `workloads` of kind `positional_or_keyword`
Change: added
TypeSpec/API The `workloads` field moved into the CalculateModelCapacityParameter body model used by calculateModelCapacity's Request, so it is no longer a standalone operation parameter.
routes.tsp
High
Method `CognitiveServicesManagementClient.check_domain_availability` inserted a `positional_or_keyword` parameter `parameters`
Change: added
TypeSpec/API routes.tsp's checkDomainAvailability operation declares Request = CheckDomainAvailabilityParameter, a single body model, so the generator now passes the request as one `parameters` argument instead of individual fields.
routes.tsp
High
Method `CognitiveServicesManagementClient.check_domain_availability` deleted or renamed its parameter `kind` of kind `positional_or_keyword`
Change: added
TypeSpec/API The `kind` field moved into the CheckDomainAvailabilityParameter body model used by checkDomainAvailability's Request, so it is no longer a standalone operation parameter.
routes.tsp
High
Method `CognitiveServicesManagementClient.check_domain_availability` deleted or renamed its parameter `subdomain_name` of kind `positional_or_keyword`
Change: added
TypeSpec/API The `subdomainName` field moved into the CheckDomainAvailabilityParameter body model used by checkDomainAvailability's Request, so `subdomain_name` is no longer a standalone operation parameter.
routes.tsp
High
Method `CognitiveServicesManagementClient.check_domain_availability` deleted or renamed its parameter `type` of kind `positional_or_keyword`
Change: added
TypeSpec/API The `type` field moved into the CheckDomainAvailabilityParameter body model used by checkDomainAvailability's Request, so it is no longer a standalone operation parameter.
routes.tsp
High

Package: sdk/cognitiveservices/azure-mgmt-cognitiveservices | Release: unverified collection

Needs human review: 55 of 63 breaking-change entries were not reviewed. Attribution is bounded to 8 entries initially and a 9000-byte MCP request budget; human review is required for the omitted suffix.

Package: sdk/cognitiveservices/azure-mgmt-cognitiveservices | Unreviewed breaking changes

Needs human review: 55 of 63 breaking-change entries were not reviewed. Attribution is bounded to 8 entries initially and a 9000-byte MCP request budget; human review is required for the omitted suffix.
Omitted changelog entries

Review summary

Package Completed checks
sdk/cognitiveservices/azure-mgmt-cognitiveservices Management package discovery; Version consistency _version.py
CHANGELOG.md; Preview version _version.py
_metadata.json; Changelog date CHANGELOG.md; Stability flags _version.py
pyproject.toml; Initial client name (not applicable: The trusted release baseline confirms a previously released package.) CHANGELOG.md; Client signature _client.py; Client name consistency _client.py; README snippets README.md; API-version drift

@github-actions

Copy link
Copy Markdown
Contributor
[Pilot] PR Pipeline Failure Analysis

What failed

Azure Pipeline build 7067558 ("python - pullrequest") failed identically across all 7 platform jobs (Ubuntu2404_313/314/315, ubuntu2404_311, ubuntu2404_311_coverage, macos311, windows2022_312), for both sdist and whl installs. Same two root causes everywhere:

  1. sdk/cognitiveservices/azure-mgmt-cognitiveservices/tests/test_computes_operations_patch.py and test_computes_operations_patch_async.py fail at collection with:
    ImportError: cannot import name '_ComputeListPolling' from 'azure.mgmt.cognitiveservices.operations._patch'
    ImportError: cannot import name '_AsyncComputeListPolling' from 'azure.mgmt.cognitiveservices.aio.operations._patch'
  2. test_cost_controls_operations.py / test_cost_controls_operations_async.py fail at collection with:
    AttributeError: module 'azure.mgmt.cognitiveservices.models' has no attribute 'CostControlThreshold'
    AttributeError: ... has no attribute 'CostControlRule'
Relevant pipeline output
tests/test_computes_operations_patch.py:29: in <module>
    from azure.mgmt.cognitiveservices.operations._patch import _ComputeListPolling, _encode_continuation_token
E   ImportError: cannot import name '_ComputeListPolling' from 'azure.mgmt.cognitiveservices.operations._patch'

tests/test_computes_operations_patch_async.py:25: in <module>
    from azure.mgmt.cognitiveservices.aio.operations._patch import _AsyncComputeListPolling
E   ImportError: cannot import name '_AsyncComputeListPolling' from 'azure.mgmt.cognitiveservices.aio.operations._patch'

tests/test_cost_controls_operations.py:24: in <module>
    models.CostControlThreshold(type="percentage", value=80, action="alert"),
E   AttributeError: module 'azure.mgmt.cognitiveservices.models' has no attribute 'CostControlThreshold'

tests/test_cost_controls_operations_async.py:26: in <module>
    RULE = models.CostControlRule(
E   AttributeError: module 'azure.mgmt.cognitiveservices.models' has no attribute 'CostControlRule'

Recommended next steps

  • This is a cascading failure with two distinct root causes, both present in the committed test suite but missing from the generated/customized code shipped in this PR:
    • Add _ComputeListPolling / _encode_continuation_token to operations/_patch.py and _AsyncComputeListPolling to aio/operations/_patch.py (per the patch diagnosis checklist, confirm whether these polling helpers were dropped from customization during regeneration vs. never defined).
    • Add CostControlThreshold and CostControlRule model classes — verify whether the TypeSpec/service spec defines these models and whether they were omitted during code generation, or regenerate from the updated spec.
  • Once both are present, re-run: pytest sdk/cognitiveservices/azure-mgmt-cognitiveservices/tests/test_computes_operations_patch.py sdk/cognitiveservices/azure-mgmt-cognitiveservices/tests/test_computes_operations_patch_async.py sdk/cognitiveservices/azure-mgmt-cognitiveservices/tests/test_cost_controls_operations.py sdk/cognitiveservices/azure-mgmt-cognitiveservices/tests/test_cost_controls_operations_async.py
  • See https://aka.ms/ci-fix

Automated fix: Requested

Generated by Pipeline Analysis Next Steps · copilot · sonnet50 · 39.1 AIC · ⌖ 0.574 AIC · ⊞ 9.1K · ◷

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

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

Labels

auto-release When merged to main, release pipelines for this PR's changed packages trigger automatically. mgmt-review-needed PR for Mgmt SDK is ready to review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants