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

[ai] React to 'Allow encode on a union' #28238

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

mikeharder
Copy link
Member

@mikeharder mikeharder requested a review from a team as a code owner March 13, 2024 00:00
@mikeharder mikeharder requested review from vicancy and tg-msft and removed request for a team March 13, 2024 00:00
Copy link

openapi-pipeline-app bot commented Mar 13, 2024

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

Copy link

openapi-pipeline-app bot commented Mar 13, 2024

Swagger Validation Report

️❌BreakingChange: 1 Errors, 0 Warnings failed [Detail]
Rule Message
Runtime Exception "new":"https://github.com/Azure/azure-rest-api-specs/blob/82d2b1fcbfa0f09c947d064cf0a5a558839f0381/specification/ai/data-plane/OpenAI.Assistants/OpenApiV2/preview/2024-02-15-preview/assistants_generated.json",
"old":"https://github.com/Azure/azure-rest-api-specs/blob/main/specification/ai/data-plane/OpenAI.Assistants/OpenApiV2/preview/2024-02-15-preview/assistants_generated.json",
"details":"Breaking change detector (OAD) invoked AutoRest. AutoRest threw a runtime error. First 6 lines of stack trace follow,
indexed. First line should contain AutoRest command line invocation details. Second line should contain the main message reported by AutoRest.
====================
1: Command failed: node "/mnt/vss/_work/_tasks/AzureApiValidation_5654d05d-82c1-48da-ad8f-161b817f6d41/0.0.90/common/temp/node_modules/.pnpm/@Azure+oad@0.10.5/node_modules/autorest/dist/app.js" --v2 --input-file=/mnt/vss/_work/1/same-version-c93b354fd9c14905bb574a8834c4d69b/specification/ai/data-plane/OpenAI.Assistants/OpenApiV2/preview/2024-02-15-preview/assistants_generated.json --output-artifact=swagger-document.json --output-artifact=swagger-document.map --output-file=old --output-folder=/tmp
--------------------
2: ERROR: Schema violation: Missing required property: name
--------------------
3: - file:///mnt/vss/work/1/same-version-c93b354fd9c14905bb574a8834c4d69b/specification/ai/data-plane/OpenAI.Assistants/OpenApiV2/preview/2024-02-15-preview/assistantsgenerated.json:3345:10 ($.definitions.ThreadRun.properties.object["x-ms-enum"])
--------------------
4: ERROR: Schema violation: Missing required property: name
--------------------
5: - file:///mnt/vss/work/1/same-version-c93b354fd9c14905bb574a8834c4d69b/specification/ai/data-plane/OpenAI.Assistants/OpenApiV2/preview/2024-02-15-preview/assistantsgenerated.json:3266:10 ($.definitions.ThreadMessage.properties.object["x-ms-enum"])
--------------------
6: ERROR: Schema violation: Missing required property: name
--------------------"
️️✔️Breaking Change(Cross-Version) succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️LintDiff succeeded [Detail] [Expand]
Validation passes for LintDiff.
️❌Avocado: 2 Errors, 0 Warnings failed [Detail]
Rule Message
MISSING_README Can not find readme.md in the folder. If no readme.md file, it will block SDK generation.
folder: OpenAI.Assistants/OpenApiV2/preview/2024-02-15-preview
MISSING_README Can not find readme.md in the folder. If no readme.md file, it will block SDK generation.
folder: data-plane/OpenAI.Assistants/OpenApiV3/2024-02-15-preview
️❌SwaggerAPIView: 1 Errors, 0 Warnings failed [Detail]
Rule Message
Failed to generate swagger APIView. The readme file format is invalid and the tag is not defined. Use the provided readme template for guidance readme template. For more details, please check the detail log. "How to fix":"Check the readme file and make sure the readme file format is valid and the tag is defined. Use the provided readme template"
️️✔️TypeSpecAPIView succeeded [Detail] [Expand]
️❌ModelValidation: 33 Errors, 0 Warnings failed [Detail]

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

Rule Message
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in ListAssistants.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L63:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in CreateAssistant.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L170:15
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in GetAssistant.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L194:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in UpdateAssistant.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L215:15
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in DeleteAssistant.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L240:17
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in ListAssistantFiles.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L263:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in CreateAssistantFile.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L377:15
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in GetAssistantFile.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L418:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in DeleteAssistantFile.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L446:17
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in ListFiles.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L476:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in UploadFile.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L529:15
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in GetFile.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L601:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in DeleteFile.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L622:17
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in GetFileContent.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L645:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in CreateThread.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L669:15
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in GetThread.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L693:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in UpdateThread.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L714:15
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in DeleteThread.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L753:17
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in ListMessages.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L776:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in CreateMessage.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L890:15
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in GetMessage.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L951:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in UpdateMessage.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L979:15
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in ListMessageFiles.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L1027:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in GetMessageFile.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L1150:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in ListRuns.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L1187:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in CreateRun.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L1301:15
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in GetRun.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L1333:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in UpdateRun.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L1361:15
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in CancelRun.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L1409:15
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in ListRunSteps.
Url: OpenApiV2/preview/2024-02-15-preview/assistants_generated.json#L1439:14
️️✔️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 13, 2024

Swagger Generation Artifacts

️❌ApiDocPreview: 1 Errors, 0 Warnings failed [Detail]
Rule Message
RestBuild error "logUrl":"https://apidrop.visualstudio.com/Content%20CI/_build/results?buildId=417918&view=logs&j=fd490c07-0b22-5182-fac9-6d67fe1e939b",
"detail":"Run.ps1 failed with exit code 1 "
️️✔️SDK Breaking Change Tracking succeeded [Detail] [Expand]

Breaking Changes Tracking

Posted by Swagger Pipeline | How to fix these errors?

Copy link

PR validation pipeline started successfully. If there is ApiView generated, it will be updated in this comment.

@mikeharder mikeharder self-assigned this Mar 13, 2024
@mikeharder mikeharder merged commit a7f8fb6 into Azure:typespec-next Mar 13, 2024
25 of 30 checks passed
@mikeharder mikeharder deleted the tspnext-ai-encode branch March 13, 2024 00:27
markcowl pushed a commit to markcowl/azure-rest-api-specs that referenced this pull request Mar 15, 2024
markcowl pushed a commit to markcowl/azure-rest-api-specs that referenced this pull request Mar 15, 2024
markcowl pushed a commit to markcowl/azure-rest-api-specs that referenced this pull request Mar 15, 2024
markcowl pushed a commit to markcowl/azure-rest-api-specs that referenced this pull request Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data-plane TypeSpec Authored with TypeSpec
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants