Fixes pipeline failures introduced by PR #47694 (ayushmishra/rle-sdk-init, commit c3383cc943).
Diagnosis
The azure-ai-projects package failed three CI checks (Pylint, Pyright, Sphinx) due to issues in the new _patch_rle.py and _patch_rle_async.py files.
Pylint (exit code 18)
- E0602
_patch_rle.py:195: Tuple used but not imported from typing
- C4739
_patch_rle.py:239 / _patch_rle_async.py: _acquire_instance docstring missing :param environment_name: and :param environment_version:
- C4742
_patch_rle.py:432: OpenEnvInstance.id property docstring missing :rtype:
Pyright (17 errors)
reportAttributeAccessIssue: health, reset, step, state, get_metadata, schema accessed on RLEInstancesOperations but defined on RLEInstanceRuntimeOperations. These methods are monkey-patched onto _instances at runtime in RLEOperations.__init__, so pyright cannot see them statically.
reportArgumentType: str | None passed where str required in _close_group_locked for delete_instance_group's environment_version argument.
Sphinx (1 warning as error)
RLEError was exported from both azure.ai.projects (main package) and azure.ai.projects.operations, causing a duplicate object description.
Changes
| File |
Change |
operations/_patch_rle.py |
Add Tuple to typing imports |
operations/_patch_rle.py |
Change instances parameter type to Any in _acquire_instance and OpenEnvInstance.__init__ |
operations/_patch_rle.py |
Guard self._version is None in _close_group_locked before passing to delete_instance_group |
operations/_patch_rle.py |
Add :param environment_name:, :param environment_version: to _acquire_instance docstring |
operations/_patch_rle.py |
Add :rtype: str to OpenEnvInstance.id property docstring |
aio/operations/_patch_rle_async.py |
Change instances parameter type to Any in _acquire_instance and AsyncOpenEnvInstance.__init__ |
aio/operations/_patch_rle_async.py |
Guard self._version is None in _close_group_locked |
aio/operations/_patch_rle_async.py |
Add :param environment_name:, :param environment_version: to _acquire_instance docstring |
operations/_patch.py |
Remove "RLEError" from __all__ (it remains in azure.ai.projects.__all__) |
Validation is pending the automated checks triggered by this draft pull request.
To route changes like this to a review issue instead of blocking, configure protected-files: fallback-to-issue in your workflow configuration.
Generated by Pipeline Auto Fix · 151.9 AIC · ⌖ 16.1 AIC · ⊞ 7.7K · ◷
Fixes pipeline failures introduced by PR #47694 (
ayushmishra/rle-sdk-init, commitc3383cc943).Diagnosis
The
azure-ai-projectspackage failed three CI checks (Pylint, Pyright, Sphinx) due to issues in the new_patch_rle.pyand_patch_rle_async.pyfiles.Pylint (exit code 18)
_patch_rle.py:195:Tupleused but not imported fromtyping_patch_rle.py:239/_patch_rle_async.py:_acquire_instancedocstring missing:param environment_name:and:param environment_version:_patch_rle.py:432:OpenEnvInstance.idproperty docstring missing:rtype:Pyright (17 errors)
reportAttributeAccessIssue:health,reset,step,state,get_metadata,schemaaccessed onRLEInstancesOperationsbut defined onRLEInstanceRuntimeOperations. These methods are monkey-patched onto_instancesat runtime inRLEOperations.__init__, so pyright cannot see them statically.reportArgumentType:str | Nonepassed wherestrrequired in_close_group_lockedfordelete_instance_group'senvironment_versionargument.Sphinx (1 warning as error)
RLEErrorwas exported from bothazure.ai.projects(main package) andazure.ai.projects.operations, causing a duplicate object description.Changes
operations/_patch_rle.pyTupleto typing importsoperations/_patch_rle.pyinstancesparameter type toAnyin_acquire_instanceandOpenEnvInstance.__init__operations/_patch_rle.pyself._version is Nonein_close_group_lockedbefore passing todelete_instance_groupoperations/_patch_rle.py:param environment_name:,:param environment_version:to_acquire_instancedocstringoperations/_patch_rle.py:rtype: strtoOpenEnvInstance.idproperty docstringaio/operations/_patch_rle_async.pyinstancesparameter type toAnyin_acquire_instanceandAsyncOpenEnvInstance.__init__aio/operations/_patch_rle_async.pyself._version is Nonein_close_group_lockedaio/operations/_patch_rle_async.py:param environment_name:,:param environment_version:to_acquire_instancedocstringoperations/_patch.py"RLEError"from__all__(it remains inazure.ai.projects.__all__)Validation is pending the automated checks triggered by this draft pull request.
Warning
Protected Files
This was originally intended as a pull request, but the patch modifies protected files. These files may affect project dependencies, CI/CD pipelines, or agent behaviour. Please review the changes carefully before creating the pull request.
Click here to create the pull request once you have reviewed the changes
Protected files
CHANGELOG.mdTo route changes like this to a review issue instead of blocking, configure
protected-files: fallback-to-issuein your workflow configuration.