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

Added typespec example project and rename spec config #3653

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

raych1
Copy link

@raych1 raych1 commented Mar 22, 2023

sdk automation testing

@openapi-pipeline-app-test
Copy link

openapi-pipeline-app-test bot commented Mar 22, 2023

Swagger Validation Report

️️✔️BreakingChange succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️Breaking Change(Cross-Version) succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️LintDiff succeeded [Detail] [Expand]
Validation passes for LintDiff.
️️✔️PR Summary succeeded [Detail] [Expand]
️️✔️[Staging] Lint(RPaaS) succeeded [Detail] [Expand]
Validation passes for Lint(RPaaS).
️❌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: Azure.Contoso.WidgetManager/preview/2022-11-01-preview/examples
MISSING_README Can not find readme.md in the folder. If no readme.md file, it will block SDK generation.
folder: data-plane/Azure.Contoso.WidgetManager/preview/2022-11-01-preview
️️✔️ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️️✔️SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️️✔️ApiReadinessCheck succeeded [Detail] [Expand]
️❌~[Staging] 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"
️️✔️~[Staging] CadlAPIView succeeded [Detail] [Expand]
️❌~[Staging] TypeSpecAPIView: 0 Errors, 1 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."
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️️✔️PoliCheck succeeded [Detail] [Expand]
Validation passed for PoliCheck.
️️✔️[Staging] PrettierCheck succeeded [Detail] [Expand]
Validation passes for PrettierCheck.
️❌[Staging] SpellCheck: 6 Errors, 0 Warnings failed [Detail]
Rule Message
HowToFix Unknown word (typespec), please fix the error or add words to ./custom-words.txt
path: Azure.Contoso.WidgetManager/preview/2022-11-01-preview/widgets.json#L6:8
HowToFix Unknown word (typespec), please fix the error or add words to ./custom-words.txt
path: Azure.Contoso.WidgetManager/preview/2022-11-01-preview/widgets.json#L8:34
HowToFix Unknown word (typespec), please fix the error or add words to ./custom-words.txt
path: Azure.Contoso.WidgetManager/preview/2022-11-01-preview/widgets.json#L44:22
HowToFix Unknown word (typespec), please fix the error or add words to ./custom-words.txt
path: Azure.Contoso.WidgetManager/preview/2022-11-01-preview/widgets.json#L51:22
HowToFix Unknown word (widget's), please fix the error or add words to ./custom-words.txt
path: Azure.Contoso.WidgetManager/preview/2022-11-01-preview/widgets.json#L483:41
HowToFix Unknown word (widget's), please fix the error or add words to ./custom-words.txt
path: Azure.Contoso.WidgetManager/preview/2022-11-01-preview/widgets.json#L501:41
️️✔️[Staging] SDK Track2 Validation succeeded [Detail] [Expand]
Validation passes for SDKTrack2Validation
️️✔️CadlValidation succeeded [Detail] [Expand]
Validation passes for CadlValidation.
️️✔️TypeSpec Validation succeeded [Detail] [Expand]
Validation passes for TypeSpec Validation.
Posted by Swagger Pipeline | How to fix these errors?

@openapi-pipeline-app-test
Copy link

openapi-pipeline-app-test bot commented Mar 22, 2023

Swagger Generation Artifacts

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

Breaking Changes Tracking


️⚠️ azure-sdk-for-python warning [Detail]
  • ⚠️Warning [Logs] Generate from 79f61400e962035a9b2f7ef1cc9b9ab9108ccee7. 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.
    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.0 -> 9.6.4
    cmderr	[automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.6.4>
    cmderr	[automation_generate.sh] npm notice Run `npm install -g npm@9.6.4` to update!
    cmderr	[automation_generate.sh] npm notice
  • ️✔️azure-contosowidgetmanager [View full logs]  [Preview SDK Changes]
    info	[Changelog] data-plan skip changelog generation temporarily
️❌ azure-sdk-for-net-track2 failed [Detail]
  • Failed [Logs] Generate from 79f61400e962035a9b2f7ef1cc9b9ab9108ccee7. 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
    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 generate sdk. exit code: False
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1mGet-ChildItem: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:801
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 801 | �[0m … rtifacts += �[36;1mGet-ChildItem $artifactsPath -Filter *.nupkg -exclude *.s�[0m …
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mCannot find path
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m'/mnt/vss/_work/1/s/azure-sdk-for-net/artifacts/packages/Debug/' because
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1mit does not exist.
    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
  • Azure.Template.Contoso [View full logs]  [Preview SDK Changes]
    info	[Changelog]
️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs] Generate from 79f61400e962035a9b2f7ef1cc9b9ab9108ccee7. 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
  • ️✔️@azure-rest/contosowidgetmanager-rest [View full logs]  [Preview SDK Changes]
    info	[Changelog]
    error	breakingChangeTracking is enabled, but version or changelogItem is not found in output.
️⚠️ azure-sdk-for-java warning [Detail]
  • ⚠️Warning [Logs] Generate from 79f61400e962035a9b2f7ef1cc9b9ab9108ccee7. 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
    command	./eng/mgmt/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
    cmderr	[generate.py] npm notice
    cmderr	[generate.py] npm notice New major version of npm available! 8.19.4 -> 9.6.4
    cmderr	[generate.py] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.6.4>
    cmderr	[generate.py] npm notice Run `npm install -g npm@9.6.4` to update!
    cmderr	[generate.py] npm notice
  • ️✔️azure-contoso-widgetmanager [View full logs]  [Preview SDK Changes]
Posted by Swagger Pipeline | How to fix these errors?

@openapi-pipeline-app-test
Copy link

openapi-pipeline-app-test bot commented Mar 22, 2023

Generated ApiView

Language Package Name ApiView Link
Python azure-contosowidgetmanager https://apiviewstaging.azurewebsites.net/Assemblies/Review/d18743d5a45e41539d7c84e6b80fb569
Java azure-contoso-widgetmanager https://apiviewstaging.azurewebsites.net/Assemblies/Review/2821dfc5752a4ef99985092facb78676
JavaScript @azure-rest/contosowidgetmanager-rest https://apiviewstaging.azurewebsites.net/Assemblies/Review/f53587bc52eb48538b1f9baec10ebfce

@raych1
Copy link
Author

raych1 commented Mar 23, 2023

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@raych1
Copy link
Author

raych1 commented Mar 23, 2023

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@raych1
Copy link
Author

raych1 commented Mar 23, 2023

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@raych1
Copy link
Author

raych1 commented Mar 23, 2023

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@raych1
Copy link
Author

raych1 commented Mar 23, 2023

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@msyyc
Copy link

msyyc commented Mar 23, 2023

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@msyyc
Copy link

msyyc commented Mar 23, 2023

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@chunyu3
Copy link

chunyu3 commented Mar 24, 2023

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@MaryGao
Copy link

MaryGao commented Mar 24, 2023

/azp run

@azure-pipelines
Copy link

Pull request contains merge conflicts.

@MaryGao MaryGao changed the base branch from main to new_main March 24, 2023 09:53
@MaryGao
Copy link

MaryGao commented Mar 24, 2023

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@raych1
Copy link
Author

raych1 commented Mar 27, 2023

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@raych1
Copy link
Author

raych1 commented Mar 27, 2023

/azp run automation - sdk

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@raych1
Copy link
Author

raych1 commented Mar 27, 2023

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@raych1
Copy link
Author

raych1 commented Mar 27, 2023

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@MaryGao
Copy link

MaryGao commented Mar 27, 2023

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@MaryGao
Copy link

MaryGao commented Mar 27, 2023

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@raych1
Copy link
Author

raych1 commented Apr 13, 2023

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@raych1
Copy link
Author

raych1 commented Oct 31, 2023

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

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.

6 participants