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

Cleaning build for TypeSpec data plane services #23940

Closed
wants to merge 10 commits into from
Closed

Cleaning build for TypeSpec data plane services #23940

wants to merge 10 commits into from

Conversation

markcowl
Copy link
Member

@markcowl markcowl commented May 11, 2023

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
  • 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:

❔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

@markcowl markcowl requested a review from yangyuan as a code owner May 11, 2023 22:01
@openapi-workflow-bot
Copy link

Hi, @markcowl Thanks for your PR. I am workflow bot for review process. Here are some small tips.

  • Please ensure to do self-check against checklists in first PR comment.
  • PR assignee is the person auto-assigned and responsible for your current PR reviewing and merging.
  • For specs comparison cross API versions, Use API Specs Comparison Report Generator
  • If there is CI failure(s), to fix CI error(s) is mandatory for PR merging; or you need to provide justification in PR comment for explanation. How to fix?

  • Any feedback about review process or workflow bot, pls contact swagger and tools team. vscswagger@microsoft.com

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented May 11, 2023

    Swagger Validation Report

    ️❌BreakingChange: 1 Errors, 0 Warnings failed [Detail]
    compared swaggers (via Oad v0.10.4)] new version base version
    contentsafety.json 2023-04-30-preview(6996d77) 2023-04-30-preview(main)
    Rule Message
    Runtime Exception "new":"https://github.com/Azure/azure-rest-api-specs/blob/6996d77898f8b15dcdd5598837f3da347e0a79df/specification/cognitiveservices/OpenAI.Authoring/cadl-output/2022-06-01-preview/openapi.json",
    "old":"https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/OpenAI.Authoring/cadl-output/2022-06-01-preview/openapi.json",
    "details":"Command failed: node "/mnt/vss/_work/_tasks/AzureApiValidation_5654d05d-82c1-48da-ad8f-161b817f6d41/0.0.52/common/temp/node_modules/.pnpm/@Azure+oad@0.10.4/node_modules/autorest/dist/app.js" --v2 --input-file=/mnt/vss/_work/1/same-version-c93b354fd9c14905bb574a8834c4d69b/specification/cognitiveservices/OpenAI.Authoring/cadl-output/2022-06-01-preview/openapi.json --output-artifact=swagger-document.json --output-artifact=swagger-document.map --output-file=old --output-folder=/tmp\nERROR: Schema violation: Missing required property: name\n - file:///mnt/vss/_work/1/same-version-c93b354fd9c14905bb574a8834c4d69b/specification/cognitiveservices/OpenAI.Authoring/cadl-output/2022-06-01-preview/openapi.json:1744:10 ($.definitions.ModelList.properties.object["x-ms-enum"])\nERROR: Schema violation: Missing required property: name\n - file:///mnt/vss/_work/1/same-version-c93b354fd9c14905bb574a8834c4d69b/specification/cognitiveservices/OpenAI.Authoring/cadl-output/2022-06-01-preview/openapi.json:1541:10 ($.definitions.F"
    ️️✔️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.1) new version base version
    package-2023-04-30-preview package-2023-04-30-preview(6996d77) package-2023-04-30-preview(main)

    The following errors/warnings exist before current PR submission:

    Rule Message
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'TextBlocklists' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L97
    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: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L108
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'TextBlocklists' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L159
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'TextBlocklists' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L203
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'TextBlocklists' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L265
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'TextBlocklists' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L411
    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: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L440
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'TextBlocklists' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L491
    ⚠️ SecurityDefinitionDescription Security definition should have a description.
    Location: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L41
    ⚠️ SchemaTypeAndFormat Schema with type: string has unrecognized format: uri
    Location: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L63
    ⚠️ SchemaTypeAndFormat Schema with type: string has unrecognized format: uri
    Location: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L122
    ⚠️ PatchInOperationName 'PATCH' operation 'TextBlocklists_CreateOrUpdateTextBlocklist' should use method name 'Update'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L203
    ⚠️ ListInOperationName Since operation response has model definition in array type, it should be of the form '_list'.
    Location: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L307
    ⚠️ PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
    Location: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L307
    ⚠️ ParameterDescription Parameter should have a description.
    Location: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L324
    ⚠️ RequestBodyOptional The body parameter is not marked as required.
    Location: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L324
    ⚠️ ParameterDescription Parameter should have a description.
    Location: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L377
    ⚠️ RequestBodyOptional The body parameter is not marked as required.
    Location: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L377
    ⚠️ SchemaTypeAndFormat Schema with type: string has unrecognized format: uri
    Location: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L454
    ⚠️ PathParameterSchema Path parameter should specify characters allowed (pattern).
    Location: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L507
    ⚠️ EnumInsteadOfBoolean Booleans properties are not descriptive in all cases and can make them to use, evaluate whether is makes sense to keep the property as boolean or turn it into an enum.
    Location: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L691
    ⚠️ SchemaNamesConvention Schema name should be Pascal case.
    Location: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L732
    ⚠️ SchemaNamesConvention Schema name should be Pascal case.
    Location: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L768
    ⚠️ SchemaNamesConvention Schema name should be Pascal case.
    Location: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L781
    ⚠️ SchemaDescriptionOrTitle Schema should have a description or title.
    Location: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L1018
    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️️✔️ApiReadinessCheck succeeded [Detail] [Expand]
    ️⚠️~[Staging] ServiceAPIReadinessTest: 0 Warnings warning [Detail]

    API Test is not triggered due to precheck failure. Check pipeline log for details.

    ️️✔️SwaggerAPIView succeeded [Detail] [Expand]
    ️️✔️CadlAPIView succeeded [Detail] [Expand]
    ️❌TypeSpecAPIView: 0 Errors, 2 Warnings failed [Detail]
    Rule Message
    ⚠️ 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."
    ⚠️ 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: 19 Errors, 0 Warnings failed [Detail]
    Rule Message
    XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Deployments_ListDeployments.
    Url: OpenAI.Authoring/cadl-output/2022-06-01-preview/openapi.json#L63:14
    XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Deployments_CreateDeployment.
    Url: OpenAI.Authoring/cadl-output/2022-06-01-preview/openapi.json#L93:15
    XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Deployments_GetDeployment.
    Url: OpenAI.Authoring/cadl-output/2022-06-01-preview/openapi.json#L141:14
    XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Deployments_UpdateDeployment.
    Url: OpenAI.Authoring/cadl-output/2022-06-01-preview/openapi.json#L178:16
    XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Deployments_DeleteDeployment.
    Url: OpenAI.Authoring/cadl-output/2022-06-01-preview/openapi.json#L233:17
    XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Files_ListFiles.
    Url: OpenAI.Authoring/cadl-output/2022-06-01-preview/openapi.json#L269:14
    XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Files_UploadFile.
    Url: OpenAI.Authoring/cadl-output/2022-06-01-preview/openapi.json#L299:15
    XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Files_GetFile.
    Url: OpenAI.Authoring/cadl-output/2022-06-01-preview/openapi.json#L347:14
    XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Files_DeleteFile.
    Url: OpenAI.Authoring/cadl-output/2022-06-01-preview/openapi.json#L384:17
    XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Files_GetFileContent.
    Url: OpenAI.Authoring/cadl-output/2022-06-01-preview/openapi.json#L420:14
    XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Files_ImportFile.
    Url: OpenAI.Authoring/cadl-output/2022-06-01-preview/openapi.json#L459:15
    XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in FineTunes_ListFineTunes.
    Url: OpenAI.Authoring/cadl-output/2022-06-01-preview/openapi.json#L507:14
    XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in FineTunes_CreateFineTune.
    Url: OpenAI.Authoring/cadl-output/2022-06-01-preview/openapi.json#L537:15
    XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in FineTunes_GetFineTune.
    Url: OpenAI.Authoring/cadl-output/2022-06-01-preview/openapi.json#L583:14
    XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in FineTunes_DeleteFineTune.
    Url: OpenAI.Authoring/cadl-output/2022-06-01-preview/openapi.json#L620:17
    XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in FineTunes_CancelFineTune.
    Url: OpenAI.Authoring/cadl-output/2022-06-01-preview/openapi.json#L656:15
    XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in FineTunes_ListFineTuneEvents.
    Url: OpenAI.Authoring/cadl-output/2022-06-01-preview/openapi.json#L695:14
    XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Models_ListModels.
    Url: OpenAI.Authoring/cadl-output/2022-06-01-preview/openapi.json#L741:14
    XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Models_GetModel.
    Url: OpenAI.Authoring/cadl-output/2022-06-01-preview/openapi.json#L773:14
    ️️✔️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).
    ️️✔️CadlValidation succeeded [Detail] [Expand]
    Validation passes for CadlValidation.
    ️❌TypeSpec Validation: 5 Errors, 3 Warnings failed [Detail]
    Rule Message
    MissingExamplesDirectory "details":"The 'examples' directory is missing in the typespec folder specification/cognitiveservices/OpenAI.Authoring,
    please ensure the 'examples' is added in the PR."
    SwaggerNotExistInPRBranch "details":"The generated swagger file cadl-output/2022-06-01-preview/openapi.json from typespec specification/cognitiveservices/OpenAI.Authoring is not on the branch."
    MissingExamplesDirectory "details":"The 'examples' directory is missing in the typespec folder specification/cognitiveservices/OpenAI.Inference,
    please ensure the 'examples' is added in the PR."
    SwaggerNotExistInPRBranch "details":"The generated swagger file 2022-12-01/openapi.json from typespec specification/cognitiveservices/OpenAI.Inference is not on the branch."
    SwaggerNotExistInPRBranch "details":"The generated swagger file 2023-03-15-preview/openapi.json from typespec specification/cognitiveservices/OpenAI.Inference is not on the branch."
    ⚠️ MissingTypeSpecProjectConfig "details":"The configuration 'azure-resource-provider-folder' for '@azure-tools/typespec-autorest' is missing in the tspconfig.yaml under folder specification/cognitiveservices/AnomalyDetector,
    please ensure it is added in the configuration of the emitter '@azure-tools/typespec-autorest'."
    ⚠️ MissingTypeSpecProjectConfig "details":"The configuration 'output-file' for '@azure-tools/typespec-autorest' is missing in the tspconfig.yaml under folder specification/cognitiveservices/OpenAI.Inference,
    please ensure it is added in the configuration of the emitter '@azure-tools/typespec-autorest'."
    ⚠️ MissingTypeSpecProjectConfig "details":"The configuration 'azure-resource-provider-folder' for '@azure-tools/typespec-autorest' is missing in the tspconfig.yaml under folder specification/cognitiveservices/OpenAI.Inference,
    please ensure it is added in the configuration of the emitter '@azure-tools/typespec-autorest'."
    ️️✔️PR Summary succeeded [Detail] [Expand]
    Validation passes for Summary.
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented May 11, 2023

    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-track2 warning [Detail]
    • ⚠️Warning [Logs] Generate from cc5a59cb6d5dc67ec951f936ba2ad49f78081d81. 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: Skipping azure-nspkg as it is not installed.
      warn		specification/cognitiveservices/AnomalyDetector/tspconfig.yaml skipped due to azure-sdk-for-python-track2 not found in tspconfig.yaml
      warn		specification/cognitiveservices/ContentSafety/tspconfig.yaml skipped due to azure-sdk-for-python-track2 not found in tspconfig.yaml
      warn		specification/cognitiveservices/HealthInsights/healthinsights.oncophenotype/tspconfig.yaml skipped due to azure-sdk-for-python-track2 not found in tspconfig.yaml
      warn		specification/cognitiveservices/HealthInsights/healthinsights.openapi/tspconfig.yaml skipped due to azure-sdk-for-python-track2 not found in tspconfig.yaml
      warn		specification/cognitiveservices/HealthInsights/healthinsights.trialmatcher/tspconfig.yaml skipped due to azure-sdk-for-python-track2 not found in tspconfig.yaml
      warn		specification/cognitiveservices/OpenAI.Authoring/tspconfig.yaml skipped due to azure-sdk-for-python-track2 not found in tspconfig.yaml
      warn		specification/cognitiveservices/OpenAI.Inference/tspconfig.yaml skipped due to azure-sdk-for-python-track2 not found in tspconfig.yaml
      warn		specification/translation/Azure.AI.TextTranslation/tspconfig.yaml skipped due to azure-sdk-for-python-track2 not found in tspconfig.yaml
      command	sh scripts/automation_generate.sh ../azure-sdk-for-python_tmp/generateInput.json ../azure-sdk-for-python_tmp/generateOutput.json
      cmderr	[automation_generate.sh]  notice
      cmderr	[automation_generate.sh] npm notice New minor version of npm available! 9.5.1 -> 9.6.6
      cmderr	[automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.6.6>
      cmderr	[automation_generate.sh] npm notice Run `npm install -g npm@9.6.6` to update!
      cmderr	[automation_generate.sh] npm notice
      warn	No file changes detected after generation
      warn	No package detected after generation
    ️❌ azure-sdk-for-net-track2 failed [Detail]
    • Code Generator Failed [Logs] Generate from cc5a59cb6d5dc67ec951f936ba2ad49f78081d81. 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		specification/cognitiveservices/HealthInsights/healthinsights.openapi/tspconfig.yaml skipped due to azure-sdk-for-net-track2 not found in tspconfig.yaml
      warn		specification/cognitiveservices/OpenAI.Authoring/tspconfig.yaml skipped due to azure-sdk-for-net-track2 not found in tspconfig.yaml
      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] �[31;1mGeneratePackage: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/Invoke-GenerateAndBuildV2.ps1:145
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 145 | �[0m         �[36;1mGeneratePackage `�[0m
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m         ~~~~~~~~~~~~~~~~~
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mFailed to build sdk. exit code: False
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1mGeneratePackage: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/Invoke-GenerateAndBuildV2.ps1:145
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 145 | �[0m         �[36;1mGeneratePackage `�[0m
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m         ~~~~~~~~~~~~~~~~~
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mFailed to packe sdk. exit code: False
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1mGeneratePackage: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/Invoke-GenerateAndBuildV2.ps1:145
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 145 | �[0m         �[36;1mGeneratePackage `�[0m
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m         ~~~~~~~~~~~~~~~~~
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mFailed to generate sdk artifact
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1mException: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/Invoke-GenerateAndBuildV2.ps1:133
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 133 | �[0m             �[36;1mthrow "Not provide service name or namespace."�[0m
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mNot provide service name or namespace.
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
      error	Script return with result [failed] code [1] signal [null] cwd [azure-sdk-for-net]: pwsh ./eng/scripts/Invoke-GenerateAndBuildV2.ps1
      warn	Skip package processing as generation is failed
    ️⚠️ azure-sdk-for-java warning [Detail]
    ️⚠️ azure-sdk-for-js warning [Detail]
    • ⚠️Warning [Logs] Generate from cc5a59cb6d5dc67ec951f936ba2ad49f78081d81. 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
      warn	No file changes detected after generation
      warn	No package detected after generation
    • ️✔️@azure-rest/ai-anomaly-detector [View full logs]  [Preview SDK Changes]
      info	[Changelog]
      error	breakingChangeTracking is enabled, but version or changelogItem is not found in output.
    • ️✔️@azure-rest/ai-translation-text [View full logs]  [Preview SDK Changes]
      info	[Changelog]
      error	breakingChangeTracking is enabled, but version or changelogItem is not found in output.
    ️⚠️ azure-resource-manager-schemas warning [Detail]
    • ⚠️Warning [Logs] Generate from cc5a59cb6d5dc67ec951f936ba2ad49f78081d81. 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]  WARN old lockfile
      cmderr	[initScript.sh] npm WARN old lockfile The package-lock.json file was created with an old version of npm,
      cmderr	[initScript.sh] npm WARN old lockfile so supplemental metadata must be fetched from the registry.
      cmderr	[initScript.sh] npm WARN old lockfile
      cmderr	[initScript.sh] npm WARN old lockfile This is a one-time fix-up, please be patient...
      cmderr	[initScript.sh] npm WARN old lockfile
      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
      warn	No file changes detected after generation
      warn	Skip detect changed packages
    ️❌ azure-powershell failed [Detail]
    • Pipeline Framework Failed [Logs] Generate from cc5a59cb6d5dc67ec951f936ba2ad49f78081d81. SDK Automation 14.0.0
      command	sh ./tools/SwaggerCI/init.sh ../azure-powershell_tmp/initInput.json ../azure-powershell_tmp/initOutput.json
      warn		specification/cognitiveservices/AnomalyDetector/tspconfig.yaml skipped due to azure-powershell not found in tspconfig.yaml
      warn		specification/cognitiveservices/ContentSafety/tspconfig.yaml skipped due to azure-powershell not found in tspconfig.yaml
      warn		specification/cognitiveservices/HealthInsights/healthinsights.oncophenotype/tspconfig.yaml skipped due to azure-powershell not found in tspconfig.yaml
      warn		specification/cognitiveservices/HealthInsights/healthinsights.openapi/tspconfig.yaml skipped due to azure-powershell not found in tspconfig.yaml
      warn		specification/cognitiveservices/HealthInsights/healthinsights.trialmatcher/tspconfig.yaml skipped due to azure-powershell not found in tspconfig.yaml
      warn		specification/cognitiveservices/OpenAI.Authoring/tspconfig.yaml skipped due to azure-powershell not found in tspconfig.yaml
      warn		specification/cognitiveservices/OpenAI.Inference/tspconfig.yaml skipped due to azure-powershell not found in tspconfig.yaml
      warn		specification/translation/Azure.AI.TextTranslation/tspconfig.yaml skipped due to azure-powershell not found in tspconfig.yaml
      command	pwsh ./tools/SwaggerCI/psci.ps1 ../azure-powershell_tmp/generateInput.json ../azure-powershell_tmp/generateOutput.json
      SSL error: syscall failure: Broken pipe
      Error: SSL error: syscall failure: Broken pipe
    • Az.cognitiveservices.DefaultTag [View full logs
      error	Fatal error: SSL error: syscall failure: Broken pipe
      error	The following packages are still pending:
      error		Az.cognitiveservices.DefaultTag
    ️⚠️ azure-sdk-for-python warning [Detail]
    • ⚠️Warning [Logs] Generate from cc5a59cb6d5dc67ec951f936ba2ad49f78081d81. 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: Skipping azure-nspkg as it is not installed.
      warn		specification/cognitiveservices/data-plane/ContentSafety/readme.md skipped due to azure-sdk-for-python not found in swagger-to-sdk
      warn		specification/cognitiveservices/HealthInsights/healthinsights.oncophenotype/tspconfig.yaml skipped due to azure-sdk-for-python not found in tspconfig.yaml
      warn		specification/cognitiveservices/HealthInsights/healthinsights.openapi/tspconfig.yaml skipped due to azure-sdk-for-python not found in tspconfig.yaml
      warn		specification/cognitiveservices/HealthInsights/healthinsights.trialmatcher/tspconfig.yaml skipped due to azure-sdk-for-python not found in tspconfig.yaml
      warn		specification/cognitiveservices/OpenAI.Authoring/tspconfig.yaml skipped due to azure-sdk-for-python not found in tspconfig.yaml
      warn		specification/cognitiveservices/OpenAI.Inference/tspconfig.yaml skipped due to azure-sdk-for-python not found in tspconfig.yaml
      command	sh scripts/automation_generate.sh ../azure-sdk-for-python_tmp/generateInput.json ../azure-sdk-for-python_tmp/generateOutput.json
      cmderr	[automation_generate.sh] npm notice
      cmderr	[automation_generate.sh] npm notice New minor version of npm available! 9.5.1 -> 9.6.6
      cmderr	[automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.6.6>
      cmderr	[automation_generate.sh] npm notice Run `npm install -g npm@9.6.6` to update!
      cmderr	[automation_generate.sh] npm notice
    • ️✔️azure-ai-anomalydetector [View full logs]  [Preview SDK Changes]
      info	[Changelog] data-plan skip changelog generation temporarily
    • ️✔️azure-ai-contentsafety [View full logs]  [Preview SDK Changes]
      info	[Changelog] data-plan skip changelog generation temporarily
    • ️✔️azure-ai-translation-text [View full logs]  [Preview SDK Changes]
      info	[Changelog] data-plan skip changelog generation temporarily
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented May 11, 2023

    Generated ApiView

    Language Package Name ApiView Link
    Swagger cognitiveservices-data-plane-ContentSafety https://apiview.dev/Assemblies/Review/3db4e43b11f54eabba8f3253acdcd7be
    Python azure-ai-contentsafety https://apiview.dev/Assemblies/Review/59e65a63f52b482293cbc2439746f010
    Python azure-ai-translation-text https://apiview.dev/Assemblies/Review/59e65a63f52b482293cbc2439746f010
    Java azure-ai-anomalydetector https://apiview.dev/Assemblies/Review/dc407d17632940139e829139f7f47ffa
    Java azure-ai-translation-text https://apiview.dev/Assemblies/Review/4e44b6abfb864899b988a65d391c5b21
    JavaScript @azure-rest/ai-anomaly-detector https://apiview.dev/Assemblies/Review/96aad160f67c4c1eabb84fb3b885ea1f
    JavaScript @azure-rest/ai-translation-text https://apiview.dev/Assemblies/Review/144f1150b6514c8a9008b9fa4f6a621c

    @openapi-workflow-bot
    Copy link

    Hi @markcowl, Your PR has some issues. Please fix the CI sequentially by following the order of Avocado, semantic validation, model validation, breaking change, lintDiff. If you have any questions, please post your questions in this channel https://aka.ms/swaggersupport.

    TaskHow to fixPriority
    AvocadoFix-AvocadoHigh
    Semantic validationFix-SemanticValidation-ErrorHigh
    Model validationFix-ModelValidation-ErrorHigh
    LintDiffFix-LintDiffhigh
    If you need further help, please feedback via swagger feedback.

    @mikeharder mikeharder closed this May 13, 2023
    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.

    4 participants