Skip to content

[Batch] Beta Data Plane SDK 15.0.0b3#42790

Merged
cRui861 merged 29 commits intomainfrom
rechen/batch-track2-beta3
Oct 15, 2025
Merged

[Batch] Beta Data Plane SDK 15.0.0b3#42790
cRui861 merged 29 commits intomainfrom
rechen/batch-track2-beta3

Conversation

@cRui861
Copy link
Member

@cRui861 cRui861 commented Aug 29, 2025

Description

Update Azure Batch Python SDK to v15.0.0b3 beta preview. No API update in this release. Changes are further detailed in the CHANGELOG.

Quick summary of changes:

  • Added Long Running Operation (LRO) updates for some of our operation methods (i.e. delete_job is now begin_delete_job). These LRO updates were added for operations that could take an extended period to complete. Calling these functions will return a LROPoller that will track the operation's progress and give acess to intermediate and final statuses.
  • Added a BatchExceptionPolicy to transform ODataV4Format to our own BatchErrorFormat for error handling.

If an SDK is being regenerated based on a new API spec, a link to the pull request containing these API spec changes should be included above.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

Copilot AI review requested due to automatic review settings August 29, 2025 19:46
@github-actions github-actions bot added the Batch label Aug 29, 2025
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 updates the Azure Batch Python SDK to version 15.0.0b3, introducing Long Running Operations (LRO) support for several operations and a new BatchExceptionPolicy for improved error handling. Key changes include:

  • Added LRO support for operations like delete_job (now begin_delete_job) that could take extended time to complete
  • Introduced BatchExceptionPolicy to transform ODataV4Format to BatchErrorFormat for enhanced error handling
  • Updated model names and property names throughout for consistency (e.g., BatchPoolCreateContentBatchPoolCreateOptions)

Reviewed Changes

Copilot reviewed 31 out of 34 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
tsp-location.yaml Updates commit hash reference for API specification
test_response_handlers.py New test file for BatchExceptionPolicy and BatchErrorFormat
test_batch.py Updates tests to use new LRO methods and model names
batch_preparers.py Updates model imports and method calls for new LRO pattern
setup.py Removes legacy setup.py file
samples/batch_samples_hello_world.py Updates sample code to use new model names
pyproject.toml Modernizes build configuration with proper project metadata
migration_guide.md Adds migration guide for upgrading from v14.x to v15.x
dev_requirements.txt Updates dependency references
models/_patch.py Updates model imports and class definitions
models/_enums.py Renames enums and adds new error categories
models/init.py Updates imports to reflect new model naming conventions
aio/_patch.py Adds BatchExceptionPolicy integration for async client
aio/_operations/_polling_async.py New file containing async polling methods for LRO operations
aio/_operations/_patch.py Implements LRO methods and updates task collection handling

@github-actions
Copy link

github-actions bot commented Aug 29, 2025

API Change Check

APIView identified API level changes in this PR and created the following API reviews

azure-batch

@cRui861 cRui861 force-pushed the rechen/batch-track2-beta3 branch from 872d372 to f3cc55a Compare September 15, 2025 21:28
@cRui861 cRui861 force-pushed the rechen/batch-track2-beta3 branch 2 times, most recently from 9453d33 to 0d1db63 Compare September 30, 2025 20:42
@cRui861 cRui861 force-pushed the rechen/batch-track2-beta3 branch from d1269ec to 33efd6f Compare October 14, 2025 22:10
@cRui861 cRui861 merged commit 5d2658a into main Oct 15, 2025
20 checks passed
@cRui861 cRui861 deleted the rechen/batch-track2-beta3 branch October 15, 2025 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants