Skip to content

[AutoPR azure-batch]-generated-from-SDK Generation - Python-7048707 - #49872

Open
azure-sdk-automation[bot] wants to merge 6 commits into
mainfrom
sdkauto/azure-batch-7048707
Open

azure-sdk-automation[bot] wants to merge 6 commits into
mainfrom
sdkauto/azure-batch-7048707

Conversation

@azure-sdk-automation

Copy link
Copy Markdown
Contributor

Configurations: 'specification/batch/data-plane/Batch/tspconfig.yaml', SDK Release Type: stable, API Versions: '2026-10-01' (Namespace: 'Azure.Batch'), and CommitSHA: '0b01059c3d95a84bc84ff16a4bb0fd10f66f3abd' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=7048707 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. Release plan link: https://azsdk-releaseplan-dashboard-hveph5aqhhcfhtgu.westus-01.azurewebsites.net/?releaseplan=35234 Submitted by: xingwu@microsoft.com

Copilot AI balanced review requested due to automatic review settings November 6, 2026 19:53
@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 6, 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-batch. The review will compare target version 15.2.0 from this working PR against baseline version 15.1.0 (tag azure-batch_15.1.0). If you need a different comparison, use the Azure SDK CLI (azsdk apireview create).

@github-actions github-actions Bot added the Batch label Nov 6, 2026
@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

Regeneration breaks Shared Key authentication and removes public models and polling methods, while the stable release’s Beta classifier would fail package validation.

5 open issues
What changed in this PR

Regenerates the Azure Batch Python SDK for service API 2026-10-01, targeting stable package version 15.2.0.

Changes:

  • Updates models, enums, client configuration, and generation metadata.
  • Removes handwritten client, model, and polling customizations while refreshing serialization utilities.
  • Moves packaging settings into pyproject.toml, raises the Python minimum to 3.10, and reformats samples.

All paths below are relative to sdk/batch/azure-batch/.

File Description
tsp-location.yaml Updates the source specification commit.
tests/​async_wrapper.py Adds a formatting-only trailing comma.
sdk_packaging.toml Removes settings moved into pyproject.toml.
samples/​tutorial_parallel_python.py Reformats the parallel-processing tutorial.
samples/​quick_run_python.py Reformats the quickstart sample.
samples/​pool_endpoint_configuration.py Reformats network configuration examples.
samples/​create_pool_ephemeral_os_disk.py Reformats disk configuration.
samples/​batch_user_accounts.py Reformats user-account examples.
samples/​batch_samples_hello_world.py Cleans up docstring whitespace.
samples/​batch_linux_nodes.py Reformats Linux-node examples.
samples/​batch_docker_container_workloads.py Reformats container workload examples.
samples/​batch_automatic_scaling.py Reformats the module docstring.
pyproject.toml Consolidates packaging settings and changes Python support and maturity metadata.
CHANGELOG.md Adds a placeholder release entry for 15.2.0.
azure/​batch/​models/​_patch.py Removes handwritten public model and exception classes.
azure/​batch/​models/​_enums.py Adds allocation enums and removes retained-data members.
azure/​batch/​models/​__init__.py Updates public model and enum exports.
azure/​batch/​aio/​_vendor.py Removes async typing and ETag helpers.
azure/​batch/​aio/​_patch.py Removes the customized async client.
azure/​batch/​aio/​_operations/​_polling_async.py Removes custom async polling implementations.
azure/​batch/​aio/​_configuration.py Updates the default service API version.
azure/​batch/​aio/​_client.py Refreshes async client documentation and typing imports.
azure/​batch/​_version.py Sets package version to 15.2.0.
azure/​batch/​_vendor.py Removes sync typing and ETag helpers.
azure/​batch/​_utils/​serialization.py Adds numeric-duration support and scalar deserialization shortcuts.
azure/​batch/​_utils/​model_base.py Updates defaults, duration handling, and XML deserialization.
azure/​batch/​_patch.py Removes custom authentication, error handling, and client wiring.
azure/​batch/​_operations/​_polling.py Removes custom synchronous polling implementations.
azure/​batch/​_model_base.py Removes the legacy model utility module.
azure/​batch/​_configuration.py Updates the default service API version.
azure/​batch/​_client.py Refreshes sync client documentation and typing imports.
apiview-properties.json Updates cross-language API mappings and version metadata.
api.metadata.yml Adds API snapshot metadata.
_metadata.json Records the new API version and generation provenance.

Review effort: Balanced

Comment thread sdk/batch/azure-batch/pyproject.toml Resolved
Comment thread sdk/batch/azure-batch/CHANGELOG.md Resolved
Restore shared-key authentication, error handling, task and file wrappers, and sync/async polling. Adapt generated duration parameters, add regression coverage, and refresh stable release metadata and API snapshots.

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

This comment has been minimized.

Correct handwritten documentation, test helpers, samples, and README links. Use public operation model names and add regression coverage for public exports and optional-body POST serialization in 16.0.0.

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

This comment has been minimized.

Record all 32 sync/async service cases against API 2026-10-01. Use Windows Server 2022 Gen2 nodes, disable anonymous Blob access on test Storage accounts, validate ZIP fixtures, sanitize log container SAS URLs, and bound file-node readiness waits. Verified 32 recorded cases in playback and 39 focused regression tests.

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

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

What failed

Build 7092541 — the python - pullrequest (Build Build Docs) job (sphinx) failed with exit code 1. All 7 test platform legs (macos311, windows2022_312, Ubuntu2404_313/314/315, ubuntu2404_311, ubuntu2404_311_coverage) and the rest of the pipeline passed.

Root cause — sphinx doc build failure (Build Docs job):
sphinx-build treats warnings as errors; the build fails with 4 myst.xref_missing warnings. Based on the prior analysis of this same recurring failure on this PR (build 7082831, comment history) and the unchanged README.md content in the current head, the warnings stem from relative markdown links added to sdk/batch/azure-batch/README.md in this PR's new "Maintaining generated-code customizations" section:

[`tsp-location.yaml`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/batch/azure-batch/tsp-location.yaml)
[`_metadata.json`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/batch/azure-batch/_metadata.json)
[release notes](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/batch/azure-batch/CHANGELOG.md)
Relevant pipeline output
[azure-batch :: sphinx] writing output... [100%] index
[azure-batch :: sphinx] generating indices... genindex py-modindex done
[azure-batch :: sphinx] highlighting module code... [100%] azure.batch.models._patch
[azure-batch :: sphinx] build finished with problems, 4 warnings (with warnings treated as errors).
2026-11-19 03:31:15,647 [ERROR] azure-sdk-tools: sphinx-build failed for path .../docgen exited with error 1
[azure-batch :: sphinx] sphinx check completed with exit code 1
=== SUMMARY ===
PACKAGE                                   CHECK   STATUS  DURATION(s)
/mnt/vss/_work/1/s/sdk/batch/azure-batch  sphinx  FAIL(1)        54.75
##[error]The process '/mnt/vss/_work/1/s/venv/bin/python' failed with exit code 1

The current build log excerpt captured by the analyzer only includes surrounding install/build context, not the raw WARNING: lines themselves, but a prior analysis of the same failure on this PR (build 7073571/7082831) identified the exact warnings as myst.xref_missing on these same README.md-introduced links (tsp-location.yaml, _metadata.json, CHANGELOG.md), and the README content has not changed since.

Recommended next steps

  • Fix the markdown cross-references in sdk/batch/azure-batch/README.md's new "Maintaining generated-code customizations" section so myst doesn't treat the repo-relative links to tsp-location.yaml, _metadata.json, and CHANGELOG.md as unresolved doc cross-references (e.g., ensure these use fully-qualified GitHub blob URLs consistently, or adjust link syntax so myst parses them as plain external links rather than attempting intra-doc xref resolution).
  • Verify locally with: python -m azpysdk.main sphinx --isolate sdk/batch/azure-batch.
  • See https://aka.ms/ci-fix

Automated fix: Requested

Generated by Pipeline Analysis Next Steps · copilot · sonnet50 · 113.4 AIC · ⌖ 0.571 AIC · ⊞ 9.1K · ◷

Xing Wu (xingwu1) and others added 2 commits November 18, 2026 21:48
Regenerate OutputFile wildcard examples as literal code and flatten the Windows licensing description to address four Sphinx docutils warnings. Runtime model code is unchanged. Generated from Python-scoped clientDoc overrides prepared in the local TypeSpec checkout; upstream source changes remain pending.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Test sync/async payload serialization and nested model deserialization, all SKU allocation strategies, omitted policies, and task-completion option wire values. Add four zero-node create/get pool recordings and document feature-enabled account setup.

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. Batch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants