azure-rest-api-specs
azure-rest-api-specs copied to clipboard
Mjmadhu playwrighttesting microsoft.azure playwright service 2023 10 01 preview new
ARM (Control Plane) API Specification Update Pull Request
Tip: overwhelmed by all this guidance? See the
Getting help
section at the bottom of this PR description.
PR review workflow diagram
Please understand this diagram before proceeding. It explains how to get your PR approved & merged.
Click here to see the details of Step 1
Breaking changes review (Diagram Step 1)
If the automation determines you have breaking changes, i.e. Step 1 from the diagram applies to you,
you must follow the breaking changes process.
IMPORTANT This applies even if:
- The tool fails while it shouldn't, e.g. due to runtime exception, or incorrect detection of breaking changes.
- You believe there is no need for you to request breaking change approval, for any reason. Such claims must be reviewed, and the process is the same.
Click here to see the details of Step 2
ARM API changes review (Diagram Step 2)
- If this PR is in purview of ARM review then automation will add the
ARMReview
label. - If you want to force ARM review, add the label yourself.
- Proceed according to the diagram at the top of this comment.
Click here to see the diagram footnotes
Diagram footnotes
[1] ARM review queue (for merge queues, see [2])
The PRs are processed by time opened, ascending. Your PR may show up on 2nd or later page.
If you addressed Step 1 from the diagram and your PR is not showing up in the queue, ensure the label ARMChangesRequested
is removed from your PR. This should cause the label WaitForARMFeedback
to be added.
[2] public repo merge queue, private repo merge queue (for ARM review queue, [1])
If you need further help with anything, see Getting help
section below.
Purpose of this PR
What's the purpose of this PR? Check all that apply. This is mandatory!
- [x] New API version. (If API spec is not defined in TypeSpec, the PR should have been generated using OpenAPI Hub).
- [ ] Update existing version for a new feature. (This is applicable only when you are revising a private preview API version.)
- [ ] Update existing version to fix swagger quality issues in S360.
- [ ] Other, please clarify:
- edit this with your clarification
Due diligence checklist
To merge this PR, you must go through the following checklist and confirm you understood and followed the instructions by checking all the boxes:
- [x] I confirm this PR is modifying Azure Resource Manager (ARM) related specifications, and not data plane related specifications.
- [x] I have reviewed following Resource Provider guidelines, including
ARM resource provider contract and
REST guidelines (estimated time: 4 hours).
I understand this is required before I can proceed to the Diagram Step 2, "ARM API changes Review", for this PR.
Additional information
Viewing API changes
For convenient view of the API changes made by this PR, refer to the URLs provided in the table
in the Generated ApiView
comment added to this PR. You can use ApiView to show API versions diff.
Suppressing failures
If one or multiple validation error/warning suppression(s) is detected in your PR, please follow the Swagger-Suppression-Process to get approval.
Getting help
- First, please carefully read through this PR description, from top to bottom. Please fill out the
Purpose of this PR
andDue diligence checklist
. - To understand what you must do next to merge this PR, see the
Next Steps to Merge
comment. It will appear within few minutes of submitting this PR and will continue to be up-to-date with current PR state. - For guidance on fixing this PR CI check failures, see the hyperlinks provided in given failure and https://aka.ms/ci-fix.
- If the PR CI checks appear to be stuck in
queued
state, please add a comment with contents/azp run
. This should result in a new comment denoting aPR validation pipeline
has started and the checks should be updated after few minutes. - If the help provided by the previous points is not enough, post to https://aka.ms/azsdk/support/specreview-channel and link to this PR.
Next Steps to Merge
✅ All automated merging requirements have been met! Refer to step 4 in the PR workflow diagram (even if your PR is for data plane, not ARM).
Swagger Validation Report
️️✔️
BreakingChange succeeded [Detail] [Expand]
There are no breaking changes.
️⚠️
Breaking Change(Cross-Version): 34 Warnings warning [Detail]
compared swaggers (via Oad v0.10.4)] | new version | base version |
---|---|---|
playwrighttesting.json | 2024-02-01(95f8d07) | 2023-10-01-preview(main) |
The following breaking changes are detected by comparison with the latest preview version:
Only 30 items are listed, please refer to log for more details.
️️✔️
CredScan succeeded [Detail] [Expand]
There is no credential detected.
️⚠️
LintDiff: 1 Warnings warning [Detail]
compared tags (via openapi-validator v2.1.6) | new version | base version |
---|---|---|
package-2024-02-01 | package-2024-02-01(95f8d07) | default(main) |
[must fix]The following errors/warnings are introduced by current PR:
Rule | Message | Related RPC [For API reviewers] |
---|---|---|
:warning: ParameterNotUsingCommonTypes | Not using the common-types defined parameter 'location'. Location: Microsoft.AzurePlaywrightService/stable/2024-02-01/playwrighttesting.json#L229 |
The following errors/warnings exist before current PR submission:
Rule | Message |
---|---|
:warning: ParameterNotUsingCommonTypes | Not using the common-types defined parameter 'location'. Location: Microsoft.AzurePlaywrightService/stable/2024-02-01/playwrighttesting.json#L183 |
️️✔️
Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️
SwaggerAPIView succeeded [Detail] [Expand]
️️✔️
TypeSpecAPIView succeeded [Detail] [Expand]
️️✔️
ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️️✔️
SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️️✔️
PoliCheck succeeded [Detail] [Expand]
Validation passed for PoliCheck.
️️✔️
SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️️✔️
Lint(RPaaS) succeeded [Detail] [Expand]
Validation passes for Lint(RPaaS).
️️✔️
PR Summary succeeded [Detail] [Expand]
Validation passes for Summary.
️️✔️
Automated merging requirements met succeeded [Detail] [Expand]
Swagger Generation Artifacts
️️✔️
ApiDocPreview succeeded [Detail] [Expand]
Please click here to preview with your @microsoft account.
️❌
SDK Breaking Change Tracking failed [Detail]
Breaking Changes Tracking
❌
azure-sdk-for-go - sdk/resourcemanager/playwrighttesting/armplaywrighttesting - Approved - 1.0.0+ Field `AllocatedValue`, `CreatedAt`, `ExpiryAt`, `PercentageUsed`, `UsedValue` of struct `FreeTrialProperties` has been removed
❌
azure-sdk-for-python-track2 - track2_azure-mgmt-playwrighttesting - Approved - 1.0.0b1+ Model FreeTrialProperties no longer has parameter allocated_value + Model FreeTrialProperties no longer has parameter created_at + Model FreeTrialProperties no longer has parameter expiry_at + Model FreeTrialProperties no longer has parameter percentage_used + Model FreeTrialProperties no longer has parameter used_value + Operation AccountsOperations.begin_create_or_update has a new required parameter account_name + Operation AccountsOperations.begin_create_or_update no longer has parameter name + Operation AccountsOperations.begin_delete has a new required parameter account_name + Operation AccountsOperations.begin_delete no longer has parameter name + Operation AccountsOperations.get has a new required parameter account_name + Operation AccountsOperations.get no longer has parameter name + Operation AccountsOperations.update has a new required parameter account_name + Operation AccountsOperations.update no longer has parameter name + Operation QuotasOperations.get has a new required parameter quota_name + Operation QuotasOperations.get no longer has parameter name
️⚠️
azure-sdk-for-python-track2 warning [Detail]
⚠️
Warning [Logs] Generate from f316d25725b574017e7daee827e2d1a0acd20852. SDK Automation 14.0.0command sh scripts/automation_init.sh ../azure-sdk-for-python_tmp/initInput.json ../azure-sdk-for-python_tmp/initOutput.json cmderr [automation_init.sh] WARNING: azure-devtools 1.2.1 does not provide the extra 'ci-tools' cmderr [automation_init.sh] WARNING: azure-devtools 1.2.1 does not provide the extra 'ci-tools' cmderr [automation_init.sh] WARNING: Skipping azure-nspkg as it is not installed. warn specification/playwrighttesting/PlaywrightTesting.Management/tspconfig.yaml skipped due to azure-sdk-for-python-track2 not found in tspconfig.yaml command sh scripts/automation_generate.sh ../azure-sdk-for-python_tmp/generateInput.json ../azure-sdk-for-python_tmp/generateOutput.json cmderr [automation_generate.sh] cmderr [automation_generate.sh] npm notice New minor version of npm available! 10.2.3 -> 10.4.0 cmderr [automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.4.0> cmderr [automation_generate.sh] npm notice Run `npm install -g [email protected]` to update! cmderr [automation_generate.sh] npm notice
️✔️
track2_azure-mgmt-playwrighttesting [View full logs] [Preview SDK Changes] Breaking Change Detectedinfo [Changelog] ### Features Added info [Changelog] info [Changelog] - Added operation AccountsOperations.check_name_availability info [Changelog] - Added operation group AccountQuotasOperations info [Changelog] - Model Account has a new parameter properties info [Changelog] - Model AccountUpdate has a new parameter properties info [Changelog] - Model Quota has a new parameter properties info [Changelog] info [Changelog] ### Breaking Changes info [Changelog] info [Changelog] - Model Account no longer has parameter dashboard_uri info [Changelog] - Model Account no longer has parameter provisioning_state info [Changelog] - Model Account no longer has parameter regional_affinity info [Changelog] - Model Account no longer has parameter reporting info [Changelog] - Model Account no longer has parameter scalable_execution info [Changelog] - Model AccountUpdate no longer has parameter regional_affinity info [Changelog] - Model AccountUpdate no longer has parameter reporting info [Changelog] - Model AccountUpdate no longer has parameter scalable_execution info [Changelog] - Model FreeTrialProperties no longer has parameter allocated_value info [Changelog] - Model FreeTrialProperties no longer has parameter created_at info [Changelog] - Model FreeTrialProperties no longer has parameter expiry_at info [Changelog] - Model FreeTrialProperties no longer has parameter percentage_used info [Changelog] - Model FreeTrialProperties no longer has parameter used_value info [Changelog] - Model Quota no longer has parameter free_trial info [Changelog] - Model Quota no longer has parameter provisioning_state info [Changelog] - Operation AccountsOperations.begin_create_or_update has a new required parameter account_name info [Changelog] - Operation AccountsOperations.begin_create_or_update no longer has parameter name info [Changelog] - Operation AccountsOperations.begin_delete has a new required parameter account_name info [Changelog] - Operation AccountsOperations.begin_delete no longer has parameter name info [Changelog] - Operation AccountsOperations.get has a new required parameter account_name info [Changelog] - Operation AccountsOperations.get no longer has parameter name info [Changelog] - Operation AccountsOperations.update has a new required parameter account_name info [Changelog] - Operation AccountsOperations.update no longer has parameter name info [Changelog] - Operation QuotasOperations.get has a new required parameter quota_name info [Changelog] - Operation QuotasOperations.get no longer has parameter name
️⚠️
azure-sdk-for-java warning [Detail]
⚠️
Warning [Logs] Generate from f316d25725b574017e7daee827e2d1a0acd20852. SDK Automation 14.0.0command ./eng/mgmt/automation/init.sh ../azure-sdk-for-java_tmp/initInput.json ../azure-sdk-for-java_tmp/initOutput.json cmderr [init.sh] [notice] A new release of pip is available: 23.0.1 -> 23.3.2 cmderr [init.sh] [notice] To update, run: pip install --upgrade pip cmderr [init.sh] [notice] A new release of pip is available: 23.0.1 -> 23.3.2 cmderr [init.sh] [notice] To update, run: pip install --upgrade pip cmderr [init.sh] Average Speed Time Time Time Current cmderr [init.sh] Dload Upload Total Spent Left Speed cmderr [init.sh] 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0k cmderr [init.sh] Downloading https://nodejs.org/dist/v18.15.0/node-v18.15.0-linux-x64.tar.xz... cmderr [init.sh] Computing checksum with sha256sum cmderr [init.sh] Checksums matched! command ./eng/mgmt/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
️✔️
azure-resourcemanager-playwrighttesting [View full logs] [Preview SDK Changes]
️️✔️
azure-sdk-for-go succeeded [Detail] [Expand]
️✔️
Succeeded [Logs] Generate from f316d25725b574017e7daee827e2d1a0acd20852. SDK Automation 14.0.0command sh ./eng/scripts/automation_init.sh ../../../../../azure-sdk-for-go_tmp/initInput.json ../../../../../azure-sdk-for-go_tmp/initOutput.json warn specification/playwrighttesting/PlaywrightTesting.Management/tspconfig.yaml skipped due to azure-sdk-for-go not found in tspconfig.yaml command generator automation-v2 ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
️✔️
sdk/resourcemanager/playwrighttesting/armplaywrighttesting [View full logs] [Preview SDK Changes] Breaking Change Detectedinfo [Changelog] ### Breaking Changes info [Changelog] info [Changelog] - Field `AllocatedValue`, `CreatedAt`, `ExpiryAt`, `PercentageUsed`, `UsedValue` of struct `FreeTrialProperties` has been removed info [Changelog] info [Changelog] ### Features Added info [Changelog] info [Changelog] - New value `FreeTrialStateNotEligible`, `FreeTrialStateNotRegistered` added to enum type `FreeTrialState` info [Changelog] - New value `ProvisioningStateCreating` added to enum type `ProvisioningState` info [Changelog] - New enum type `CheckNameAvailabilityReason` with values `CheckNameAvailabilityReasonAlreadyExists`, `CheckNameAvailabilityReasonInvalid` info [Changelog] - New function `NewAccountQuotasClient(string, azcore.TokenCredential, *arm.ClientOptions) (*AccountQuotasClient, error)` info [Changelog] - New function `*AccountQuotasClient.Get(context.Context, string, string, QuotaNames, *AccountQuotasClientGetOptions) (AccountQuotasClientGetResponse, error)` info [Changelog] - New function `*AccountQuotasClient.NewListByAccountPager(string, string, *AccountQuotasClientListByAccountOptions) *runtime.Pager[AccountQuotasClientListByAccountResponse]` info [Changelog] - New function `*AccountsClient.CheckNameAvailability(context.Context, CheckNameAvailabilityRequest, *AccountsClientCheckNameAvailabilityOptions) (AccountsClientCheckNameAvailabilityResponse, error)` info [Changelog] - New function `*ClientFactory.NewAccountQuotasClient() *AccountQuotasClient` info [Changelog] - New struct `AccountFreeTrialProperties` info [Changelog] - New struct `AccountQuota` info [Changelog] - New struct `AccountQuotaListResult` info [Changelog] - New struct `AccountQuotaProperties` info [Changelog] - New struct `CheckNameAvailabilityRequest` info [Changelog] - New struct `CheckNameAvailabilityResponse` info [Changelog] info [Changelog] Total 1 breaking change(s), 23 additive change(s).
️️✔️
azure-sdk-for-js succeeded [Detail] [Expand]
️✔️
Succeeded [Logs] Generate from f316d25725b574017e7daee827e2d1a0acd20852. SDK Automation 14.0.0command sh .scripts/automation_init.sh ../azure-sdk-for-js_tmp/initInput.json ../azure-sdk-for-js_tmp/initOutput.json warn File azure-sdk-for-js_tmp/initOutput.json not found to read command sh .scripts/automation_generate.sh ../azure-sdk-for-js_tmp/generateInput.json ../azure-sdk-for-js_tmp/generateOutput.json
️✔️
@azure/arm-playwrighttesting [View full logs] [Preview SDK Changes]info [Changelog] error breakingChangeTracking is enabled, but version or changelogItem is not found in output.
️⚠️
azure-resource-manager-schemas warning [Detail]
⚠️
Warning [Logs] Generate from f316d25725b574017e7daee827e2d1a0acd20852. Schema Automation 14.0.0command .sdkauto/initScript.sh ../azure-resource-manager-schemas_tmp/initInput.json ../azure-resource-manager-schemas_tmp/initOutput.json cmderr [initScript.sh] notice cmderr [initScript.sh] npm notice New minor version of npm available! 10.2.3 -> 10.4.0 cmderr [initScript.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.4.0> cmderr [initScript.sh] npm notice Run `npm install -g [email protected]` to update! cmderr [initScript.sh] npm notice warn File azure-resource-manager-schemas_tmp/initOutput.json not found to read command .sdkauto/generateScript.sh ../azure-resource-manager-schemas_tmp/generateInput.json ../azure-resource-manager-schemas_tmp/generateOutput.json
️✔️
playwrighttesting [View full logs] [Preview Schema Changes]
️⚠️
azure-powershell warning [Detail]
⚠️
Warning [Logs] Generate from f316d25725b574017e7daee827e2d1a0acd20852. SDK Automation 14.0.0command sh ./tools/SwaggerCI/init.sh ../azure-powershell_tmp/initInput.json ../azure-powershell_tmp/initOutput.json warn specification/playwrighttesting/PlaywrightTesting.Management/tspconfig.yaml skipped due to azure-powershell not found in tspconfig.yaml command pwsh ./tools/SwaggerCI/psci.ps1 ../azure-powershell_tmp/generateInput.json ../azure-powershell_tmp/generateOutput.json
⚠️
Az.playwrighttesting.DefaultTag [View full logs] [Preview SDK Changes]
Generated ApiView
Language | Package Name | ApiView Link |
---|---|---|
Go | sdk/resourcemanager/playwrighttesting/armplaywrighttesting | https://apiview.dev/Assemblies/Review/b7335bf36fde4a55b601579a922966cd?revisionId=5413798075984fe69662061c08e2a5a0 |
Java | azure-resourcemanager-playwrighttesting | https://apiview.dev/Assemblies/Review/1bd459ec74cb4a53a4d19cdb7e9db406?revisionId=518d233aa8a34656a749a757b5727975 |
JavaScript | @azure/arm-playwrighttesting | https://apiview.dev/Assemblies/Review/3a5ef77675cd496b8ea7476458ea8d4b?revisionId=fca74a65cb5441d985213b6257428192 |
Swagger | Microsoft.AzurePlaywrightService | https://apiview.dev/Assemblies/Review/39085ca5f9b54ca18e7d6b912ff27b2b?revisionId=c267bbb3ff874a90b24c38b0896b787e |
TypeSpec | PlaywrightTesting.Management | https://apiview.dev/Assemblies/Review/8d7e4b8460bd4874b59430d6790390d8?revisionId=4435c4fe7efc49869ba48d964daefa6f |
Hi @mjmadhu! For review efficiency consideration, when creating a new API version, it is required to place API specs of the base version in the first commit, and push new version updates into successive commits. You can use OpenAPIHub to initialize the PR for adding a new version.
For more details refer to the wiki.
The base commit is already added, hence removing this tag.
Could you please fix the newly introduced LintDiff errors : https://github.com/Azure/azure-rest-api-specs/pull/27132/checks?check_run_id=20718479251
Please address or respond to feedback from the ARM API reviewer.
When you are ready to continue the ARM API review, please remove the ARMChangesRequested
label.
This will notify the reviewer to have another look.
If the feedback provided needs further discussion, please use this Teams channel to post your questions - aka.ms/azsdk/support/specreview-channel.
Please include [ARM Query]
in the title of your question to indicate that it is ARM-related.
The remaining Swagger LintDiff Errors are occurring from the TypeSpec generated code. Please let us know what changes need to be done if fixes are available for them.
ResourceNameRestriction - It's throwing the following error as it's enum type - error decorator-wrong-target: Cannot apply @pattern decorator to type it is not a string
109 | @pattern("^[a-zA-Z]{1}[a-zA-Z0-9]{2,127}$")
ProvisioningStateMustBeReadOnly - Already defined with @visibility("read") in the tsp file
DeleteResponseCodes - Default operations are generated from the TrackedResourceOperations as verfied from the following tsp code - @armResourceOperations interface Accounts extends TrackedResourceOperations<Account, AccountProperties> { @doc("Adds check global name availability operation, normally used if a resource name must be globally unique.") checkNameAvailability is checkGlobalNameAvailability; }
ValidFormats - Can't find any other format than string and int32 in the documentation to support decimal/float types.
ParameterNotUsingCommonTypes - The current @locationResource does not comply with the signature of ARM location based resources like usages signature mentioned here, hence created custom locations resource as discussed on the Teams Thread.
The remaining Swagger LintDiff Errors are occurring from the TypeSpec generated code. Please let us know what changes need to be done if fixes are available for them.
ResourceNameRestriction - It's throwing the following error as it's enum type - error decorator-wrong-target: Cannot apply @pattern decorator to type it is not a string
109 | @pattern("^[a-zA-Z]{1}[a-zA-Z0-9]{2,127}$")
ProvisioningStateMustBeReadOnly - Already defined with @visibility("read") in the tsp file
DeleteResponseCodes - Default operations are generated from the TrackedResourceOperations as verfied from the following tsp code - @armResourceOperations interface Accounts extends TrackedResourceOperations<Account, AccountProperties> { @doc("Adds check global name availability operation, normally used if a resource name must be globally unique.") checkNameAvailability is checkGlobalNameAvailability; }
ValidFormats - Can't find any other format than string and int32 in the documentation to support decimal/float types.
ParameterNotUsingCommonTypes - The current @locationResource does not comply with the signature of ARM location based resources like usages signature mentioned here, hence created custom locations resource as discussed on the Teams Thread.
The remaining Swagger LintDiff Errors are occurring from the TypeSpec generated code. Please let us know what changes need to be done if fixes are available for them.
ResourceNameRestriction - It's throwing the following error as it's enum type - error decorator-wrong-target: Cannot apply @pattern decorator to type it is not a string
109 | @pattern("^[a-zA-Z]{1}[a-zA-Z0-9]{2,127}$")
ProvisioningStateMustBeReadOnly - Already defined with @visibility("read") in the tsp file
DeleteResponseCodes - Default operations are generated from the TrackedResourceOperations as verfied from the following tsp code - @armResourceOperations interface Accounts extends TrackedResourceOperations<Account, AccountProperties> { @doc("Adds check global name availability operation, normally used if a resource name must be globally unique.") checkNameAvailability is checkGlobalNameAvailability; }
ValidFormats - Can't find any other format than string and int32 in the documentation to support decimal/float types.
ParameterNotUsingCommonTypes - The current @locationResource does not comply with the signature of ARM location based resources like usages signature mentioned here, hence created custom locations resource as discussed on the Teams Thread.
Please add a suppression for : "ResourceNameRestriction" , "ProvisioningStateMustBeReadOnly" and "DeleteResponseCode" for the specific line where it is getting raised. Seems like bug in the tooling
For ValidTypes have you already tried float : https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#data-types ? or else you might have to use string since it wouldnt get recognized otherwise.
Signing off on this. The suppressions do not seem to be working. We might have to fix them before merge can complete though
/pr RequestMerge
/pr RequestMerge
the suppressions you added do not seem to be working. Can you please go through the trouble shooting section in this doc to ensure that the suppressions are working as expected : https://eng.ms/docs/products/azure-developer-experience/design/specs-pr-guides/pr-suppressions
suppressions must be for the correct file and package version not at the top level like you have added :
I am removing the PR merge for now since we need to fix the suppressions before merge.
@raosuhas Suppressions fixed now. Please help review and merge.
/pr RequestMerge
/pr RequestMerge
Paths doesn't seem to be working with ResourceNameRestriction Suppression as observed in existing usage from the TSG as well - https://github.com/Azure/azure-rest-api-specs/blob/0c2e0ff7acea901abb0d6714385546788c10d878/specification/desktopvirtualization/resource-manager/readme.md?plain=1#L40
Please help us with review and merge before the Chinese holiday season next week. @visingla-ms