-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Batch] Data plane SDK v15.1.0 Track 2 GA #44681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 is the GA release (version 15.1.0) of the Azure Batch data plane SDK Track 2, consolidating features and changes from beta versions 15.0.0b1 through 15.1.0b2. The release updates the TypeSpec commit reference, improves code security by removing eval() usage, enhances model attribute naming consistency, and updates dependencies.
Changes:
- Updated version from 15.1.0b2 to 15.1.0 (GA release)
- Updated azure-core dependency from >=1.35.0 to >=1.37.0
- Removed eval() usage in serialization code for improved security
- Renamed model attributes for better consistency (e.g.,
read_io_gi_b→read_io_gib,v_tpm_enabled→vtpm_enabled) - Added backward compatibility support through
original_tsp_nameparameter for renamed fields - Improved documentation formatting for OutputFile and VirtualMachineConfiguration classes
- Made
node_agent_infofield optional in BatchNode model - Fixed code formatting and style issues in test files
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| sdk/batch/azure-batch/tsp-location.yaml | Updates TypeSpec commit reference for SDK generation |
| sdk/batch/azure-batch/azure/batch/_version.py | Updates version from 15.1.0b2 to 15.1.0 for GA release |
| sdk/batch/azure-batch/pyproject.toml | Updates azure-core dependency to >=1.37.0 |
| sdk/batch/azure-batch/azure/batch/models/_models.py | Renames model attributes for consistency, adds backward compatibility support, improves documentation formatting, and makes node_agent_info optional |
| sdk/batch/azure-batch/azure/batch/_utils/serialization.py | Removes eval() usage for improved security, replacing with explicit type conversions |
| sdk/batch/azure-batch/azure/batch/_utils/model_base.py | Adds backward compatibility infrastructure, array encoding support, and deserialization caching improvements |
| sdk/batch/azure-batch/tests/test_batch.py | Improves code formatting and style consistency |
| sdk/batch/azure-batch/tests/batch_preparers.py | Improves code formatting and style consistency |
| ): | ||
| # encoded string may be deserialized to sequence | ||
| return deserializer(obj) | ||
| except: # pylint: disable=bare-except |
Copilot
AI
Jan 15, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bare except clause catches all exceptions including SystemExit and KeyboardInterrupt. Consider catching specific exception types (e.g., AttributeError, TypeError) that are expected in this context. If catching all exceptions is intentional for robustness, document why this is necessary.
| except: # pylint: disable=bare-except | |
| except Exception: |
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
Description
This PR is the Batch data plane track 2 GA release. This release includes API changes from the 15.0.0b1 through 15.1.0b2 beta versions (the packages can be found here on PyPI (https://pypi.org/project/azure-batch/#history).
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines