Skip to content

Conversation

@cRui861
Copy link
Member

@cRui861 cRui861 commented Jan 15, 2026

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:

  • 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 January 15, 2026 22:59
@github-actions github-actions bot added the Batch label Jan 15, 2026
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 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_bread_io_gib, v_tpm_enabledvtpm_enabled)
  • Added backward compatibility support through original_tsp_name parameter for renamed fields
  • Improved documentation formatting for OutputFile and VirtualMachineConfiguration classes
  • Made node_agent_info field 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
Copy link

Copilot AI Jan 15, 2026

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.

Suggested change
except: # pylint: disable=bare-except
except Exception:

Copilot uses AI. Check for mistakes.
@github-actions
Copy link

API Change Check

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

azure-batch

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.

2 participants