azure-rest-api-specs icon indicating copy to clipboard operation
azure-rest-api-specs copied to clipboard

Init Data Plane Assets Azure-AI

Open kseager opened this issue 1 year ago • 5 comments

Data Plane API - Pull Request

API Info: The Basics

Most of the information about your service should be captured in the issue that serves as your API Spec engagement record.

  • Link to API Spec engagement record issue:

Is this review for (select one):

  • [ ] a private preview
  • [x] a public preview
  • [ ] GA release

Change Scope

This section will help us focus on the specific parts of your API that are new or have been modified.
Please share a link to the design document for the new APIs, a link to the previous API Spec document (if applicable), and the root paths that have been updated.

  • Design Document:
  • Previous API Spec Doc:
  • Updated paths:

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.

❔Got questions? Need additional info?? We are here to help!

Contact us!

The Azure API Review Board is dedicated to helping you create amazing APIs. You can read about our mission and learn more about our process on our wiki.

Click here for links to tools, specs, guidelines & other good stuff

Tooling

Guidelines & Specifications

Helpful Links

Checks stuck in `queued` state? 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.

kseager avatar Jan 05 '24 21:01 kseager

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) succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️⚠️LintDiff: 9 Warnings warning [Detail]
compared tags (via openapi-validator v2.2.0) new version base version
package-2024-04-01-preview package-2024-04-01-preview(06196b7) default(main)

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

Rule Message Related RPC [For API reviewers]
:warning: SecurityDefinitionDescription Security definition should have a description.
Location: Microsoft.MachineLearningServices/preview/2024-04-01-preview/azure-ai-assets.json#L63
:warning: PathParameterSchema Path parameter should specify a maximum length (maxLength).
Location: Microsoft.MachineLearningServices/preview/2024-04-01-preview/azure-ai-assets.json#L130
:warning: PathParameterSchema Path parameter should specify a maximum length (maxLength).
Location: Microsoft.MachineLearningServices/preview/2024-04-01-preview/azure-ai-assets.json#L174
:warning: PathParameterSchema Path parameter should specify a maximum length (maxLength).
Location: Microsoft.MachineLearningServices/preview/2024-04-01-preview/azure-ai-assets.json#L218
:warning: ParameterDefaultNotAllowed A required parameter should not specify a default value.
Location: Microsoft.MachineLearningServices/preview/2024-04-01-preview/azure-ai-assets.json#L232
:warning: PathParameterSchema Path parameter should specify a maximum length (maxLength).
Location: Microsoft.MachineLearningServices/preview/2024-04-01-preview/azure-ai-assets.json#L296
:warning: PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Microsoft.MachineLearningServices/preview/2024-04-01-preview/azure-ai-assets.json#L304
:warning: PathParameterSchema Path parameter should specify a maximum length (maxLength).
Location: Microsoft.MachineLearningServices/preview/2024-04-01-preview/azure-ai-assets.json#L345
:warning: PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Microsoft.MachineLearningServices/preview/2024-04-01-preview/azure-ai-assets.json#L353
️️✔️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]
Posted by Swagger Pipeline | How to fix these errors?

Swagger Generation Artifacts

️️✔️ApiDocPreview succeeded [Detail] [Expand]
 Please click here to preview with your @microsoft account. 
️️✔️SDK Breaking Change Tracking succeeded [Detail] [Expand]

Breaking Changes Tracking

️❌ azure-sdk-for-python failed [Detail]
  • Code Generator Failed [Logs] Generate from 161144f393d0b51019f1bf73c396eecf7e809e8a. 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.
    warn		specification/machinelearningservices/data-plane/readme.md skipped due to azure-sdk-for-python not found in swagger-to-sdk
    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]/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
Posted by Swagger Pipeline | How to fix these errors?

Generated ApiView

Language Package Name ApiView Link
TypeSpec AzureAI.Assets https://apiview.dev/Assemblies/Review/2e4c2542e85c42e4805177b00db683de?revisionId=93dbf82ede884731a40c1a2f1a359319

Hi @kseager! 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.

Here are the reasons why I am not using the top-level operations

  1. Although it ended up being removed from this PR, most asset types support registries/{RegistryName}/indexes/{name}... as well as workspace/{WorkspaceName}/indexes/{name}... which is not supported at this time
  2. In order to correctly represent the resource nesting with workspaces, I would have to do a ref definition, but I'm referencing something in control plane...so I opted to remove the need to define the workspace resource at all
  3. Additionally I was running into tsp compile errors in the core library and the only way I could fix them was to define those types myself to apply the right fix

for example: @pagedResult model PagedIndex { @doc("The list of Indexes.") @extension("x-ms-identifiers", []) //this fixed a compile error @items value: Index[];

kseager avatar Feb 29 '24 17:02 kseager

/azp run

kseager avatar Mar 06 '24 20:03 kseager

Azure Pipelines successfully started running 4 pipeline(s).

azure-pipelines[bot] avatar Mar 06 '24 20:03 azure-pipelines[bot]

/pr RequestMerge

kseager avatar Mar 07 '24 18:03 kseager