Merged
Conversation
Contributor
There was a problem hiding this comment.
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(nowbegin_delete_job) that could take extended time to complete - Introduced
BatchExceptionPolicyto transformODataV4FormattoBatchErrorFormatfor enhanced error handling - Updated model names and property names throughout for consistency (e.g.,
BatchPoolCreateContent→BatchPoolCreateOptions)
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 |
sdk/batch/azure-batch/azure/batch/aio/_operations/_polling_async.py
Outdated
Show resolved
Hide resolved
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
872d372 to
f3cc55a
Compare
9453d33 to
0d1db63
Compare
wiboris
reviewed
Oct 7, 2025
wiboris
reviewed
Oct 7, 2025
wiboris
reviewed
Oct 7, 2025
wiboris
reviewed
Oct 7, 2025
wiboris
reviewed
Oct 7, 2025
added 13 commits
October 14, 2025 15:10
- WIP fixing pylint errors
- WIP for testing changes, running into error handling issues
- WIP fixing live tests
…l changes since previous generation
- recordings updated
- misc fixes
d1269ec to
33efd6f
Compare
wiboris
approved these changes
Oct 15, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
delete_jobis nowbegin_delete_job). These LRO updates were added for operations that could take an extended period to complete. Calling these functions will return aLROPollerthat will track the operation's progress and give acess to intermediate and final statuses.BatchExceptionPolicyto transformODataV4Formatto our ownBatchErrorFormatfor 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:
General Guidelines and Best Practices
Testing Guidelines