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

[MachineLearningServices]Add missing kind property in the workspace #26362

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

ZhidaLiu
Copy link
Member

ARM (Control Plane) API Specification Update Pull Request

PR review workflow diagram

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

diagram

[1] ARM review queue (for merge queues, see [4])
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] https://aka.ms/azsdk/support/specreview-channel
[3] List of SDK breaking changes approvers in pinned Teams announcement
[4] 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!

  • New API version. (Such PR should have been generated with 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:

Breaking changes review (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.

ARM API changes review (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.

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

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Oct 25, 2023

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

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Oct 25, 2023

Swagger Validation Report

️❌BreakingChange: 2 Errors, 0 Warnings failed [Detail]
compared swaggers (via Oad v0.10.4)] new version base version
machineLearningServices.json 2023-10-01(3efc7dc) 2023-10-01(main)
Rule Message
1041 - AddedPropertyInResponse The new version has a new property 'kind' in response that was not found in the old version.
New: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L2366:7
Old: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L2366:7
1045 - AddedOptionalProperty The new version has a new optional property 'kind' that was not found in the old version.
New: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L2366:7
Old: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L2366:7
️️✔️Breaking Change(Cross-Version) succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️⚠️LintDiff: 0 Warnings warning [Detail]
compared tags (via openapi-validator v2.1.6) new version base version
package-2023-10 package-2023-10(3efc7dc) package-2023-10(main)

The following errors/warnings exist before current PR submission:

Only 30 items are listed, please refer to log for more details.

Rule Message
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.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L114
PutResponseCodes Synchronous and long-running PUT operations must have responses with 200, 201 and default return codes. They also must not have other response codes.
Location: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L114
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.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L180
LroLocationHeader A 202 response should include an Location response header.
Location: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L213
PostResponseCodes 200 return code does not have a schema specified. LRO POST must have a 200 return code if only if the final response is intended to have a schema, if not the 200 return code must not be specified.
Location: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L458
GetCollectionOnlyHasValueAndNextLink Get endpoints for collections of resources must only have the value and nextLink properties in their model.
Location: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L586
ResourceNameRestriction The resource name parameter 'computeName' should be defined with a 'pattern' restriction.
Location: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L795
PatchResponseCodes Long-running PATCH operations must have responses with 200, 202 and default return codes. They also must not have other response codes.
Location: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L933
PatchIdentityProperty The patch operation body parameter schema should contain property 'identity'.
Location: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L962
ConsistentPatchProperties The property 'properties.properties' in the request body either not apppear in the resource model or has the wrong level.
Location: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L966
LroPatch202 The async patch operation should return 202.
Location: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L972
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.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L987
ResourceNameRestriction The resource name parameter 'computeName' should be defined with a 'pattern' restriction.
Location: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L1049
CollectionObjectPropertiesNaming Collection object returned by list operation 'Compute_ListNodes' with 'x-ms-pageable' extension, has no property named 'value'.
Location: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L1076
ResourceNameRestriction The resource name parameter 'computeName' should be defined with a 'pattern' restriction.
Location: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L1140
ResourceNameRestriction The resource name parameter 'computeName' should be defined with a 'pattern' restriction.
Location: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L1186
LroLocationHeader A 202 response should include an Location response header.
Location: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L1218
ResourceNameRestriction The resource name parameter 'computeName' should be defined with a 'pattern' restriction.
Location: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L1230
LroLocationHeader A 202 response should include an Location response header.
Location: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L1262
ResourceNameRestriction The resource name parameter 'computeName' should be defined with a 'pattern' restriction.
Location: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L1274
LroLocationHeader A 202 response should include an Location response header.
Location: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L1306
GetCollectionOnlyHasValueAndNextLink Get endpoints for collections of resources must only have the value and nextLink properties in their model.
Location: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L1347
ResourceNameRestriction The resource name parameter 'privateEndpointConnectionName' should be defined with a 'pattern' restriction.
Location: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L1363
PutResponseCodes Synchronous and long-running PUT operations must have responses with 200, 201 and default return codes. They also must not have other response codes.
Location: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L1407
GetCollectionOnlyHasValueAndNextLink Get endpoints for collections of resources must only have the value and nextLink properties in their model.
Location: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L1532
PutResponseCodes Synchronous and long-running PUT operations must have responses with 200, 201 and default return codes. They also must not have other response codes.
Location: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L1692
GetCollectionOnlyHasValueAndNextLink Get endpoints for collections of resources must only have the value and nextLink properties in their model.
Location: Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L1905
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.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L1972
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.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L2074
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.MachineLearningServices/stable/2023-10-01/machineLearningServices.json#L2074
️️✔️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.
️️✔️PrettierCheck succeeded [Detail] [Expand]
Validation passes for PrettierCheck.
️️✔️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]
Posted by Swagger Pipeline | How to fix these errors?

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Oct 25, 2023

Swagger Generation Artifacts

️️✔️ApiDocPreview succeeded [Detail] [Expand]

Only 0 items are rendered, please refer to log for more details.

️❌SDK Breaking Change Tracking failed [Detail]

Only 0 items are rendered, please refer to log for more details.

️❌ azure-sdk-for-net-track2 failed [Detail]

Only 0 items are rendered, please refer to log for more details.

️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]

Only 0 items are rendered, please refer to log for more details.

️⚠️ azure-sdk-for-python-track2 warning [Detail]

Only 0 items are rendered, please refer to log for more details.

️⚠️ azure-sdk-for-java warning [Detail]

Only 0 items are rendered, please refer to log for more details.

️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]

Only 0 items are rendered, please refer to log for more details.

️⚠️ azure-resource-manager-schemas warning [Detail]

Only 0 items are rendered, please refer to log for more details.

️❌ azure-powershell failed [Detail]

Only 0 items are rendered, please refer to log for more details.

Posted by Swagger Pipeline | How to fix these errors?

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Oct 25, 2023

Generated ApiView

Language Package Name ApiView Link
Go sdk/resourcemanager/machinelearning/armmachinelearning Create ApiView failed. Please ask PR assignee for help
Java azure-resourcemanager-machinelearning https://apiview.dev/Assemblies/Review/2b0d13375ba8429c941895a1a8855838
JavaScript @azure/arm-machinelearning https://apiview.dev/Assemblies/Review/7145608e3bbd4f30adbfc5d0e885a1bd

@ZhidaLiu ZhidaLiu marked this pull request as ready for review October 25, 2023 00:21
@AzureRestAPISpecReview AzureRestAPISpecReview added ARMChangesRequested <valid label in PR review process>add this label when require changes after ARM review ARMReview NewApiVersionRequired ReadyForApiTest <valid label in PR review process>add this label when swagger and service APIs are ready for test resource-manager labels Oct 25, 2023
@openapi-workflow-bot
Copy link

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.

@ms-henglu ms-henglu added the ARMChangesRequested <valid label in PR review process>add this label when require changes after ARM review label Oct 26, 2023
@openapi-workflow-bot openapi-workflow-bot bot removed the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Oct 26, 2023
@ZhidaLiu ZhidaLiu removed the ARMChangesRequested <valid label in PR review process>add this label when require changes after ARM review label Oct 26, 2023
@openapi-workflow-bot openapi-workflow-bot bot added the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Oct 26, 2023
@ms-henglu ms-henglu added the ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review label Oct 26, 2023
@openapi-workflow-bot openapi-workflow-bot bot removed the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Oct 26, 2023
@ms-henglu
Copy link
Member

Please get a breaking changes approval from Azure Breaking Changes Reviewers [email protected].

@kazrael2119 kazrael2119 added the BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required label Oct 27, 2023
@JeffreyRichter JeffreyRichter added the Approved-BreakingChange DO NOT USE! OBSOLETE label. See https://github.com/Azure/azure-sdk-tools/issues/6374 label Oct 30, 2023
@Alancere Alancere added the Approved-SdkBreakingChange-Go Approve the breaking change tracking for azure-sdk-for-go label Oct 31, 2023
@ZhidaLiu
Copy link
Member Author

ZhidaLiu commented Nov 1, 2023

/pr RequestMerge

@rkmanda rkmanda merged commit 893834a into Azure:main Nov 1, 2023
28 of 31 checks passed
Copy link

Swagger pipeline restarted successfully, please wait for status update in this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved-BreakingChange DO NOT USE! OBSOLETE label. See https://github.com/Azure/azure-sdk-tools/issues/6374 Approved-SdkBreakingChange-Go Approve the breaking change tracking for azure-sdk-for-go Approved-SdkBreakingChange-JavaScript Approved-SdkBreakingChange-Python ARMReview ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required CI-BreakingChange-Go CI-BreakingChange-JavaScript NewApiVersionRequired ReadyForApiTest <valid label in PR review process>add this label when swagger and service APIs are ready for test resource-manager
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants