Skip to content

[AutoPR azure-contoso-widgetmanager]-generated-from-SDK Generation - Python-6790550 - #48903

Open
azure-sdk-automation[bot] wants to merge 2 commits into
mainfrom
sdkauto/azure-contoso-widgetmanager-6790409
Open

[AutoPR azure-contoso-widgetmanager]-generated-from-SDK Generation - Python-6790550#48903
azure-sdk-automation[bot] wants to merge 2 commits into
mainfrom
sdkauto/azure-contoso-widgetmanager-6790409

Conversation

@azure-sdk-automation

@azure-sdk-automation azure-sdk-automation Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Configurations: 'specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml', and CommitSHA: 'a6eb10836d18553358f0aee5f0573be5307255e4' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6790550 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. Release plan link: https://azsdk-releaseplan-dashboard-hveph5aqhhcfhtgu.westus-01.azurewebsites.net/?releaseplan=1538 Submitted by: juanospina@microsoft.com

…ager/tspconfig.yaml', API Version: 2022-11-01-preview, SDK Release Type: beta, and CommitSHA: 'a6eb10836d18553358f0aee5f0573be5307255e4' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6790409 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
Copilot AI balanced review requested due to automatic review settings September 4, 2026 15:43
@azure-sdk-automation azure-sdk-automation Bot added the auto-release When merged to main, release pipelines for this PR's changed packages trigger automatically. label Sep 4, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
10 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Public API inconsistencies, unfinished documentation, and entirely skipped operation tests must be addressed before release.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds the initial beta Python SDK for Contoso Widget Manager, generated from the 2022-11-01-preview TypeSpec specification.

Changes:

  • Adds synchronous and asynchronous clients, models, operations, and serialization support.
  • Adds generated samples, test scaffolding, packaging, and APIView metadata.
  • Configures CI and TypeSpec source tracking.
File summaries
File Description
sdk/contosowidgetmanager/ci.yml Adds package CI configuration.
azure-contoso-widgetmanager/tsp-location.yaml Records TypeSpec source location.
azure-contoso-widgetmanager/README.md Adds package documentation.
azure-contoso-widgetmanager/pyproject.toml Defines build and package metadata.
azure-contoso-widgetmanager/MANIFEST.in Configures source distribution files.
azure-contoso-widgetmanager/LICENSE Adds the MIT license.
azure-contoso-widgetmanager/dev_requirements.txt Adds development dependencies.
azure-contoso-widgetmanager/CHANGELOG.md Records the initial beta release.
azure-contoso-widgetmanager/_metadata.json Records generation metadata.
azure-contoso-widgetmanager/apiview-properties.json Maps cross-language API definitions.
azure-contoso-widgetmanager/api.metadata.yml Records API extraction metadata.
azure-contoso-widgetmanager/api.md Captures the public API surface.
generated_tests/conftest.py Configures test sanitizers.
generated_tests/testpreparer.py Adds synchronous test setup.
generated_tests/testpreparer_async.py Adds asynchronous test setup.
generated_tests/test_widget_manager_widgets_operations.py Adds synchronous test scaffolding.
generated_tests/test_widget_manager_widgets_operations_async.py Adds asynchronous test scaffolding.
generated_samples/widgets_list_widgets_sample.py Demonstrates listing widgets.
generated_samples/widgets_get_widget_sample.py Demonstrates retrieving a widget.
generated_samples/widgets_get_widget_operation_status_sample.py Demonstrates checking operation status.
generated_samples/widgets_delete_widget_sample.py Demonstrates deleting a widget.
generated_samples/widgets_create_or_update_widget_sample.py Demonstrates creating or updating a widget.
azure/__init__.py Establishes the Azure namespace.
azure/contoso/__init__.py Establishes the Contoso namespace.
widgetmanager/__init__.py Exports the synchronous client.
widgetmanager/_client.py Implements the synchronous client.
widgetmanager/_configuration.py Configures synchronous policies.
widgetmanager/_patch.py Provides customization hooks.
widgetmanager/_version.py Defines package version 1.0.0b1.
widgetmanager/types.py Defines request TypedDicts.
widgetmanager/py.typed Marks the package as typed.
widgetmanager/_utils/__init__.py Initializes generated utilities.
widgetmanager/_utils/model_base.py Implements model serialization support.
widgetmanager/_utils/serialization.py Implements generated serialization helpers.
widgetmanager/models/__init__.py Exports public models.
widgetmanager/models/_enums.py Defines operation-state values.
widgetmanager/models/_models.py Defines response and resource models.
widgetmanager/models/_patch.py Provides model customization hooks.
widgetmanager/operations/__init__.py Exports synchronous operations.
widgetmanager/operations/_operations.py Implements synchronous service operations.
widgetmanager/operations/_patch.py Provides operation customization hooks.
widgetmanager/aio/__init__.py Exports the asynchronous client.
widgetmanager/aio/_client.py Implements the asynchronous client.
widgetmanager/aio/_configuration.py Configures asynchronous policies.
widgetmanager/aio/_patch.py Provides async customization hooks.
widgetmanager/aio/operations/__init__.py Exports asynchronous operations.
widgetmanager/aio/operations/_operations.py Implements asynchronous service operations.
widgetmanager/aio/operations/_patch.py Provides async operation customization hooks.
Review details
  • Files reviewed: 48/48 changed files
  • Comments generated: 7
  • Review effort level: Balanced

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +56 to +58
class ResourceOperationStatusWidgetSuiteWidgetSuiteError(
_Model
): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only
:vartype sharedModel: "FakedSharedModel"
"""

name: Required[str]
Comment on lines +13 to +14
@pytest.mark.skip("you may need to update the auto-generated test case before run it")
class TestWidgetManagerWidgetsOperations(WidgetManagerClientTestBase):
Comment on lines +14 to +15
@pytest.mark.skip("you may need to update the auto-generated test case before run it")
class TestWidgetManagerWidgetsOperationsAsync(WidgetManagerClientTestBaseAsync):
@@ -0,0 +1,82 @@
# Azure Contoso Widgetmanager client library for Python
<!-- write necessary description of service -->
python -m pip install azure-contoso-widgetmanager
```

#### Prequisites
Comment on lines +51 to +54
>>> try:
<!-- write test code here -->
except HttpResponseError as e:
print('service responds error: {}'.format(e.response.json()))
Copilot AI review requested due to automatic review settings September 4, 2026 16:13
@azure-sdk-automation azure-sdk-automation Bot changed the title [AutoPR azure-contoso-widgetmanager]-generated-from-SDK Generation - Python-6790409 [AutoPR azure-contoso-widgetmanager]-generated-from-SDK Generation - Python-6790550 Sep 4, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The public input API is inconsistent, documentation remains incomplete, and all operation tests are disabled.

Review details

Suppressed comments (8)

Previously missed (1) — in code that hasn't changed since the last review.

sdk/contosowidgetmanager/azure-contoso-widgetmanager/README.md:77

  • This authentication reference points to Cognitive Services rather than Widget Manager or a service-neutral Azure Identity guide. Replace it with the applicable Widget Manager authentication documentation (or the generic Azure SDK for Python authentication overview) so users are not sent to an unrelated service.

sdk/contosowidgetmanager/azure-contoso-widgetmanager/README.md:2

  • The README still contains a generator placeholder instead of explaining what the service/library does. Replace it with a concrete service description before publishing so users can determine the package's purpose.
<!-- write necessary description of service -->

sdk/contosowidgetmanager/azure-contoso-widgetmanager/README.md:12

  • Correct the heading spelling.
#### Prequisites

sdk/contosowidgetmanager/azure-contoso-widgetmanager/azure/contoso/widgetmanager/types.py:39

  • name is marked read-only on the generated model (models/_models.py:116) and the generated create/update sample correctly omits it, but this input TypedDict makes it required. Static type checkers will therefore reject a valid dictionary body. Update the TypeSpec/emitter so read-only fields are excluded from the operation input type, then regenerate the SDK.
    sdk/contosowidgetmanager/azure-contoso-widgetmanager/azure/contoso/widgetmanager/models/_models.py:58
  • This public type name repeats WidgetSuite and ends with an implementation-derived Error, making operation signatures difficult to understand. Assign the specialization a concise client-facing name such as WidgetOperationStatus in TypeSpec and regenerate the SDK.
class ResourceOperationStatusWidgetSuiteWidgetSuiteError(
    _Model
):  # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only

sdk/contosowidgetmanager/azure-contoso-widgetmanager/generated_tests/test_widget_manager_widgets_operations.py:14

  • The only synchronous operation test class is skipped wholesale and its methods contain no assertions, so none of the new sync request, pagination, or LRO behavior is exercised by CI. Add executable recorded or unit tests with assertions before release.
    sdk/contosowidgetmanager/azure-contoso-widgetmanager/generated_tests/test_widget_manager_widgets_operations_async.py:15
  • The only asynchronous operation test class is skipped wholesale and its methods contain no assertions, leaving every new async request, pagination, and LRO path untested. Add executable recorded or unit tests with assertions before release.
    sdk/contosowidgetmanager/azure-contoso-widgetmanager/README.md:52
  • This HTML placeholder is invalid Python, so the published example raises a SyntaxError when copied. Replace the scaffold with an actual client operation and valid exception handling.
        <!-- write test code here -->
  • Files reviewed: 48/48 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-release When merged to main, release pipelines for this PR's changed packages trigger automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants