Repository navigation
[AutoPR azure-contoso-widgetmanager]-generated-from-SDK Generation - Python-6619567 - #47994
azure-sdk-automation[bot] wants to merge 14 commits into
Conversation
…ager/tspconfig.yaml', API Version: 2022-11-01-preview, SDK Release Type: beta, and CommitSHA: '4df35c8e76875cb6c056193f2421756a1cd57a1a' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6545502 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
…ager/tspconfig.yaml', API Version: 2022-11-01-preview, SDK Release Type: beta, and CommitSHA: '5b27076daa59c50d778c31afeae6510209d58568' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6558701 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
…ager/tspconfig.yaml', API Version: 2022-11-01-preview, SDK Release Type: beta, and CommitSHA: '3c4c89d0dbc2b89756240bec7b28791cc6f8cc70' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6564896 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
…ager/tspconfig.yaml', API Version: 2022-11-01-preview, SDK Release Type: beta, and CommitSHA: 'ca9f13fac97f113332fc462668af7d800d570d54' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6571455 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
…ager/tspconfig.yaml', API Version: 2022-11-01-preview, SDK Release Type: beta, and CommitSHA: 'e12a60d5808eaee0bdb982a2c87626d00892f362' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6578589 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
…ager/tspconfig.yaml', API Version: 2022-11-01-preview, SDK Release Type: beta, and CommitSHA: '1566a98e9251bc95d205802c2379a01b5779e9c8' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6583934 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 48 out of 48 changed files in this pull request and generated 3 comments.
Comments suppressed due to low confidence (6)
sdk/contosowidgetmanager/azure-contoso-widgetmanager/tsp-location.yaml:1
additionalDirectoriesis not valid YAML as written: the list item is not indented under the key, and the key line has a trailing space. This will likely parse asadditionalDirectories: nullplus a separate top-level list entry, breaking tooling that reads this file. Indent the list under the key (and remove trailing whitespace) so the YAML structure is correct.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/generated_tests/test_widget_manager_widgets_operations.py:1- Importing
testprepareras a top-level module is fragile when runningpytestfrom the repo/package root (it may not be onsys.path). Use a package-relative import (e.g.,from .testpreparer import ...) to ensure tests import reliably in CI and local runs.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/generated_tests/test_widget_manager_widgets_operations_async.py:1 - Same issue as the sync tests: these imports assume the current working directory/layout puts
generated_testsonsys.path. Switch to relative imports (e.g.,from .testpreparer import ...,from .testpreparer_async import ...) for predictable test execution.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/generated_tests/conftest.py:1 - These sanitizers pass environment values directly as regex patterns. If any value contains regex metacharacters, sanitization can fail (or over-match unintended content). Escape the values before using them as regex patterns (e.g., via
re.escape(...)) so recordings are consistently sanitized.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/generated_samples/widgets_get_widget_operation_status_sample.py:1 - Correct the typo in the sample value: 'opreation' -> 'operation'. Also consider avoiding spaces in an ID example to reduce the chance of users copying an invalid value.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/azure/contoso/widgetmanager/types.py:1 - The TypedDict docstring documents
created_at, but the actual key iscreatedAt. Similar snake_case vs camelCase mismatches appear inWidgetSuiteas well. This is misleading for users and type checkers—either update the docstrings to match the actual keys, or add documented aliases if the intent is to support snake_case keys in the TypedDict.
| include LICENSE | ||
| include azure/contoso/widgetmanager/py.typed | ||
| recursive-include tests *.py | ||
| recursive-include samples *.py *.md |
| python -m pip install azure-contoso-widgetmanager | ||
| ``` | ||
|
|
||
| #### Prequisites |
| ``` | ||
|
|
||
| ## Examples | ||
|
|
…ager/tspconfig.yaml', API Version: 2022-11-01-preview, SDK Release Type: beta, and CommitSHA: '1566a98e9251bc95d205802c2379a01b5779e9c8' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6584720 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 48 out of 48 changed files in this pull request and generated 2 comments.
Comments suppressed due to low confidence (4)
sdk/contosowidgetmanager/azure-contoso-widgetmanager/tsp-location.yaml:1
additionalDirectoriesis currently parsed as null, and the following- specification/...becomes a top-level list item (not underadditionalDirectories) due to missing indentation. Indent the list underadditionalDirectories(and remove the trailing space after the colon) so YAML structure is correct.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/generated_tests/conftest.py:1add_general_regex_sanitizertreatsregex=as a regular expression. Passing environment values directly (especiallyWIDGETMANAGER_CLIENT_SECRET, which may contain regex metacharacters) risks failed sanitization or unintended matching. Escape these values (e.g., withre.escape) before passing them as regex patterns, or switch to a sanitizer that matches exact values safely.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/generated_samples/widgets_get_widget_operation_status_sample.py:1- Correct spelling of 'opreation' to 'operation' in the sample input string to avoid confusing users.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/azure/contoso/widgetmanager/types.py:1 - The TypedDict docstrings reference snake_case field names (e.g.,
created_at,manufacturer_id,shared_model), but the actual TypedDict keys are camelCase (createdAt,manufacturerId,sharedModel). Update the docstrings to match the real keys (or define snake_case aliases if that’s the intended public typing surface) to avoid misleading type/help output.
| python -m pip install azure-contoso-widgetmanager | ||
| ``` | ||
|
|
||
| #### Prequisites |
|
|
||
| >>> client = WidgetManagerClient(endpoint='<endpoint>', credential=DefaultAzureCredential()) | ||
| >>> try: | ||
| <!-- write test code here --> |
…ager/tspconfig.yaml', API Version: 2022-11-01-preview, SDK Release Type: beta, and CommitSHA: 'f424df09b6cb4874f4c9dfcd0b9debf352a29b77' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6593533 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 48 out of 48 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (5)
sdk/contosowidgetmanager/azure-contoso-widgetmanager/tsp-location.yaml:1
- This YAML is malformed: the sequence item is not indented under
additionalDirectories, so it becomes a top-level sequence entry and will break parsing. Indent the list items under the key (and drop the trailing space after the colon) soadditionalDirectoriesis a proper list value.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/generated_tests/conftest.py:1 - Environment variable values are being used directly as regex patterns. If any value contains regex metacharacters (or is an invalid regex), sanitization can over-match or raise at runtime, and secrets may not be sanitized correctly. Escape these values before passing them as
regex=(e.g., viare.escape), or use a non-regex/string sanitizer API if available.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/generated_samples/widgets_get_widget_operation_status_sample.py:1 - Typo in sample input string: 'opreation' should be 'operation' (samples are copy-pasted frequently and this can propagate confusion).
sdk/contosowidgetmanager/azure-contoso-widgetmanager/generated_tests/test_widget_manager_widgets_operations.py:1 - All generated operation tests are currently hard-skipped, which means they will never run in CI and provide no coverage for the newly introduced client/operations. Consider converting these to runnable recorded tests by adding minimal assertions and removing the skip, or (if they must remain non-runnable) moving them out of the test path so they don’t create the impression of coverage.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/azure/contoso/widgetmanager/types.py:1 - The docstring describes
created_at, but the TypedDict key iscreatedAt. This mismatch will confuse users reading docs/type hints. Update the docstring to match the actual TypedDict keys (or rename the key if snake_case is intended for the public typing surface).
| python -m pip install azure-contoso-widgetmanager | ||
| ``` | ||
|
|
||
| #### Prequisites |
This comment has been minimized.
This comment has been minimized.
…ager/tspconfig.yaml', API Version: 2022-11-01-preview, SDK Release Type: beta, and CommitSHA: 'e32fbe52693f319f34bbca0dfae50bec4375ed7b' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6606768 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 48 out of 48 changed files in this pull request and generated 2 comments.
Comments suppressed due to low confidence (5)
sdk/contosowidgetmanager/azure-contoso-widgetmanager/tsp-location.yaml:1
- This YAML is likely invalid/unintended:
additionalDirectorieshas a trailing space and the list item is not indented under the key. Update it to standard YAML list indentation (e.g.,additionalDirectories:followed by an indented- ...) so tooling can reliably parse this file.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/generated_tests/conftest.py:1 add_general_regex_sanitizertreats the input as a regex. Passing raw secret values can fail to sanitize (or over-match) if the secret contains regex metacharacters. Escape the environment value first (e.g., viare.escape(...)) before passing it as theregexargument.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/generated_samples/widgets_get_widget_operation_status_sample.py:1- Correct spelling of 'opreation' to 'operation' in the sample value so it reads as intended.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/azure/contoso/widgetmanager/types.py:1 - The TypedDict docs describe
created_at, but the actual key iscreatedAt. This mismatch will confuse users (and the generatedapi.mdappears to reflect both forms). Update the docstring field names (and any related docs) to match the actual TypedDict keys (createdAt,manufacturerId,sharedModel, etc.).
sdk/contosowidgetmanager/azure-contoso-widgetmanager/azure/contoso/widgetmanager/types.py:1 - The TypedDict docs describe
created_at, but the actual key iscreatedAt. This mismatch will confuse users (and the generatedapi.mdappears to reflect both forms). Update the docstring field names (and any related docs) to match the actual TypedDict keys (createdAt,manufacturerId,sharedModel, etc.).
| python -m pip install azure-contoso-widgetmanager | ||
| ``` | ||
|
|
||
| #### Prequisites |
| >>> client = WidgetManagerClient(endpoint='<endpoint>', credential=DefaultAzureCredential()) | ||
| >>> try: | ||
| <!-- write test code here --> | ||
| except HttpResponseError as e: | ||
| print('service responds error: {}'.format(e.response.json())) |
This comment has been minimized.
This comment has been minimized.
…ager/tspconfig.yaml', API Version: 2022-11-01-preview, SDK Release Type: beta, and CommitSHA: '00f0e0e39d642c91cb706e0aa5bda169e9b84129' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6612775 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 48 out of 48 changed files in this pull request and generated 2 comments.
Comments suppressed due to low confidence (5)
sdk/contosowidgetmanager/azure-contoso-widgetmanager/tsp-location.yaml:1
additionalDirectoriesis not valid YAML as written: the list item at line 5 is not indented under the key, so it becomes a separate top-level list entry. Indent the list (or use an inline list) so it's actually associated withadditionalDirectories.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/azure/contoso/widgetmanager/types.py:1- The TypedDict docstring describes
created_at, but the actual key iscreatedAt(and there is nocreated_atentry). This is misleading for users constructing request dictionaries. Update the docstring (and any other affected doc references) to consistently describe the actual keys accepted by this TypedDict, or add the intended snake_case keys if the SDK supports them.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/generated_tests/conftest.py:1 - These sanitizers treat environment variable values as regular expressions. Values like client secrets may contain regex metacharacters, leading to overbroad matching or invalid regex patterns. Escape the values (e.g., via
re.escape(...)) before passing them asregex=.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/generated_tests/test_widget_manager_widgets_operations.py:1 - All generated tests in this class are unconditionally skipped, which effectively removes test coverage for the newly added client/operations. If these tests are expected to run in CI, replace the unconditional skip with real assertions and recordings setup (or use a more targeted skip/xfail only for tests that truly can't run yet).
sdk/contosowidgetmanager/azure-contoso-widgetmanager/generated_samples/widgets_get_widget_operation_status_sample.py:1 - Typo in sample string literal: 'opreation' should be 'operation' to avoid confusing users copying the example.
| recursive-include tests *.py | ||
| recursive-include samples *.py *.md |
| python -m pip install azure-contoso-widgetmanager | ||
| ``` | ||
|
|
||
| #### Prequisites |
This comment has been minimized.
This comment has been minimized.
…ager/tspconfig.yaml', API Version: 2022-11-01-preview, SDK Release Type: beta, and CommitSHA: '6f4f59598a25214cd1a353c2a1279e1e0d98f2c1' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6616784 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 48 out of 48 changed files in this pull request and generated 4 comments.
Comments suppressed due to low confidence (4)
sdk/contosowidgetmanager/azure-contoso-widgetmanager/tsp-location.yaml:1
additionalDirectoriesis declared as a mapping key but the list item is not indented beneath it, which makes this invalid / unintended YAML structure (the-becomes a top-level sequence entry). Indent the list underadditionalDirectories(and remove the trailing space after the colon) so tooling can parse it correctly.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/generated_tests/conftest.py:1add_general_regex_sanitizertreatsregex=as a regular expression. Secrets (especiallyclient_secret) may contain regex metacharacters, which can cause sanitizer failures or unintended over-matching. Escape these values (e.g., viare.escape(...)) before passing them as regex patterns.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/azure/contoso/widgetmanager/types.py:1- The
WidgetSuiteTypedDict marksnameasRequired[str], but the generated modelWidgetSuitetreatsnameas read-only (visibility=[\"read\"]) and the samples omit it in request bodies. This mismatch makes the public typing surface misleading for request payloads. Update the TypedDict to reflect the actual request shape (e.g., makenamenot-required / omit it if it's response-only) and align docstrings with the wire keys (manufacturerId,sharedModel,createdAt) to avoid confusion.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/generated_samples/widgets_get_widget_operation_status_sample.py:1 - Typo in the sample parameter value makes the example look incorrect. Consider changing
opreation id1tooperation id1.
| python -m pip install azure-contoso-widgetmanager | ||
| ``` | ||
|
|
||
| #### Prequisites |
| ``` | ||
|
|
||
| ## Examples | ||
|
|
| recursive-include tests *.py | ||
| recursive-include samples *.py *.md |
| @overload | ||
| async def begin_create_or_update_widget( | ||
| self, | ||
| widget_name: str, | ||
| resource: WidgetSuite, | ||
| *, | ||
| content_type: str = "application/merge-patch+json", | ||
| **kwargs: Any | ||
| ) -> AsyncLROPoller[WidgetSuite]: ... | ||
|
|
||
| @overload | ||
| async def begin_create_or_update_widget( | ||
| self, | ||
| widget_name: str, | ||
| resource: WidgetSuite, | ||
| *, | ||
| content_type: str = "application/merge-patch+json", | ||
| **kwargs: Any | ||
| ) -> AsyncLROPoller[WidgetSuite]: ... |
This comment has been minimized.
This comment has been minimized.
…ager/tspconfig.yaml', API Version: 2022-11-01-preview, SDK Release Type: beta, and CommitSHA: '0744f52a86919d243ba2225e55bdb9c87bf521a5' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6617517 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 48 out of 48 changed files in this pull request and generated 3 comments.
Comments suppressed due to low confidence (9)
sdk/contosowidgetmanager/azure-contoso-widgetmanager/generated_tests/conftest.py:1
python-dotenvis imported/used here, but it is not listed in this package’s dev/test requirements in the diff. This will cause test collection to fail in environments that don’t already have it installed. Addpython-dotenvto the appropriate requirements file for tests (or remove the dependency and rely on environment variables only).
sdk/contosowidgetmanager/azure-contoso-widgetmanager/generated_tests/conftest.py:1python-dotenvis imported/used here, but it is not listed in this package’s dev/test requirements in the diff. This will cause test collection to fail in environments that don’t already have it installed. Addpython-dotenvto the appropriate requirements file for tests (or remove the dependency and rely on environment variables only).
sdk/contosowidgetmanager/azure-contoso-widgetmanager/generated_tests/conftest.py:1- These sanitizers pass environment-provided values directly as regex patterns. If a secret contains regex metacharacters (e.g.,
+,*,?,[],\\), sanitization can break (invalid regex) or match too broadly. Escape the values (e.g., viare.escape) before passing them as theregex=argument.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/generated_samples/widgets_get_widget_operation_status_sample.py:1 - Correct typo in sample value:
opreation→operation.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/azure/contoso/widgetmanager/types.py:1 - The TypedDict key names are camelCase (
createdAt,manufacturerId,sharedModel), but the docstrings describe snake_case fields (created_at,manufacturer_id,shared_model). This is user-facing typing/API documentation and is currently inconsistent, which can cause incorrect dict construction by consumers. Align the docstrings with the actual keys, or (if the intent is to accept snake_case) add a conversion layer so snake_case inputs are supported.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/azure/contoso/widgetmanager/types.py:1 - The TypedDict key names are camelCase (
createdAt,manufacturerId,sharedModel), but the docstrings describe snake_case fields (created_at,manufacturer_id,shared_model). This is user-facing typing/API documentation and is currently inconsistent, which can cause incorrect dict construction by consumers. Align the docstrings with the actual keys, or (if the intent is to accept snake_case) add a conversion layer so snake_case inputs are supported.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/azure/contoso/widgetmanager/types.py:1 - The TypedDict key names are camelCase (
createdAt,manufacturerId,sharedModel), but the docstrings describe snake_case fields (created_at,manufacturer_id,shared_model). This is user-facing typing/API documentation and is currently inconsistent, which can cause incorrect dict construction by consumers. Align the docstrings with the actual keys, or (if the intent is to accept snake_case) add a conversion layer so snake_case inputs are supported.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/azure/contoso/widgetmanager/types.py:1 - The TypedDict key names are camelCase (
createdAt,manufacturerId,sharedModel), but the docstrings describe snake_case fields (created_at,manufacturer_id,shared_model). This is user-facing typing/API documentation and is currently inconsistent, which can cause incorrect dict construction by consumers. Align the docstrings with the actual keys, or (if the intent is to accept snake_case) add a conversion layer so snake_case inputs are supported.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/azure/contoso/widgetmanager/types.py:1 - The TypedDict key names are camelCase (
createdAt,manufacturerId,sharedModel), but the docstrings describe snake_case fields (created_at,manufacturer_id,shared_model). This is user-facing typing/API documentation and is currently inconsistent, which can cause incorrect dict construction by consumers. Align the docstrings with the actual keys, or (if the intent is to accept snake_case) add a conversion layer so snake_case inputs are supported.
| python -m pip install azure-contoso-widgetmanager | ||
| ``` | ||
|
|
||
| #### Prequisites |
| ``` | ||
|
|
||
| ## Examples | ||
|
|
| recursive-include tests *.py | ||
| recursive-include samples *.py *.md |
This comment has been minimized.
This comment has been minimized.
…ager/tspconfig.yaml', API Version: 2022-11-01-preview, SDK Release Type: beta, and CommitSHA: 'f241c974b872d010d875cbeb845131b7eb0fccce' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6619567 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 48 out of 48 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (10)
sdk/contosowidgetmanager/azure-contoso-widgetmanager/tsp-location.yaml:1
additionalDirectoriesis not valid YAML as written: the list item at line 5 is not indented under the key, and the trailing space after the colon suggests this key is being set to null. Indent the list underadditionalDirectories:(and remove the trailing space) so the file parses correctly.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/generated_samples/widgets_get_widget_operation_status_sample.py:1- Fix the typo in the sample parameter value to avoid confusion when users copy/paste.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/generated_tests/conftest.py:1 - The tests import
python-dotenvunconditionally, but the package'sdev_requirements.txtdoesn't list it. Either addpython-dotenvto the appropriate test/dev requirements, or make the import optional (catchImportError) so running tests in minimal environments doesn't fail at import time.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/generated_tests/conftest.py:1 - The tests import
python-dotenvunconditionally, but the package'sdev_requirements.txtdoesn't list it. Either addpython-dotenvto the appropriate test/dev requirements, or make the import optional (catchImportError) so running tests in minimal environments doesn't fail at import time.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/generated_tests/conftest.py:1 - Passing environment values directly as regex patterns can break recordings if the value is empty (an empty regex matches everywhere) or if it contains regex metacharacters. Consider escaping these values (treat as literals) and/or skipping sanitizer registration when the value is empty or already equals the placeholder.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/azure/contoso/widgetmanager/types.py:1 - The TypedDict docs use snake_case names (
created_at,manufacturer_id) but the actual TypedDict keys are camelCase (createdAt,manufacturerId). Update the docstrings/field docs to reference the actual accepted keys to avoid misleading users and to match the generated samples.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/azure/contoso/widgetmanager/types.py:1 - The TypedDict docs use snake_case names (
created_at,manufacturer_id) but the actual TypedDict keys are camelCase (createdAt,manufacturerId). Update the docstrings/field docs to reference the actual accepted keys to avoid misleading users and to match the generated samples.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/azure/contoso/widgetmanager/types.py:1 - The TypedDict docs use snake_case names (
created_at,manufacturer_id) but the actual TypedDict keys are camelCase (createdAt,manufacturerId). Update the docstrings/field docs to reference the actual accepted keys to avoid misleading users and to match the generated samples.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/azure/contoso/widgetmanager/types.py:1 - The TypedDict docs use snake_case names (
created_at,manufacturer_id) but the actual TypedDict keys are camelCase (createdAt,manufacturerId). Update the docstrings/field docs to reference the actual accepted keys to avoid misleading users and to match the generated samples.
sdk/contosowidgetmanager/azure-contoso-widgetmanager/generated_tests/test_widget_manager_widgets_operations.py:1 - All generated tests are currently skipped, which means the newly added client/operations won't have any CI coverage from these tests. If these are intended to be part of the test suite, replace the unconditional skip with runnable tests (even minimal assertions) or gate them behind an opt-in marker so they can run in CI when configured.
| python -m pip install azure-contoso-widgetmanager | ||
| ``` | ||
|
|
||
| #### Prequisites |
[Pilot] PR Pipeline Failure AnalysisA CI pipeline failed on this pull request. Here is an automated analysis of what went wrong and how to get the build green. What failedThe pipeline (build 6619623) for
All four are validation failures requiring code fixes — no infrastructure issues detected. Recommended next steps
Raw pipeline analysis (azsdk ci analyze)
|
|
Azure Pipelines: Successfully started running 1 pipeline(s). 9 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Configurations: 'specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml', API Version: 2022-11-01-preview, SDK Release Type: beta, and CommitSHA: 'f241c974b872d010d875cbeb845131b7eb0fccce' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6619567 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=35101 Submitted by: gaoh@microsoft.com