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

[OpenAI-Assistants] Fixing examples and avocado related CI issues

Open jpalvarezl opened this issue 1 year ago • 4 comments

Related issue

closes #29286

Changes

  • Removed usages of @body and @bodyRoot in the TSP files, in favour of using the spread operator
  • Removed generated swagger files for versions which were not represented in the ServiceApiVersions enum
  • Cleaned up a bit the tsp-config.yaml file
  • Added JSON examples for service versions v2024-02-15-preview and v2024-05-01-preview
  • Added readme.md file to address avocado check issues (the readme contains a suppresion for a bug found in the OAV tool for the CI check related to nullable enums)

jpalvarezl avatar Jun 19 '24 08:06 jpalvarezl

Next Steps to Merge

Next steps that must be taken to merge this PR:
  • ❌ This PR has at least one breaking change (label: BreakingChangeReviewRequired).
    To unblock this PR, follow the process at aka.ms/brch.
  • ❌ The required check named Swagger BreakingChange has failed. To unblock this PR, follow the process at aka.ms/brch.

Swagger Validation Report

️❌BreakingChange: 107 Errors, 0 Warnings failed [Detail]
Compared specs (v0.10.12) new version base version
assistants_generated.json 2024-02-15-preview(a0d8056) 2024-02-15-preview(main)
assistants_generated.json 2024-05-01-preview(a0d8056) 2024-05-01-preview(main)
assistants_generated.json 2023-02-15-preview(a0d8056) 2023-02-15-preview(main)
assistants_generated.json 2023-11-06-beta(a0d8056) 2023-11-06-beta(main)

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

Rule Message
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/assistants' removed or restructured?
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L62:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/assistants/{assistantId}' removed or restructured?
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L193:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/assistants/{assistantId}/files' removed or restructured?
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L267:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/assistants/{assistantId}/files/{fileId}' removed or restructured?
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L422:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/files' removed or restructured?
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L480:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/files/{fileId}' removed or restructured?
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L605:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/threads' removed or restructured?
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L649:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/threads/{threadId}' removed or restructured?
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L673:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/threads/{threadId}/messages' removed or restructured?
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L756:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/threads/{threadId}/messages/{messageId}' removed or restructured?
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L931:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/threads/{threadId}/messages/{messageId}/files' removed or restructured?
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L1007:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/threads/{threadId}/messages/{messageId}/files/{fileId}' removed or restructured?
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L1130:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/threads/{threadId}/runs' removed or restructured?
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L1167:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/threads/{threadId}/runs/{runId}' removed or restructured?
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L1346:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/threads/{threadId}/runs/{runId}/cancel' removed or restructured?
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L1422:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/threads/{threadId}/runs/{runId}/steps' removed or restructured?
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L1452:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/threads/{threadId}/runs/{runId}/steps/{stepId}' removed or restructured?
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L1575:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/threads/{threadId}/runs/{runId}/submit_tool_outputs' removed or restructured?
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L1612:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/threads/runs' removed or restructured?
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L1664:5
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'AssistantCreationOptions' removed or renamed?
New: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L49:3
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L1689:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'AssistantModificationOptions' removed or renamed?
New: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L49:3
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L1689:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'AssistantThreadCreationOptions' removed or renamed?
New: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L49:3
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L1689:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'CodeInterpreterImageOutput' removed or renamed?
New: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L49:3
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L1689:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'CodeInterpreterImageReference' removed or renamed?
New: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L49:3
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L1689:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'CodeInterpreterLogOutput' removed or renamed?
New: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L49:3
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L1689:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'CodeInterpreterToolCall' removed or renamed?
New: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L49:3
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L1689:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'CodeInterpreterToolCallDetails' removed or renamed?
New: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L49:3
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L1689:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'CodeInterpreterToolDefinition' removed or renamed?
New: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L49:3
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L1689:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'CreateAndRunThreadOptions' removed or renamed?
New: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L49:3
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L1689:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'FunctionDefinition' removed or renamed?
New: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L49:3
Old: OpenApiV2/preview/2023-02-15-preview/assistants_generated.json#L1689:3

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

Rule Message
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/assistants' removed or restructured?
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L62:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/assistants/{assistantId}' removed or restructured?
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L193:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/assistants/{assistantId}/files' removed or restructured?
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L267:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/assistants/{assistantId}/files/{fileId}' removed or restructured?
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L422:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/files' removed or restructured?
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L480:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/files/{fileId}' removed or restructured?
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L605:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/threads' removed or restructured?
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L649:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/threads/{threadId}' removed or restructured?
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L673:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/threads/{threadId}/messages' removed or restructured?
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L756:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/threads/{threadId}/messages/{messageId}' removed or restructured?
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L931:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/threads/{threadId}/messages/{messageId}/files' removed or restructured?
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L1007:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/threads/{threadId}/messages/{messageId}/files/{fileId}' removed or restructured?
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L1130:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/threads/{threadId}/runs' removed or restructured?
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L1167:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/threads/{threadId}/runs/{runId}' removed or restructured?
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L1346:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/threads/{threadId}/runs/{runId}/cancel' removed or restructured?
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L1422:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/threads/{threadId}/runs/{runId}/steps' removed or restructured?
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L1452:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/threads/{threadId}/runs/{runId}/steps/{stepId}' removed or restructured?
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L1575:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/threads/{threadId}/runs/{runId}/submit_tool_outputs' removed or restructured?
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L1612:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/threads/runs' removed or restructured?
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L1664:5
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'AssistantCreationOptions' removed or renamed?
New: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L49:3
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L1689:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'AssistantModificationOptions' removed or renamed?
New: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L49:3
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L1689:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'AssistantThreadCreationOptions' removed or renamed?
New: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L49:3
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L1689:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'CodeInterpreterImageOutput' removed or renamed?
New: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L49:3
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L1689:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'CodeInterpreterImageReference' removed or renamed?
New: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L49:3
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L1689:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'CodeInterpreterLogOutput' removed or renamed?
New: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L49:3
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L1689:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'CodeInterpreterToolCall' removed or renamed?
New: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L49:3
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L1689:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'CodeInterpreterToolCallDetails' removed or renamed?
New: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L49:3
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L1689:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'CodeInterpreterToolDefinition' removed or renamed?
New: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L49:3
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L1689:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'CreateAndRunThreadOptions' removed or renamed?
New: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L49:3
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L1689:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'FunctionDefinition' removed or renamed?
New: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L49:3
Old: OpenApiV2/stable/2023-11-06-beta/assistants_generated.json#L1689:3
️️✔️Breaking Change(Cross-Version) succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️❌LintDiff: 58 Errors, 340 Warnings failed [Detail]
Compared specs (v2.2.2) new version base version
release_2024_02_15_preview_autogen release_2024_02_15_preview_autogen(a0d8056) default(main)
release_2024_05_01_preview_autogen release_2024_05_01_preview_autogen(a0d8056) default(main)

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

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

Rule Message Related RPC [For API reviewers]
AvoidAnonymousTypes Inline/anonymous models must not be used, instead define a schema with a model name in the 'definitions' section and refer to it. This allows operations to share the models.
Location: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L122
AvoidAnonymousTypes Inline/anonymous models must not be used, instead define a schema with a model name in the 'definitions' section and refer to it. This allows operations to share the models.
Location: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L697
AvoidAnonymousParameter Inline/anonymous models must not be used, instead define a schema with a model name in the 'definitions' section and refer to it. This allows operations to share the models.
Location: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L842
AvoidAnonymousTypes Inline/anonymous models must not be used, instead define a schema with a model name in the 'definitions' section and refer to it. This allows operations to share the models.
Location: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L939
AvoidAnonymousParameter Inline/anonymous models must not be used, instead define a schema with a model name in the 'definitions' section and refer to it. This allows operations to share the models.
Location: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L1083
AvoidAnonymousTypes Inline/anonymous models must not be used, instead define a schema with a model name in the 'definitions' section and refer to it. This allows operations to share the models.
Location: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L1222
AvoidAnonymousParameter Inline/anonymous models must not be used, instead define a schema with a model name in the 'definitions' section and refer to it. This allows operations to share the models.
Location: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L1341
IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
Location: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L1430
IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
Location: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L1577
IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
Location: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L2220
IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
Location: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L2474
IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
Location: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L2480
IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
Location: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L2487
IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
Location: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L2494
IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
Location: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L2501
IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
Location: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L3007
IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
Location: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L3033
IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
Location: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L3040
IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
Location: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L3193
IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
Location: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L3199
IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
Location: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L3206
IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
Location: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L3213
IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
Location: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L3220
IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
Location: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L3227
AvoidAnonymousTypes Inline/anonymous models must not be used, instead define a schema with a model name in the 'definitions' section and refer to it. This allows operations to share the models.
Location: OpenApiV2/preview/2024-05-01-preview/assistants_generated.json#L122
AvoidAnonymousTypes Inline/anonymous models must not be used, instead define a schema with a model name in the 'definitions' section and refer to it. This allows operations to share the models.
Location: OpenApiV2/preview/2024-05-01-preview/assistants_generated.json#L740
AvoidAnonymousParameter Inline/anonymous models must not be used, instead define a schema with a model name in the 'definitions' section and refer to it. This allows operations to share the models.
Location: OpenApiV2/preview/2024-05-01-preview/assistants_generated.json#L885
AvoidAnonymousTypes Inline/anonymous models must not be used, instead define a schema with a model name in the 'definitions' section and refer to it. This allows operations to share the models.
Location: OpenApiV2/preview/2024-05-01-preview/assistants_generated.json#L982
AvoidAnonymousParameter Inline/anonymous models must not be used, instead define a schema with a model name in the 'definitions' section and refer to it. This allows operations to share the models.
Location: OpenApiV2/preview/2024-05-01-preview/assistants_generated.json#L1126
AvoidAnonymousTypes Inline/anonymous models must not be used, instead define a schema with a model name in the 'definitions' section and refer to it. This allows operations to share the models.
Location: OpenApiV2/preview/2024-05-01-preview/assistants_generated.json#L1265
️️✔️Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️SwaggerAPIView succeeded [Detail] [Expand]
️❌TypeSpecAPIView: 0 Errors, 1 Warnings failed [Detail]
Rule Message
:warning: Failed to generate TypeSpec APIView. Please check the detail log and make sure TypeSpec compiler version is the latest. "How to fix":"Check the detailed log and verify if the TypeSpec emitter is able to create API review file for the changes in PR."
️️✔️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: 1 Errors, 0 Warnings failed [Detail]
Rule Message
RestBuild error "logUrl":"https://apidrop.visualstudio.com/Content%20CI/_build/results?buildId=438119&view=logs&j=fd490c07-0b22-5182-fac9-6d67fe1e939b",
"detail":"Run.ps1 failed with exit code 1 "
️❌ azure-sdk-for-net-track2 failed [Detail]
    For more instructions, please refer to the FAQ .
  • Failed in generating from d251c102090f9eb3f92ba878928746176a3e5c11. SDK Automation 14.0.0
    command	pwsh ./eng/scripts/Automation-Sdk-Init.ps1 ../azure-sdk-for-net_tmp/initInput.json ../azure-sdk-for-net_tmp/initOutput.json
    warn		Warning: azure-sdk-for-net-track2 cannot be found in specification/ai/data-plane/OpenAI.Assistants/readme.md. This SDK will be skipped from SDK generation. Please add the right config to the readme file according to this guidance https://github.com/Azure/azure-rest-api-specs/blob/main/documentation/code-gen/configure-go-sdk.md#swagger-to-sdk.
    command	pwsh ./eng/scripts/Invoke-GenerateAndBuildV2.ps1 ../azure-sdk-for-net_tmp/generateInput.json ../azure-sdk-for-net_tmp/generateOutput.json
    cmderr	[Invoke-GenerateAndBuildV2.ps1] npm notice
    cmderr	[Invoke-GenerateAndBuildV2.ps1] npm notice New minor version of npm available! 10.7.0 -> 10.8.1
    cmderr	[Invoke-GenerateAndBuildV2.ps1] npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.1
    cmderr	[Invoke-GenerateAndBuildV2.ps1] npm notice To update run: npm install -g [email protected]
    cmderr	[Invoke-GenerateAndBuildV2.ps1] npm notice
    cmderr	[Invoke-GenerateAndBuildV2.ps1] GeneratePackage: /mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/Invoke-GenerateAndBuildV2.ps1:144
    cmderr	[Invoke-GenerateAndBuildV2.ps1] Line |
    cmderr	[Invoke-GenerateAndBuildV2.ps1]  144 |              GeneratePackage `
    cmderr	[Invoke-GenerateAndBuildV2.ps1]      |              ~~~~~~~~~~~~~~~~~
    cmderr	[Invoke-GenerateAndBuildV2.ps1]      | Failed to build project. exit code: False
  • Azure.AI.OpenAI.Assistants [Preview SDK Changes]
    info	[Changelog]
️❌ azure-sdk-for-java failed [Detail]
    For more instructions, please refer to the FAQ .
  • Failed in generating from d251c102090f9eb3f92ba878928746176a3e5c11. 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
    warn		Warning: azure-sdk-for-java cannot be found in specification/ai/data-plane/OpenAI.Assistants/readme.md. This SDK will be skipped from SDK generation. Please add the right config to the readme file according to this guidance https://github.com/Azure/azure-rest-api-specs/blob/main/documentation/code-gen/configure-go-sdk.md#swagger-to-sdk.
    command	./eng/mgmt/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
    command	./eng/mgmt/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
    cmderr	[Java-Sdk-Automation] [COMPILE] Maven build fail.
    cmderr	[Java-Sdk-Automation] [COMPILE] Maven build fail.
    info	[Changelog]
    command	./eng/mgmt/automation/install_instruction.py ../azure-sdk-for-java_tmp/installInstructionInput.json ../azure-sdk-for-java_tmp/installInstructionOutput.json
  • azure-ai-openai-assistants [Preview SDK Changes]
    info	[Changelog]
️❌ azure-sdk-for-js failed [Detail]
    For more instructions, please refer to the FAQ .
  • Failed in generating from d251c102090f9eb3f92ba878928746176a3e5c11. 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	Warning: File azure-sdk-for-js_tmp/initOutput.json not found to read. Please re-run the pipeline if the error is transitient error or report this issue through https://aka.ms/azsdk/support/specreview-channel.
    warn		Warning: azure-sdk-for-js cannot be found in specification/ai/data-plane/OpenAI.Assistants/readme.md. This SDK will be skipped from SDK generation. Please add the right config to the readme file according to this guidance https://github.com/Azure/azure-rest-api-specs/blob/main/documentation/code-gen/configure-go-sdk.md#swagger-to-sdk.
    command	sh .scripts/automation_generate.sh ../azure-sdk-for-js_tmp/generateInput.json ../azure-sdk-for-js_tmp/generateOutput.json
    command	sh .scripts/automation_generate.sh ../azure-sdk-for-js_tmp/generateInput.json ../azure-sdk-for-js_tmp/generateOutput.json
    cmderr	[automation_generate.sh] [ERROR] Error:
    cmderr	[automation_generate.sh] [ERROR] Error:
    cmderr	[automation_generate.sh] [ERROR] An error occurred while run build for typespec project: "specification/ai/OpenAI.Assistants":
    cmderr	[automation_generate.sh] [ERROR] An error occurred while run build for typespec project: "specification/ai/OpenAI.Assistants":
    cmderr	[automation_generate.sh] [ERROR] Err: Error: Command failed: rush build -t @azure/openai
    cmderr	[automation_generate.sh] [ERROR] Err: Error: Command failed: rush build -t @azure/openai
    cmderr	[automation_generate.sh] [ERROR] Stderr: "null"
    cmderr	[automation_generate.sh] [ERROR] Stderr: "null"
    cmderr	[automation_generate.sh] [ERROR] Stdout: "null"
    cmderr	[automation_generate.sh] [ERROR] Stdout: "null"
    cmderr	[automation_generate.sh] [ERROR] ErrorStack: "Error: Command failed: rush build -t @azure/openai
    cmderr	[automation_generate.sh] [ERROR] ErrorStack: "Error: Command failed: rush build -t @azure/openai
    cmderr	[automation_generate.sh] [ERROR]     at checkExecSyncError (node:child_process:885:11)
    cmderr	[automation_generate.sh] [ERROR]     at checkExecSyncError (node:child_process:885:11)
    cmderr	[automation_generate.sh] [ERROR]     at execSync (node:child_process:957:15)
    cmderr	[automation_generate.sh] [ERROR]     at execSync (node:child_process:957:15)
    cmderr	[automation_generate.sh] [ERROR]     at /home/cloudtest/.nvm/versions/node/v18.15.0/lib/node_modules/@azure-tools/js-sdk-release-tools/dist/llc/generateRLCInPipeline/generateRLCInPipeline.js:209:42
    cmderr	[automation_generate.sh] [ERROR]     at /home/cloudtest/.nvm/versions/node/v18.15.0/lib/node_modules/@azure-tools/js-sdk-release-tools/dist/llc/generateRLCInPipeline/generateRLCInPipeline.js:209:42
    cmderr	[automation_generate.sh] [ERROR]     at Generator.next (<anonymous>)
    cmderr	[automation_generate.sh] [ERROR]     at Generator.next (<anonymous>)
    cmderr	[automation_generate.sh] [ERROR]     at fulfilled (/home/cloudtest/.nvm/versions/node/v18.15.0/lib/node_modules/@azure-tools/js-sdk-release-tools/node_modules/tslib/tslib.js:112:62)
    cmderr	[automation_generate.sh] [ERROR]     at fulfilled (/home/cloudtest/.nvm/versions/node/v18.15.0/lib/node_modules/@azure-tools/js-sdk-release-tools/node_modules/tslib/tslib.js:112:62)
    cmderr	[automation_generate.sh] [ERROR]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
    cmderr	[automation_generate.sh] [ERROR]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
    info	[Changelog]
    error	breakingChangeTracking is enabled, but version or changelogItem is not found in output.
  • @azure/openai [Preview SDK Changes]
    info	[Changelog]
    error	breakingChangeTracking is enabled, but version or changelogItem is not found in output.
Posted by Swagger Pipeline | How to fix these errors?

Generated ApiView

Language Package Name ApiView Link
Swagger OpenAI.Assistants https://apiview.dev/Assemblies/Review/837caf5c571a45d590bc4a2da0d1a103?revisionId=78e3e685029045689490159e91d85d8e