Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert two operations to be async #28350

Conversation

RayY-96
Copy link
Contributor

@RayY-96 RayY-96 commented Mar 20, 2024

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.

Note

As of January 2024 there is no PR assignee. This is expected. See https://aka.ms/azsdk/pr-arm-review.

PR review workflow diagram

Please understand this diagram before proceeding. It explains how to get your PR approved & merged.

diagram

Click here to see the details of Step 1, Breaking Changes review

If you are in purview of Step 1 of the diagram, follow the Breaking Changes review process.
IMPORTANT! This applies even if you believe your PR was mislabeled, for any reason, including tool failure.

Click here to see the details of Step 2, ARM review

See https://aka.ms/azsdk/pr-arm-review.

Click here to see the diagram footnotes

Diagram footnotes

[1] See ARM review queue (for PR merge queues, see [2]).
[2] public repo merge queue, private repo merge queue (for ARM review queue, [1])
The ARM reviewer on-call engineer visits the merge queue twice a day, so the approximate ETA for merges is 12 - 24 hours.

Purpose of this PR

What's the purpose of this PR? Check the specific option that applies. This is mandatory!

  • New resource provider.
  • New API version for an existing resource provider. (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 OpenAPI spec 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:

  • I confirm this PR is modifying Azure Resource Manager (ARM) related specifications, and not data plane related specifications.
  • 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
suppressions guide 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 and Due 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.
  • For help with PR workflow diagram Step 2 (ARM review), see https://aka.ms/azsdk/pr-arm-review.
  • 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 a PR 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.

Copy link

openapi-pipeline-app bot commented Mar 20, 2024

Next Steps to Merge

✅ All automated merging requirements have been met! To get your PR merged, see https://aka.ms/azsdk/specreview/merge.

Copy link

openapi-pipeline-app bot commented Mar 20, 2024

Swagger Validation Report

️️✔️BreakingChange succeeded [Detail] [Expand]
There are no breaking changes.
️⚠️Breaking Change(Cross-Version): 3 Warnings warning [Detail]
Compared specs (v0.10.5) new version base version
privateAccesses.json 2024-03-22-preview(2437e50) 2023-10-27-preview(main)

The following breaking changes are detected by comparison with the latest preview version:

Rule Message
⚠️ 1011 - AddingResponseCode The new version adds a response code '202'.
New: Microsoft.Chaos/preview/2024-03-22-preview/privateAccesses.json#L259:11
⚠️ 1044 - XmsLongRunningOperationChanged The new version has a different 'x-ms-longrunning-operation' value than the previous one.
New: Microsoft.Chaos/preview/2024-03-22-preview/privateAccesses.json#L176:7
Old: Microsoft.Chaos/preview/2023-10-27-preview/privateAccesses.json#L176:7
⚠️ 1044 - XmsLongRunningOperationChanged The new version has a different 'x-ms-longrunning-operation' value than the previous one.
New: Microsoft.Chaos/preview/2024-03-22-preview/privateAccesses.json#L238:7
Old: Microsoft.Chaos/preview/2023-10-27-preview/privateAccesses.json#L231:7
️❌LintDiff: 4 Errors, 0 Warnings failed [Detail]
Compared specs (v2.2.0) new version base version
package-preview-2024-03 package-preview-2024-03(2437e50) package-preview-2024-03(MasterRyd3l-chaos-Microsoft.Chaos-2024-03-22-preview)

[must fix]The following errors/warnings are introduced by current PR:

Rule Message Related RPC [For API reviewers]
ProvisioningStateSpecifiedForLROPut 200 response schema in long running PUT operation is missing ProvisioningState property. A LRO PUT operations response schema must have ProvisioningState specified for the 200 and 201 status codes.
Location: Microsoft.Chaos/preview/2024-03-22-preview/privateAccesses.json#L176
ProvisioningStateSpecifiedForLROPut 201 response schema in long running PUT operation is missing ProvisioningState property. A LRO PUT operations response schema must have ProvisioningState specified for the 200 and 201 status codes.
Location: Microsoft.Chaos/preview/2024-03-22-preview/privateAccesses.json#L176
DeleteResponseCodes Long-running delete operations must have responses with 202, 204 and default return codes. They also must have no other response codes.
Location: Microsoft.Chaos/preview/2024-03-22-preview/privateAccesses.json#L238
RPC-Delete-V1-01
LroLocationHeader A 202 response should include an Location response header.
Location: Microsoft.Chaos/preview/2024-03-22-preview/privateAccesses.json#L259
RPC-Async-V1-07


The following errors/warnings exist before current PR submission:

Rule Message
⚠️ ParameterNotDefinedInGlobalParameters Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition
Location: Microsoft.Chaos/preview/2024-03-22-preview/privateAccesses.json#L52
⚠️ ParameterNotDefinedInGlobalParameters Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition
Location: Microsoft.Chaos/preview/2024-03-22-preview/privateAccesses.json#L94
⚠️ ParameterNotDefinedInGlobalParameters Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition
Location: Microsoft.Chaos/preview/2024-03-22-preview/privateAccesses.json#L139
⚠️ ParameterNotDefinedInGlobalParameters Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition
Location: Microsoft.Chaos/preview/2024-03-22-preview/privateAccesses.json#L182
⚠️ ParameterNotDefinedInGlobalParameters Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition
Location: Microsoft.Chaos/preview/2024-03-22-preview/privateAccesses.json#L244
⚠️ ListInOperationName Since operation response has model definition in array type, it should be of the form '_list'.
Location: Microsoft.Chaos/preview/2024-03-22-preview/privateAccesses.json#L281
⚠️ ParameterNotDefinedInGlobalParameters Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition
Location: Microsoft.Chaos/preview/2024-03-22-preview/privateAccesses.json#L287
⚠️ ParameterNotDefinedInGlobalParameters Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition
Location: Microsoft.Chaos/preview/2024-03-22-preview/privateAccesses.json#L332
⚠️ ParameterNotDefinedInGlobalParameters Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition
Location: Microsoft.Chaos/preview/2024-03-22-preview/privateAccesses.json#L375
⚠️ ParameterNotDefinedInGlobalParameters Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition
Location: Microsoft.Chaos/preview/2024-03-22-preview/privateAccesses.json#L429
️️✔️Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️SwaggerAPIView succeeded [Detail] [Expand]
️️✔️TypeSpecAPIView succeeded [Detail] [Expand]
️❌ModelValidation: 10 Errors, 0 Warnings failed [Detail]
Rule Message
OBJECT_ADDITIONAL_PROPERTIES Additional properties not allowed: provisioningState
Url: preview/2024-03-22-preview/types/privateAccesses.json#L28:32
ExampleUrl: preview/2024-03-22-preview/examples/CreateOrUpdateAPrivateAccess.json#L43:32
OBJECT_ADDITIONAL_PROPERTIES Additional properties not allowed: provisioningState
Url: preview/2024-03-22-preview/types/privateAccesses.json#L28:32
ExampleUrl: preview/2024-03-22-preview/examples/CreateOrUpdateAPrivateAccess.json#L24:32
OBJECT_ADDITIONAL_PROPERTIES Additional properties not allowed: provisioningState
Url: preview/2024-03-22-preview/types/privateAccesses.json#L28:32
ExampleUrl: preview/2024-03-22-preview/examples/CreateOrUpdateAPrivateAccess_WithPublicNetworkAccess.json#L46:32
OBJECT_ADDITIONAL_PROPERTIES Additional properties not allowed: provisioningState
Url: preview/2024-03-22-preview/types/privateAccesses.json#L28:32
ExampleUrl: preview/2024-03-22-preview/examples/CreateOrUpdateAPrivateAccess_WithPublicNetworkAccess.json#L26:32
LRO_RESPONSE_HEADER Long running operation should return location or azure-AsyncOperation in header but not provided
Url: Microsoft.Chaos/preview/2024-03-22-preview/privateAccesses.json#L258:22
ExampleUrl: preview/2024-03-22-preview/examples/DeleteAPrivateAccess.json
OBJECT_ADDITIONAL_PROPERTIES Additional properties not allowed: provisioningState
Url: preview/2024-03-22-preview/types/privateAccesses.json#L28:32
ExampleUrl: preview/2024-03-22-preview/examples/CreateOrUpdateAPrivateAccess.json#L43:32
OBJECT_ADDITIONAL_PROPERTIES Additional properties not allowed: provisioningState
Url: preview/2024-03-22-preview/types/privateAccesses.json#L28:32
ExampleUrl: preview/2024-03-22-preview/examples/CreateOrUpdateAPrivateAccess.json#L24:32
OBJECT_ADDITIONAL_PROPERTIES Additional properties not allowed: provisioningState
Url: preview/2024-03-22-preview/types/privateAccesses.json#L28:32
ExampleUrl: preview/2024-03-22-preview/examples/CreateOrUpdateAPrivateAccess_WithPublicNetworkAccess.json#L46:32
OBJECT_ADDITIONAL_PROPERTIES Additional properties not allowed: provisioningState
Url: preview/2024-03-22-preview/types/privateAccesses.json#L28:32
ExampleUrl: preview/2024-03-22-preview/examples/CreateOrUpdateAPrivateAccess_WithPublicNetworkAccess.json#L26:32
LRO_RESPONSE_HEADER Long running operation should return location or azure-AsyncOperation in header but not provided
Url: Microsoft.Chaos/preview/2024-03-22-preview/privateAccesses.json#L258:22
ExampleUrl: preview/2024-03-22-preview/examples/DeleteAPrivateAccess.json
️️✔️SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️️✔️SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️️✔️PR Summary succeeded [Detail] [Expand]
Validation passes for Summary.
️️✔️Automated merging requirements met succeeded [Detail] [Expand]
Posted by Swagger Pipeline | How to fix these errors?

Copy link

openapi-pipeline-app bot commented Mar 20, 2024

Swagger Generation Artifacts

️️✔️ApiDocPreview succeeded [Detail] [Expand]
 Please click here to preview with your @microsoft account. 
️❌ azure-sdk-for-python-track2 failed [Detail]
  • Code Generator Failed [Logs] Generate from 90b87fce7f3baeac36b39b05b22c50021ab9e67c. SDK Automation 14.0.0
    command	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.
    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.4 -> 10.5.0
    cmderr	[automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.5.0>
    cmderr	[automation_generate.sh] npm notice Run `npm install -g [email protected]` to update!
    cmderr	[automation_generate.sh] npm notice
    cmdout	[automation_generate.sh] [Autorest] warning | DeprecatedConfig | Using directive.2.suppress which is deprecated and will be removed in the future.
    cmdout	[automation_generate.sh] [Autorest] info    |    Installing AutoRest extension '@autorest/modelerfour' (4.27.0 -> 4.27.0)
    cmdout	[automation_generate.sh] [Autorest] info    |    Installed AutoRest extension '@autorest/modelerfour' (4.27.0->4.27.0)
    cmdout	[automation_generate.sh] [Autorest] info    |    Installing AutoRest extension '@autorest/python' (6.13.7 -> 6.13.7)
    cmdout	[automation_generate.sh] [Autorest] info    |    Installed AutoRest extension '@autorest/python' (6.13.7->6.13.7)
    cmdout	[automation_generate.sh] [Autorest] warning | IgnoredPropertyNextToRef | Semantic violation: Sibling values alongside $ref will be ignored. See https://github.com/Azure/autorest/blob/main/docs/openapi/howto/$ref-siblings.md for allowed values (components > schemas > experimentExecutionActionTargetDetailsProperties > properties > error)
    cmdout	[automation_generate.sh] [Autorest]   keys: [ �[32m'type'�[39m ]
    cmdout	[automation_generate.sh] [Autorest] warning | PreCheck/SchemaMissingType | The schema 'PrivateLinkResourceListResult' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmdout	[automation_generate.sh] [Autorest] warning | PreCheck/SchemaMissingType | The schema 'PrivateEndpointConnectionListResult' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmdout	[automation_generate.sh] [Autorest] warning | PreCheck/CheckDuplicateSchemas | Checking for duplicate schemas, this could take a (long) while.  Run with --verbose for more detail.
    cmdout	[automation_generate.sh] [Autorest] error   | PreCheck/DuplicateSchema | Duplicate Schema named 'Resource' (3 differences):
    cmdout	[automation_generate.sh] [Autorest]   - properties.id.$ref: "#/components/schemas/schemas:111" => "#/components/schemas/schemas:258"
    cmdout	[automation_generate.sh] [Autorest]   - properties.id.description: "Fully qualified resource ID for the resource. E.g. \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}\"" => "Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    cmdout	[automation_generate.sh] [Autorest]   - properties.systemData: {"readOnly":true,"description":"Azure Resource Manager metadata containing createdBy and modifiedBy information.","$ref":"#/components/schemas/schemas:180"} => <none>; This error can be *temporarily* avoided by using the 'modelerfour.lenient-model-deduplication' setting.  NOTE: This setting will be removed in a future version of @autorest/modelerfour; schemas should be updated to fix this issue sooner than that.
    cmdout	[automation_generate.sh] [Autorest] error   | PreCheck/DuplicateSchema | Duplicate Schema named 'TrackedResource' (1 differences):
    cmdout	[automation_generate.sh] [Autorest]   - allOf.0.$ref: "#/components/schemas/schemas:110" => "#/components/schemas/schemas:257"; This error can be *temporarily* avoided by using the 'modelerfour.lenient-model-deduplication' setting.  NOTE: This setting will be removed in a future version of @autorest/modelerfour; schemas should be updated to fix this issue sooner than that.
    cmdout	[automation_generate.sh] [Autorest] fatal   | Error: 2 errors occured -- cannot continue.
    cmdout	[automation_generate.sh] [Autorest] fatal   | Process() cancelled due to failure
    cmdout	[automation_generate.sh] [Autorest] error   |   Error: Plugin prechecker reported failure.
    cmdout	[automation_generate.sh] [Autorest] error   | Autorest completed with an error. If you think the error message is unclear, or is a bug, please declare an issues at https://github.com/Azure/autorest/issues with the error message you are seeing.
    cmdout	[automation_generate.sh] [Autorest] warning | DeprecatedConfig | Using directive.0.suppress which is deprecated and will be removed in the future.
    cmdout	[automation_generate.sh] [Autorest] warning | DeprecatedConfig | Using directive.1.suppress which is deprecated and will be removed in the future.
    cmdout	[automation_generate.sh] [Autorest] warning | DeprecatedConfig | Using directive.2.suppress which is deprecated and will be removed in the future.
    cmdout	[automation_generate.sh] [Autorest] info    |    Loading AutoRest extension '@autorest/modelerfour' (4.27.0->4.27.0)
    cmdout	[automation_generate.sh] [Autorest] info    |    Loading AutoRest extension '@autorest/python' (6.13.7->6.13.7)
    cmdout	[automation_generate.sh] [Autorest] warning | IgnoredPropertyNextToRef | Semantic violation: Sibling values alongside $ref will be ignored. See https://github.com/Azure/autorest/blob/main/docs/openapi/howto/$ref-siblings.md for allowed values (components > schemas > experimentExecutionActionTargetDetailsProperties > properties > error)
    cmdout	[automation_generate.sh] [Autorest]   keys: [ �[32m'type'�[39m ]
    cmdout	[automation_generate.sh] [Autorest] warning | PreCheck/SchemaMissingType | The schema 'PrivateLinkResourceListResult' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmdout	[automation_generate.sh] [Autorest] warning | PreCheck/SchemaMissingType | The schema 'PrivateEndpointConnectionListResult' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmdout	[automation_generate.sh] [Autorest] warning | PreCheck/CheckDuplicateSchemas | Checking for duplicate schemas, this could take a (long) while.  Run with --verbose for more detail.
    cmdout	[automation_generate.sh] [Autorest] error   | PreCheck/DuplicateSchema | Duplicate Schema named 'Resource' (3 differences):
    cmdout	[automation_generate.sh] [Autorest]   - properties.id.$ref: "#/components/schemas/schemas:111" => "#/components/schemas/schemas:258"
    cmdout	[automation_generate.sh] [Autorest]   - properties.id.description: "Fully qualified resource ID for the resource. E.g. \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}\"" => "Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    cmdout	[automation_generate.sh] [Autorest]   - properties.systemData: {"readOnly":true,"description":"Azure Resource Manager metadata containing createdBy and modifiedBy information.","$ref":"#/components/schemas/schemas:180"} => <none>; This error can be *temporarily* avoided by using the 'modelerfour.lenient-model-deduplication' setting.  NOTE: This setting will be removed in a future version of @autorest/modelerfour; schemas should be updated to fix this issue sooner than that.
    cmdout	[automation_generate.sh] [Autorest] error   | PreCheck/DuplicateSchema | Duplicate Schema named 'TrackedResource' (1 differences):
    cmdout	[automation_generate.sh] [Autorest]   - allOf.0.$ref: "#/components/schemas/schemas:110" => "#/components/schemas/schemas:257"; This error can be *temporarily* avoided by using the 'modelerfour.lenient-model-deduplication' setting.  NOTE: This setting will be removed in a future version of @autorest/modelerfour; schemas should be updated to fix this issue sooner than that.
    cmdout	[automation_generate.sh] [Autorest] fatal   | Error: 2 errors occured -- cannot continue.
    cmdout	[automation_generate.sh] [Autorest] fatal   | Process() cancelled due to failure
    cmdout	[automation_generate.sh] [Autorest] error   |   Error: Plugin prechecker reported failure.
    cmdout	[automation_generate.sh] [Autorest] error   | Autorest completed with an error. If you think the error message is unclear, or is a bug, please declare an issues at https://github.com/Azure/autorest/issues with the error message you are seeing.
    cmdout	[automation_generate.sh] [Autorest]/mnt/vss/_work/1/s/azure-sdk-for-python_tmp/venv-sdk/auto_temp.json does not exist!!!Error happened during codegen
    error	Script return with result [failed] code [1] signal [null] cwd [azure-sdk-for-python]: sh scripts/automation_generate.sh
    warn	Skip package processing as generation is failed
️⚠️ azure-sdk-for-java warning [Detail]
  • ⚠️Warning [Logs] Generate from 90b87fce7f3baeac36b39b05b22c50021ab9e67c. SDK Automation 14.0.0
    command	./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 -> 24.0
    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 -> 24.0
    cmderr	[init.sh] [notice] To update, run: pip install --upgrade pip
    cmderr	[init.sh] t
    cmderr	[init.sh]                                  Dload  Upload   Total   Spent    Left  Speed
    cmderr	[init.sh] 
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0-  818k
    cmderr	[init.sh] Downloading https://nodejs.org/dist/v18.15.0/node-v18.15.0-linux-x64.tar.xz...
    cmderr	[init.sh] ################### 100.0%
    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-chaos [View full logs]  [Preview SDK Changes]
️❌ azure-sdk-for-go failed [Detail]
  • Code Generator Failed [Logs] Generate from 90b87fce7f3baeac36b39b05b22c50021ab9e67c. SDK Automation 14.0.0
    command	sh ./eng/scripts/automation_init.sh ../../../../../azure-sdk-for-go_tmp/initInput.json ../../../../../azure-sdk-for-go_tmp/initOutput.json
    command	generator automation-v2 ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
    cmderr	[generator automation-v2] [ERROR] total 1 error(s):
    cmderr	[generator automation-v2] [ERROR] failed to execute `go generate` '�[33;1mWARNING: Unable to find version for /mnt/vss/_work/1/s/azure-sdk-for-go/src/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/chaos/armchaos�[0m
    cmderr	[generator automation-v2] [ERROR] Cannot find go module under resourcemanager/chaos/armchaos, try to build in /mnt/vss/_work/1/s/azure-sdk-for-go/src/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/chaos/armchaos
    cmderr	[generator automation-v2] [ERROR] ##[command]Cleaning auto-generated files in /mnt/vss/_work/1/s/azure-sdk-for-go/src/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/chaos/armchaos
    cmderr	[generator automation-v2] [ERROR] ##[command]Executing autorest.go in  /mnt/vss/_work/1/s/azure-sdk-for-go/src/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/chaos/armchaos
    cmderr	[generator automation-v2] [ERROR] autorest --use=@autorest/[email protected] --go --track2 --output-folder=/mnt/vss/_work/1/s/azure-sdk-for-go/src/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/chaos/armchaos --clear-output-folder=false --go.clear-output-folder=false --honor-body-placement=true --remove-unreferenced-types=false ./autorest.md
    cmderr	[generator automation-v2] [ERROR] AutoRest code generation utility [cli version: 3.6.1; node: v18.19.1]
    cmderr	[generator automation-v2] [ERROR] (C) 2018 Microsoft Corporation.
    cmderr	[generator automation-v2] [ERROR] https://aka.ms/autorest
    cmderr	[generator automation-v2] [ERROR] There is a new version of AutoRest available (3.7.1).
    cmderr	[generator automation-v2] [ERROR] > You can install the newer version with with npm install -g autorest@latest
    cmderr	[generator automation-v2] [ERROR] info    |    Loading AutoRest core      '/home/cloudtest/.autorest/@[email protected]/nodemodules/@autorest/core/dist' (3.10.2)
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.0.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.0.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.0.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.0.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.1.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.2.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] info    |    Installing AutoRest extension '@autorest/go' (4.0.0-preview.63 -> 4.0.0-preview.63)
    cmderr	[generator automation-v2] [ERROR] info    |    Installed AutoRest extension '@autorest/go' (4.0.0-preview.63->4.0.0-preview.63)
    cmderr	[generator automation-v2] [ERROR] info    |    Installing AutoRest extension '@autorest/modelerfour' (4.26.2 -> 4.26.2)
    cmderr	[generator automation-v2] [ERROR] info    |    Installed AutoRest extension '@autorest/modelerfour' (4.26.2->4.26.2)
    cmderr	[generator automation-v2] [ERROR] warning | IgnoredPropertyNextToRef | Semantic violation: Sibling values alongside $ref will be ignored. See https://github.com/Azure/autorest/blob/main/docs/openapi/howto/$ref-siblings.md for allowed values (components > schemas > experimentExecutionActionTargetDetailsProperties > properties > error)
    cmderr	[generator automation-v2] [ERROR] keys: [ �[32m'type'�[39m ]
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/SchemaMissingType | The schema 'PrivateLinkResourceListResult' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/SchemaMissingType | The schema 'PrivateEndpointConnectionListResult' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/CheckDuplicateSchemas | Checking for duplicate schemas, this could take a (long) while.  Run with --verbose for more detail.
    cmderr	[generator automation-v2] [ERROR] error   | PreCheck/DuplicateSchema | Duplicate Schema named 'Resource' (3 differences):
    cmderr	[generator automation-v2] [ERROR] - properties.id.$ref: "#/components/schemas/schemas:111" => "#/components/schemas/schemas:258"
    cmderr	[generator automation-v2] [ERROR] - properties.id.description: "Fully qualified resource ID for the resource. E.g. \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}\"" => "Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    cmderr	[generator automation-v2] [ERROR] - properties.systemData: {"readOnly":true,"description":"Azure Resource Manager metadata containing createdBy and modifiedBy information.","$ref":"#/components/schemas/schemas:180"} => <none>; This error can be *temporarily* avoided by using the 'modelerfour.lenient-model-deduplication' setting.  NOTE: This setting will be removed in a future version of @autorest/modelerfour; schemas should be updated to fix this issue sooner than that.
    cmderr	[generator automation-v2] [ERROR] error   | PreCheck/DuplicateSchema | Duplicate Schema named 'TrackedResource' (1 differences):
    cmderr	[generator automation-v2] [ERROR] - allOf.0.$ref: "#/components/schemas/schemas:110" => "#/components/schemas/schemas:257"; This error can be *temporarily* avoided by using the 'modelerfour.lenient-model-deduplication' setting.  NOTE: This setting will be removed in a future version of @autorest/modelerfour; schemas should be updated to fix this issue sooner than that.
    cmderr	[generator automation-v2] [ERROR] fatal   | Error: 2 errors occured -- cannot continue.
    cmderr	[generator automation-v2] [ERROR] fatal   | Process() cancelled due to failure
    cmderr	[generator automation-v2] [ERROR] error   |   Error: Plugin prechecker reported failure.
    cmderr	[generator automation-v2] [ERROR] error   | Autorest completed with an error. If you think the error message is unclear, or is a bug, please declare an issues at https://github.com/Azure/autorest/issues with the error message you are seeing.
    cmderr	[generator automation-v2] [ERROR] ##[error]Error running autorest.go
    cmderr	[generator automation-v2] [ERROR] build.go:5: running "pwsh": exit status 1
    cmderr	[generator automation-v2] [ERROR] ': exit status 1
    error	Script return with result [failed] code [1] signal [null] cwd [azure-sdk-for-go/src/github.com/Azure/azure-sdk-for-go]: generator automation-v2
    warn	Skip package processing as generation is failed
️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs] Generate from 90b87fce7f3baeac36b39b05b22c50021ab9e67c. SDK Automation 14.0.0
    command	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-chaos [View full logs]  [Preview SDK Changes]
️⚠️ azure-resource-manager-schemas warning [Detail]
  • ⚠️Warning [Logs] Generate from 90b87fce7f3baeac36b39b05b22c50021ab9e67c. Schema Automation 14.0.0
    command	.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.4 -> 10.5.0
    cmderr	[initScript.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.5.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
️️✔️ azure-powershell succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs] Generate from 90b87fce7f3baeac36b39b05b22c50021ab9e67c. SDK Automation 14.0.0
    command	sh ./tools/SwaggerCI/init.sh ../azure-powershell_tmp/initInput.json ../azure-powershell_tmp/initOutput.json
    command	pwsh ./tools/SwaggerCI/psci.ps1 ../azure-powershell_tmp/generateInput.json ../azure-powershell_tmp/generateOutput.json
  • ️✔️Az.chaos.DefaultTag [View full logs]  [Preview SDK Changes]
Posted by Swagger Pipeline | How to fix these errors?

@@ -222,6 +222,10 @@
}
}
},
"x-ms-long-running-operation-options": {
"final-state-via": "location"
Copy link
Member

Choose a reason for hiding this comment

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

for put, use the azure-async-operation header instead of location. azure-async-operation header includes a payload.

@@ -255,6 +259,9 @@
"200": {
Copy link
Member

Choose a reason for hiding this comment

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

delete is only 202. the location header url needs to return either 200 or 204.

@MasterRyd3l MasterRyd3l merged commit f569d71 into MasterRyd3l-chaos-Microsoft.Chaos-2024-03-22-preview Mar 22, 2024
22 of 27 checks passed
@MasterRyd3l MasterRyd3l deleted the rui-async-chaos-Microsoft.Chaos-2024-03-22-preview branch March 22, 2024 20:07
MasterRyd3l pushed a commit that referenced this pull request Mar 22, 2024
* Convert two operations to be async

* Fix examples

* Resolve comments

* Change delete async operation status code
mentat9 pushed a commit that referenced this pull request May 13, 2024
* Adds base for updating Microsoft.Chaos from version preview/2023-10-27-preview to version 2024-03-22-preview

* Updates readme

* Updates API version in new specs and examples

* merge in 2024-01-01 stable branch additions

* Add PublicNetworkAccess Field under privateAccesses resource (#28110)

* Add new field for privateAccess

* Fix reference

* Fix PublicNetworkAccess definition

* Fix PrettierCheck

* Fix enum name

* Rename enum property

* Test my push permission

* Adds base for updating Microsoft.Chaos from version preview/2023-10-27-preview to version 2024-03-22-preview

* Updates readme

* Updates API version in new specs and examples

* merge in 2024-01-01 stable branch additions

* Add PublicNetworkAccess Field under privateAccesses resource (#28110)

* Add new field for privateAccess

* Fix reference

* Fix PublicNetworkAccess definition

* Fix PrettierCheck

* Fix enum name

* Rename enum property

* Convert two operations to be async (#28350)

* Convert two operations to be async

* Fix examples

* Resolve comments

* Change delete async operation status code

* Added Patch Tags Endpoint to Private Link (#28296)

* Added UpdatePrivateAccessTags endpoint

* Addressing points for the PR review, it was about rename the new private link endpoint to PrivateAccesses_Patch, and changned the return code from 200 to 202

* Update the Private Access tags payload

---------

Co-authored-by: Adi Hazeem <[email protected]>

* update readme

* Resolved conflict

* Resolved conflict

* Resolved conflict

* Fix linting error for PUT and DELETE (#28417)

* Fix check error

* move readonly flag

* Added 200 response to PrivateAccess Tags Patch Endpoint (#28465)

* Added 200 response to PrivateAccess Tags example

---------

Co-authored-by: Adi Hazeem <[email protected]>

* add missing LRO header to open api spec

* attempted model validation fix

* fixed prop spelling mistake

* prettier

* remove unused example file

* move common type definition to pick up from latest official typing file

* move common type definition to pick up from latest official typing file (#28870)

Co-authored-by: James Duan <[email protected]>

* fix id format in sample file

* address review comments from Tim (#28991)

Co-authored-by: James Duan <[email protected]>

---------

Co-authored-by: James Duan <[email protected]>
Co-authored-by: RayY-96 <[email protected]>
Co-authored-by: Adi Hazeem <[email protected]>
Co-authored-by: Adi Hazeem <[email protected]>
Co-authored-by: Brent Rusinow (from Dev Box) <[email protected]>
Francisco-Gamino pushed a commit to Francisco-Gamino/azure-rest-api-specs that referenced this pull request Jun 5, 2024
* Adds base for updating Microsoft.Chaos from version preview/2023-10-27-preview to version 2024-03-22-preview

* Updates readme

* Updates API version in new specs and examples

* merge in 2024-01-01 stable branch additions

* Add PublicNetworkAccess Field under privateAccesses resource (Azure#28110)

* Add new field for privateAccess

* Fix reference

* Fix PublicNetworkAccess definition

* Fix PrettierCheck

* Fix enum name

* Rename enum property

* Test my push permission

* Adds base for updating Microsoft.Chaos from version preview/2023-10-27-preview to version 2024-03-22-preview

* Updates readme

* Updates API version in new specs and examples

* merge in 2024-01-01 stable branch additions

* Add PublicNetworkAccess Field under privateAccesses resource (Azure#28110)

* Add new field for privateAccess

* Fix reference

* Fix PublicNetworkAccess definition

* Fix PrettierCheck

* Fix enum name

* Rename enum property

* Convert two operations to be async (Azure#28350)

* Convert two operations to be async

* Fix examples

* Resolve comments

* Change delete async operation status code

* Added Patch Tags Endpoint to Private Link (Azure#28296)

* Added UpdatePrivateAccessTags endpoint

* Addressing points for the PR review, it was about rename the new private link endpoint to PrivateAccesses_Patch, and changned the return code from 200 to 202

* Update the Private Access tags payload

---------

Co-authored-by: Adi Hazeem <[email protected]>

* update readme

* Resolved conflict

* Resolved conflict

* Resolved conflict

* Fix linting error for PUT and DELETE (Azure#28417)

* Fix check error

* move readonly flag

* Added 200 response to PrivateAccess Tags Patch Endpoint (Azure#28465)

* Added 200 response to PrivateAccess Tags example

---------

Co-authored-by: Adi Hazeem <[email protected]>

* add missing LRO header to open api spec

* attempted model validation fix

* fixed prop spelling mistake

* prettier

* remove unused example file

* move common type definition to pick up from latest official typing file

* move common type definition to pick up from latest official typing file (Azure#28870)

Co-authored-by: James Duan <[email protected]>

* fix id format in sample file

* address review comments from Tim (Azure#28991)

Co-authored-by: James Duan <[email protected]>

---------

Co-authored-by: James Duan <[email protected]>
Co-authored-by: RayY-96 <[email protected]>
Co-authored-by: Adi Hazeem <[email protected]>
Co-authored-by: Adi Hazeem <[email protected]>
Co-authored-by: Brent Rusinow (from Dev Box) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants