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

[TypeSpec] Upgrade to 0.50.0 #26636

Merged
merged 22 commits into from
Nov 9, 2023
Merged

[TypeSpec] Upgrade to 0.50.0 #26636

merged 22 commits into from
Nov 9, 2023

Conversation

mikeharder
Copy link
Member

@mikeharder mikeharder commented Nov 9, 2023

Copy link

openapi-pipeline-app bot commented Nov 9, 2023

Next Steps to Merge

Next steps that must be taken to merge this PR:
  • ❌ Your PR has breaking changes (label: BreakingChangeReviewRequired). See the PR description for help.
  • ❌ The required check named Swagger SpellCheck has failed. Refer to the check in the PR's 'Checks' tab for details on how to fix it.

Copy link

openapi-pipeline-app bot commented Nov 9, 2023

Swagger Validation Report

️❌BreakingChange: 12 Errors, 0 Warnings failed [Detail]
compared swaggers (via Oad v0.10.4)] new version base version
azure.codesigning.json 2023-06-15-preview(d7d3d34) 2023-06-15-preview(main)
widgets.json 2022-11-01-preview(d7d3d34) 2022-11-01-preview(main)
Rule Message
1019 - RemovedEnumValue The new version is removing enum value(s) 'InProgress' from the old version.
New: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L97:17
Old: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L97:17
1019 - RemovedEnumValue The new version is removing enum value(s) 'InProgress' from the old version.
New: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L178:17
Old: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L178:17
1019 - RemovedEnumValue The new version is removing enum value(s) 'InProgress' from the old version.
New: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L381:5
Old: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L381:5
1019 - RemovedEnumValue The new version is removing enum value(s) 'InProgress' from the old version.
New: Azure.Contoso.WidgetManager/preview/2022-11-01-preview/widgets.json#L223:17
Old: Azure.Contoso.WidgetManager/preview/2022-11-01-preview/widgets.json#L223:17
1019 - RemovedEnumValue The new version is removing enum value(s) 'InProgress' from the old version.
New: Azure.Contoso.WidgetManager/preview/2022-11-01-preview/widgets.json#L300:17
Old: Azure.Contoso.WidgetManager/preview/2022-11-01-preview/widgets.json#L300:17
1019 - RemovedEnumValue The new version is removing enum value(s) 'InProgress' from the old version.
New: Azure.Contoso.WidgetManager/preview/2022-11-01-preview/widgets.json#L402:5
Old: Azure.Contoso.WidgetManager/preview/2022-11-01-preview/widgets.json#L402:5
1020 - AddedEnumValue The new version is adding enum value(s) 'NotStarted, Running' from the old version.
New: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L97:17
Old: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L97:17
1020 - AddedEnumValue The new version is adding enum value(s) 'NotStarted, Running' from the old version.
New: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L178:17
Old: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L178:17
1020 - AddedEnumValue The new version is adding enum value(s) 'NotStarted, Running' from the old version.
New: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L381:5
Old: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L381:5
1020 - AddedEnumValue The new version is adding enum value(s) 'NotStarted, Running' from the old version.
New: Azure.Contoso.WidgetManager/preview/2022-11-01-preview/widgets.json#L223:17
Old: Azure.Contoso.WidgetManager/preview/2022-11-01-preview/widgets.json#L223:17
1020 - AddedEnumValue The new version is adding enum value(s) 'NotStarted, Running' from the old version.
New: Azure.Contoso.WidgetManager/preview/2022-11-01-preview/widgets.json#L300:17
Old: Azure.Contoso.WidgetManager/preview/2022-11-01-preview/widgets.json#L300:17
1020 - AddedEnumValue The new version is adding enum value(s) 'NotStarted, Running' from the old version.
New: Azure.Contoso.WidgetManager/preview/2022-11-01-preview/widgets.json#L402:5
Old: Azure.Contoso.WidgetManager/preview/2022-11-01-preview/widgets.json#L402:5
️️✔️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
2023-06-15-preview 2023-06-15-preview(d7d3d34) 2023-06-15-preview(main)
package-2022-11-01-preview package-2022-11-01-preview(d7d3d34) package-2022-11-01-preview(main)

The following errors/warnings exist before current PR submission:

Rule Message
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: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L89
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: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L170
⚠️ SecurityDefinitionDescription Security definition should have a description.
Location: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L43
⚠️ LongRunningOperationsOptionsValidator A LRO Post operation with return schema must have 'x-ms-long-running-operation-options' extension enabled.
Location: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L54
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L63
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L70
⚠️ ParameterDescription Parameter should have a description.
Location: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L77
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L153
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L156
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L159
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L226
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L233
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L284
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L287
⚠️ SchemaNamesConvention Schema name should be Pascal case.
Location: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L320
⚠️ SchemaNamesConvention Schema name should be Pascal case.
Location: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L354
⚠️ SchemaNamesConvention Schema name should be Pascal case.
Location: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L367
⚠️ SchemaNamesConvention Schema name should be Pascal case.
Location: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L381
️️✔️Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️SwaggerAPIView succeeded [Detail] [Expand]
️️✔️TypeSpecAPIView succeeded [Detail] [Expand]
️❌ModelValidation: 3 Errors, 0 Warnings failed [Detail]
Rule Message
LRO_RESPONSE_HEADER Long running operation should return Operation-Id or Operation-Location or azure-AsyncOperation in header but not provided
Url: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L86:22
ExampleUrl: preview/2023-06-15-preview/examples/CertificateProfileOperations_Sign.json
OBJECT_ADDITIONAL_PROPERTIES Additional properties not allowed: ekus
Url: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L552:30
ExampleUrl: preview/2023-06-15-preview/examples/CertificateProfileOperations_ListSignEkus.json#L12:17
OBJECT_MISSING_REQUIRED_PROPERTY Missing required property: value
Url: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L552:30
ExampleUrl: preview/2023-06-15-preview/examples/CertificateProfileOperations_ListSignEkus.json
️️✔️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: 20 Errors, 0 Warnings failed [Detail]
Rule Message
HowToFix Unknown word (codesigningaccounts), please fix the error or add words to ./custom-words.txt
path: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L54:7
HowToFix Unknown word (certificateprofiles), please fix the error or add words to ./custom-words.txt
path: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L54:52
HowToFix Unknown word (codesign), please fix the error or add words to ./custom-words.txt
path: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L57:30
HowToFix Unknown word (codesign), please fix the error or add words to ./custom-words.txt
path: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L58:34
HowToFix Unknown word (codesign), please fix the error or add words to ./custom-words.txt
path: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L58:71
HowToFix Unknown word (Codesigning), please fix the error or add words to ./custom-words.txt
path: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L73:35
HowToFix Unknown word (codesign), please fix the error or add words to ./custom-words.txt
path: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L73:80
HowToFix Unknown word (codesigningaccounts), please fix the error or add words to ./custom-words.txt
path: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L144:7
HowToFix Unknown word (certificateprofiles), please fix the error or add words to ./custom-words.txt
path: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L144:52
HowToFix Unknown word (codesigning), please fix the error or add words to ./custom-words.txt
path: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L147:42
HowToFix Unknown word (codesigningaccounts), please fix the error or add words to ./custom-words.txt
path: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L217:7
HowToFix Unknown word (certificateprofiles), please fix the error or add words to ./custom-words.txt
path: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L217:52
HowToFix Unknown word (codesigning), please fix the error or add words to ./custom-words.txt
path: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L221:131
HowToFix Unknown word (Codesigning), please fix the error or add words to ./custom-words.txt
path: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L236:35
HowToFix Unknown word (codesigningaccounts), please fix the error or add words to ./custom-words.txt
path: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L271:7
HowToFix Unknown word (certificateprofiles), please fix the error or add words to ./custom-words.txt
path: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L271:52
HowToFix Unknown word (rootcert), please fix the error or add words to ./custom-words.txt
path: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L271:102
HowToFix Unknown word (codesigning), please fix the error or add words to ./custom-words.txt
path: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L274:30
HowToFix Unknown word (codesigning), please fix the error or add words to ./custom-words.txt
path: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L312:21
HowToFix Unknown word (Codesigning), please fix the error or add words to ./custom-words.txt
path: Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json#L429:33
️️✔️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?

Copy link

openapi-pipeline-app bot commented Nov 9, 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-net-track2 failed [Detail]
  • Pipeline Framework Failed [Logs]Release - Generate from 4c6ebd4. SDK Automation 14.0.0
    Only show 30 items here, please refer to log for details.
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mFailed to generate sdk artifact
    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:141
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 141 | �[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:141
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 141 | �[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:141
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 141 | �[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;1mWrite-Error: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/common/scripts/TypeSpec-Project-Process.ps1:26
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m  26 | �[0m   $serviceDir = �[36;1mGet-ServiceDir $tspConfig $repoRoot�[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mMissing service-dir in parameters section of tspconfig.yaml. Please
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1mrefer to
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1mhttps://github.com/Azure/azure-rest-api-specs/blob/main/specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml for the right schema.
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
    the given reference name 'refs/heads/sdkAuto/' is not valid
    Error: the given reference name 'refs/heads/sdkAuto/' is not valid
  • ️✔️Azure.AI.OpenAI [View full logs]  [Release SDK Changes]
    info	[Changelog]
  • Azure.Communication.JobRouter [View full logs]  [Release SDK Changes]
    info	[Changelog]
  • Azure.Analytics.Defender.Easm [View full logs]  [Release SDK Changes]
    info	[Changelog]
  • error	Fatal error: the given reference name 'refs/heads/sdkAuto/' is not valid
    error	The following packages are still pending:
    error		Azure.AI.OpenAI
    error		Azure.Communication.JobRouter
    error		Azure.Analytics.Defender.Easm
    error
️❌ azure-sdk-for-java failed [Detail]
  • Pipeline Framework Failed [Logs]Release - Generate from 4c6ebd4. 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
    cmderr	[init.sh] [notice] A new release of pip is available: 23.0.1 -> 23.3.1
    cmderr	[init.sh] [notice] To update, run: pip install --upgrade pip
    cmderr	[init.sh] [notice] A new release of pip is available: 23.0.1 -> 23.3.1
    cmderr	[init.sh] [notice] To update, run: pip install --upgrade pip
    warn		specification/codesigning/data-plane/readme.md skipped due to azure-sdk-for-java not found in swagger-to-sdk
    warn		specification/contosowidgetmanager/data-plane/readme.md skipped due to azure-sdk-for-java not found in swagger-to-sdk
    command	./eng/mgmt/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
    cmderr	[generate.py]  WARN EBADENGINE Unsupported engine {
    cmderr	[generate.py] npm WARN EBADENGINE   package: '@typespec/[email protected]',
    cmderr	[generate.py] npm WARN EBADENGINE   required: { node: '>=18.0.0' },
    cmderr	[generate.py] npm WARN EBADENGINE   current: { node: 'v16.20.2', npm: '8.19.4' }
    cmderr	[generate.py] npm WARN EBADENGINE }
    cmderr	[generate.py] npm WARN EBADENGINE Unsupported engine {
    cmderr	[generate.py] npm WARN EBADENGINE   package: '@typespec/[email protected]',
    cmderr	[generate.py] npm WARN EBADENGINE   required: { node: '>=18.0.0' },
    cmderr	[generate.py] npm WARN EBADENGINE   current: { node: 'v16.20.2', npm: '8.19.4' }
    cmderr	[generate.py] npm WARN EBADENGINE }
    cmderr	[generate.py] npm WARN EBADENGINE Unsupported engine {
    cmderr	[generate.py] npm WARN EBADENGINE   package: '@typespec/[email protected]',
    cmderr	[generate.py] npm WARN EBADENGINE   required: { node: '>=18.0.0' },
    cmderr	[generate.py] npm WARN EBADENGINE   current: { node: 'v16.20.2', npm: '8.19.4' }
    cmderr	[generate.py] npm WARN EBADENGINE }
    cmderr	[generate.py] npm WARN EBADENGINE Unsupported engine {
    cmderr	[generate.py] npm WARN EBADENGINE   package: '@typespec/[email protected]',
    cmderr	[generate.py] npm WARN EBADENGINE   required: { node: '>=18.0.0' },
    cmderr	[generate.py] npm WARN EBADENGINE   current: { node: 'v16.20.2', npm: '8.19.4' }
    cmderr	[generate.py] npm WARN EBADENGINE }
    cmderr	[generate.py] npm WARN EBADENGINE Unsupported engine {
    cmderr	[generate.py] npm WARN EBADENGINE   package: '@typespec/[email protected]',
    cmderr	[generate.py] npm WARN EBADENGINE   required: { node: '>=18.0.0' },
    cmderr	[generate.py] npm WARN EBADENGINE   current: { node: 'v16.20.2', npm: '8.19.4' }
    cmderr	[generate.py] npm WARN EBADENGINE }
    cmderr	[generate.py] npm WARN EBADENGINE Unsupported engine {
    cmderr	[generate.py] npm WARN EBADENGINE   package: '@azure-tools/[email protected]',
    cmderr	[generate.py] npm WARN EBADENGINE   required: { node: '>=18.0.0' },
    cmderr	[generate.py] npm WARN EBADENGINE   current: { node: 'v16.20.2', npm: '8.19.4' }
    cmderr	[generate.py] npm WARN EBADENGINE }
    cmderr	[generate.py] npm WARN EBADENGINE Unsupported engine {
    cmderr	[generate.py] npm WARN EBADENGINE   package: '@azure-tools/[email protected]',
    cmderr	[generate.py] npm WARN EBADENGINE   required: { node: '>=18.0.0' },
    cmderr	[generate.py] npm WARN EBADENGINE   current: { node: 'v16.20.2', npm: '8.19.4' }
    cmderr	[generate.py] npm WARN EBADENGINE }
    cmderr	[generate.py] npm notice
    cmderr	[generate.py] npm notice New major version of npm available! 8.19.4 -> 10.2.3
    cmderr	[generate.py] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.3>
    cmderr	[generate.py] npm notice Run `npm install -g [email protected]` to update!
    cmderr	[generate.py] npm notice
    The "path" argument must be of type string. Received undefined
    TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
        at new NodeError (node:internal/errors:387:5)
        at validateString (node:internal/validators:162:11)
        at Object.basename (node:path:1309:5)
        at Object.exports.getPackageData (/mnt/vss/_work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/types/PackageData.js:38:82)
        at /mnt/vss/_work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/automation/workflow.js:210:194
        at Array.map (<anonymous>)
        at workflowHandleReadmeMdOrTypeSpecProject (/mnt/vss/_work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/automation/workflow.js:210:164)
        at runMicrotasks (<anonymous>)
        at processTicksAndRejections (node:internal/process/task_queues:96:5)
        at async Object.exports.workflowMain (/mnt/vss/_work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/automation/workflow.js:98:13)
        at async Object.exports.sdkAutoMain (/mnt/vss/_work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/automation/entrypoint.js:211:13)
        at async /mnt/vss/_work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/cli/cli.js:20:18
  • azure-ai-openai [View full logs]  [Release SDK Changes]
️🔄 azure-sdk-for-js inProgress [Detail]
️❌ azure-sdk-for-python failed [Detail]
  • Code Generator Failed [Logs]Release - Generate from 4c6ebd4. 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/codesigning/data-plane/readme.md skipped due to azure-sdk-for-python not found in swagger-to-sdk
    warn		specification/contosowidgetmanager/data-plane/readme.md skipped due to azure-sdk-for-python not found in swagger-to-sdk
    warn		specification/cognitiveservices/OpenAI.Inference/tspconfig.yaml skipped due to azure-sdk-for-python not found in tspconfig.yaml
    warn		specification/confidentialledger/Microsoft.ManagedCcf/tspconfig.yaml skipped due to azure-sdk-for-python not found in tspconfig.yaml
    warn		specification/riskiq/Easm/tspconfig.yaml skipped due to azure-sdk-for-python not found in tspconfig.yaml
    warn		specification/sphere/Sphere.Management/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 major version of npm available! 9.8.1 -> 10.2.3
    cmderr	[automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.3>
    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?

Copy link

openapi-pipeline-app bot commented Nov 9, 2023

Generated ApiView

Language Package Name ApiView Link
.Net Azure.AI.OpenAI https://apiview.dev/Assemblies/Review/5dfa1b932ec94688a62f85f2aed23893

Copy link

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-net-track2 inProgress [Detail]
️❌ azure-sdk-for-java failed [Detail]
  • Pipeline Framework Failed [Logs] Generate from 7deb1af29c1cb19fb8eba0c6d83301c07186b01e. 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
    cmderr	[init.sh] [notice] A new release of pip is available: 23.0.1 -> 23.3.1
    cmderr	[init.sh] [notice] To update, run: pip install --upgrade pip
    cmderr	[init.sh] [notice] A new release of pip is available: 23.0.1 -> 23.3.1
    cmderr	[init.sh] [notice] To update, run: pip install --upgrade pip
    warn		specification/codesigning/data-plane/readme.md skipped due to azure-sdk-for-java not found in swagger-to-sdk
    warn		specification/contosowidgetmanager/data-plane/readme.md skipped due to azure-sdk-for-java not found in swagger-to-sdk
    command	./eng/mgmt/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
    cmderr	[generate.py]  WARN EBADENGINE Unsupported engine {
    cmderr	[generate.py] npm WARN EBADENGINE   package: '@typespec/[email protected]',
    cmderr	[generate.py] npm WARN EBADENGINE   required: { node: '>=18.0.0' },
    cmderr	[generate.py] npm WARN EBADENGINE   current: { node: 'v16.20.2', npm: '8.19.4' }
    cmderr	[generate.py] npm WARN EBADENGINE }
    cmderr	[generate.py] npm WARN EBADENGINE Unsupported engine {
    cmderr	[generate.py] npm WARN EBADENGINE   package: '@typespec/[email protected]',
    cmderr	[generate.py] npm WARN EBADENGINE   required: { node: '>=18.0.0' },
    cmderr	[generate.py] npm WARN EBADENGINE   current: { node: 'v16.20.2', npm: '8.19.4' }
    cmderr	[generate.py] npm WARN EBADENGINE }
    cmderr	[generate.py] npm WARN EBADENGINE Unsupported engine {
    cmderr	[generate.py] npm WARN EBADENGINE   package: '@typespec/[email protected]',
    cmderr	[generate.py] npm WARN EBADENGINE   required: { node: '>=18.0.0' },
    cmderr	[generate.py] npm WARN EBADENGINE   current: { node: 'v16.20.2', npm: '8.19.4' }
    cmderr	[generate.py] npm WARN EBADENGINE }
    cmderr	[generate.py] npm WARN EBADENGINE Unsupported engine {
    cmderr	[generate.py] npm WARN EBADENGINE   package: '@typespec/[email protected]',
    cmderr	[generate.py] npm WARN EBADENGINE   required: { node: '>=18.0.0' },
    cmderr	[generate.py] npm WARN EBADENGINE   current: { node: 'v16.20.2', npm: '8.19.4' }
    cmderr	[generate.py] npm WARN EBADENGINE }
    cmderr	[generate.py] npm WARN EBADENGINE Unsupported engine {
    cmderr	[generate.py] npm WARN EBADENGINE   package: '@typespec/[email protected]',
    cmderr	[generate.py] npm WARN EBADENGINE   required: { node: '>=18.0.0' },
    cmderr	[generate.py] npm WARN EBADENGINE   current: { node: 'v16.20.2', npm: '8.19.4' }
    cmderr	[generate.py] npm WARN EBADENGINE }
    cmderr	[generate.py] npm WARN EBADENGINE Unsupported engine {
    cmderr	[generate.py] npm WARN EBADENGINE   package: '@azure-tools/[email protected]',
    cmderr	[generate.py] npm WARN EBADENGINE   required: { node: '>=18.0.0' },
    cmderr	[generate.py] npm WARN EBADENGINE   current: { node: 'v16.20.2', npm: '8.19.4' }
    cmderr	[generate.py] npm WARN EBADENGINE }
    cmderr	[generate.py] npm WARN EBADENGINE Unsupported engine {
    cmderr	[generate.py] npm WARN EBADENGINE   package: '@azure-tools/[email protected]',
    cmderr	[generate.py] npm WARN EBADENGINE   required: { node: '>=18.0.0' },
    cmderr	[generate.py] npm WARN EBADENGINE   current: { node: 'v16.20.2', npm: '8.19.4' }
    cmderr	[generate.py] npm WARN EBADENGINE }
    cmderr	[generate.py] npm notice
    cmderr	[generate.py] npm notice New major version of npm available! 8.19.4 -> 10.2.3
    cmderr	[generate.py] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.3>
    cmderr	[generate.py] npm notice Run `npm install -g [email protected]` to update!
    cmderr	[generate.py] npm notice
    The "path" argument must be of type string. Received undefined
    TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
        at new NodeError (node:internal/errors:387:5)
        at validateString (node:internal/validators:162:11)
        at Object.basename (node:path:1309:5)
        at Object.exports.getPackageData (/mnt/vss/_work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/types/PackageData.js:38:82)
        at /mnt/vss/_work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/automation/workflow.js:210:194
        at Array.map (<anonymous>)
        at workflowHandleReadmeMdOrTypeSpecProject (/mnt/vss/_work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/automation/workflow.js:210:164)
        at runMicrotasks (<anonymous>)
        at processTicksAndRejections (node:internal/process/task_queues:96:5)
        at async Object.exports.workflowMain (/mnt/vss/_work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/automation/workflow.js:98:13)
        at async Object.exports.sdkAutoMain (/mnt/vss/_work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/automation/entrypoint.js:211:13)
        at async /mnt/vss/_work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/cli/cli.js:20:18
  • azure-ai-openai [View full logs]  [Preview SDK Changes]
️❌ azure-sdk-for-js failed [Detail]
  • Failed [Logs] Generate from 7deb1af29c1cb19fb8eba0c6d83301c07186b01e. 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
    warn		specification/codesigning/data-plane/readme.md skipped due to azure-sdk-for-js not found in swagger-to-sdk
    warn		specification/contosowidgetmanager/data-plane/readme.md skipped due to azure-sdk-for-js not found in swagger-to-sdk
    command	sh .scripts/automation_generate.sh ../azure-sdk-for-js_tmp/generateInput.json ../azure-sdk-for-js_tmp/generateOutput.json
  • ️✔️@azure/openai [View full logs]  [Preview SDK Changes]
    info	[Changelog]
    error	breakingChangeTracking is enabled, but version or changelogItem is not found in output.
  • @azure/communication-job-router [View full logs]  [Preview SDK Changes]
    info	[Changelog]
    error	breakingChangeTracking is enabled, but version or changelogItem is not found in output.
️⚠️ azure-sdk-for-python warning [Detail]
  • ⚠️Warning [Logs] Generate from 7deb1af29c1cb19fb8eba0c6d83301c07186b01e. 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/codesigning/data-plane/readme.md skipped due to azure-sdk-for-python not found in swagger-to-sdk
    warn		specification/contosowidgetmanager/data-plane/readme.md skipped due to azure-sdk-for-python not found in swagger-to-sdk
    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]
    cmderr	[automation_generate.sh] npm notice New major version of npm available! 9.8.1 -> 10.2.3
    cmderr	[automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.3>
    cmderr	[automation_generate.sh] npm notice Run `npm install -g [email protected]` to update!
    cmderr	[automation_generate.sh] npm notice
  • ️✔️azure-communication-jobrouter [View full logs]  [Preview SDK Changes]
    info	[Changelog] data-plan skip changelog generation temporarily
Posted by Swagger Pipeline | How to fix these errors?

@mikeharder mikeharder marked this pull request as ready for review November 9, 2023 05:40
@mikeharder mikeharder requested review from bexxx and weidongxu-microsoft and removed request for a team November 9, 2023 05:40
@mikeharder mikeharder merged commit 4c6ebd4 into main Nov 9, 2023
29 of 37 checks passed
@mikeharder mikeharder deleted the typespec-50 branch November 9, 2023 08:05
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
BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required data-plane
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants