Skip to content

[pipeline-fix] Fix pipeline failure for #47694 #48743

Description

@github-actions

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.


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.md

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 ·

  • expires on Sep 1, 2026, 6:53 PM UTC

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions