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

[MONITOR-SPEC-PR] Fail to generate sdk #9556

Open
jianingwang123 opened this issue Dec 18, 2024 · 1 comment
Open

[MONITOR-SPEC-PR] Fail to generate sdk #9556

jianingwang123 opened this issue Dec 18, 2024 · 1 comment

Comments

@jianingwang123
Copy link

jianingwang123 commented Dec 18, 2024

Description:
Python:

03:27:04.337 cmdout 	[automation_generate.sh] /mnt/vss/_work/1/s/azure-sdk-for-python/sdk/liftrpinecone/azure-mgmt-pineconevectordb/TempTypeSpecFiles/Pinecone.VectorDb.Management/main.tsp:6:1 - error import-not-found: Couldn't resolve import "@azure-tools/typespec-liftr-base"
03:27:04.337 cmdout 	[automation_generate.sh] /mnt/vss/_work/1/s/azure-sdk-for-python/sdk/liftrpinecone/azure-mgmt-pineconevectordb/TempTypeSpecFiles/Pinecone.VectorDb.Management/main.tsp:29:18 - error invalid-ref: Unknown identifier LiftrBase
03:27:04.337 cmdout 	[automation_generate.sh] /mnt/vss/_work/1/s/azure-sdk-for-python/sdk/liftrpinecone/azure-mgmt-pineconevectordb/TempTypeSpecFiles/Pinecone.VectorDb.Management/main.tsp:13:7 - error invalid-ref: Unknown identifier LiftrBase
03:27:04.337 cmdout 	[automation_generate.sh] /mnt/vss/_work/1/s/azure-sdk-for-python/sdk/liftrpinecone/azure-mgmt-pineconevectordb/TempTypeSpecFiles/Pinecone.VectorDb.Management/main.tsp:45:33 - error invalid-ref: Unknown identifier BaseResourceProperties
03:27:04.337 cmdout 	[automation_generate.sh] /mnt/vss/_work/1/s/azure-sdk-for-python/sdk/liftrpinecone/azure-mgmt-pineconevectordb/TempTypeSpecFiles/Pinecone.VectorDb.Management/main.tsp:45:33 - error is-model: Model `is` must specify another model.
03:27:04.338 cmdout 	[automation_generate.sh] /mnt/vss/_work/1/s/azure-sdk-for-python/sdk/liftrpinecone/azure-mgmt-pineconevectordb/TempTypeSpecFiles/Pinecone.VectorDb.Management/main.tsp:50:28 - error invalid-ref: Unknown identifier SingleSignOnPropertiesV2
03:27:04.338 cmdout 	[automation_generate.sh] Example of how to compile using the tsp commandline. NOTE: tsp-client does NOT directly run this command, results may vary:
03:27:04.338 cmdout 	[automation_generate.sh]         npx tsp compile /mnt/vss/_work/1/s/azure-sdk-for-python/sdk/liftrpinecone/azure-mgmt-pineconevectordb/TempTypeSpecFiles/Pinecone.VectorDb.Management/client.tsp --emit @azure-tools/typespec-python --option package-dir=azure-mgmt-pineconevectordb --option package-name=azure-mgmt-pineconevectordb --option flavor=azure --option generate-test=true --option generate-sample=true --option emitter-output-dir=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk/liftrpinecone/azure-mgmt-pineconevectordb
03:27:04.338 cmdout 	[automation_generate.sh]         
03:27:04.338 cmdout 	[automation_generate.sh] Cleaning up temp directory
03:27:04.338 cmdout 	[automation_generate.sh] Failed to generate client
03:27:04.338 cmdout 	[automation_generate.sh] 2024-12-13 03:27:04 [ERROR] fail to generate sdk for specification/liftrpinecone/Pinecone.VectorDb.Management: Command 'tsp-client init --tsp-config /mnt/vss/_work/1/s/azure-rest-api-specs/specification/liftrpinecone/Pinecone.VectorDb.Management --local-spec-repo /mnt/vss/_work/1/s/azure-rest-api-specs/specification/liftrpinecone/Pinecone.VectorDb.Management --commit eee482fbc63bcb153f73a341703cec75dd3890a7 --repo Azure/azure-rest-api-specs --debug' returned non-zero exit status 1.
03:27:04.339 cmdout 	[automation_generate.sh] 2024-12-13 03:27:04 [ERROR] ======================================= Whant Can I do (begin) ========================================================================
03:27:04.339 cmdout 	[automation_generate.sh] 2024-12-13 03:27:04 [ERROR] Fail to generate sdk for specification/liftrpinecone/Pinecone.VectorDb.Management. If you are from service team, please first check if the failure happens only to Python automation, or for all SDK automations. 
03:27:04.339 cmdout 	[automation_generate.sh] 2024-12-13 03:27:04 [ERROR] If it happens for all SDK automations, please double check your Swagger / Typespec, and check whether there is error in ModelValidation and LintDiff. 
03:27:04.339 cmdout 	[automation_generate.sh] 2024-12-13 03:27:04 [ERROR] If it happens to Python alone, you can open an issue to https://github.com/Azure/autorest.python/issues. Please include the link of this Pull Request in the issue.
03:27:04.339 cmdout 	[automation_generate.sh] 2024-12-13 03:27:04 [ERROR] ======================================= Whant Can I do (end) =========================================================================

link: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4408217&view=logs&j=b7f68bce-9df8-5468-1c9f-74766cfc9a39&t=25fc8ae6-51ed-58e2-b772-f4d054412fe3&l=824

.Net:

03:29:05.756 cmderr 	[.Net] Diagnostics were reported during compilation. Use the `--debug` flag to see if there is warning diagnostic output.
03:29:05.757 cmderr 	[.Net] /mnt/vss/_work/1/s/azure-sdk-for-net/sdk/liftrpinecone/Azure.ResourceManager.PineconeVectorDB/TempTypeSpecFiles/Pinecone.VectorDb.Management/main.tsp:6:1 - error import-not-found: Couldn't resolve import "@azure-tools/typespec-liftr-base"
03:29:05.758 cmderr 	[.Net] /mnt/vss/_work/1/s/azure-sdk-for-net/sdk/liftrpinecone/Azure.ResourceManager.PineconeVectorDB/TempTypeSpecFiles/Pinecone.VectorDb.Management/main.tsp:29:18 - error invalid-ref: Unknown identifier LiftrBase
03:29:05.758 cmderr 	[.Net] /mnt/vss/_work/1/s/azure-sdk-for-net/sdk/liftrpinecone/Azure.ResourceManager.PineconeVectorDB/TempTypeSpecFiles/Pinecone.VectorDb.Management/main.tsp:13:7 - error invalid-ref: Unknown identifier LiftrBase
03:29:05.758 cmderr 	[.Net] /mnt/vss/_work/1/s/azure-sdk-for-net/sdk/liftrpinecone/Azure.ResourceManager.PineconeVectorDB/TempTypeSpecFiles/Pinecone.VectorDb.Management/main.tsp:45:33 - error invalid-ref: Unknown identifier BaseResourceProperties
03:29:05.758 cmderr 	[.Net] /mnt/vss/_work/1/s/azure-sdk-for-net/sdk/liftrpinecone/Azure.ResourceManager.PineconeVectorDB/TempTypeSpecFiles/Pinecone.VectorDb.Management/main.tsp:45:33 - error is-model: Model `is` must specify another model.
03:29:05.758 cmderr 	[.Net] /mnt/vss/_work/1/s/azure-sdk-for-net/sdk/liftrpinecone/Azure.ResourceManager.PineconeVectorDB/TempTypeSpecFiles/Pinecone.VectorDb.Management/main.tsp:50:28 - error invalid-ref: Unknown identifier SingleSignOnPropertiesV2
03:29:05.881 cmderr 	[.Net] Failed to generate client
03:29:05.898 cmderr 	[.Net] npm notice
03:29:05.898 cmderr 	[.Net] npm notice New minor version of npm available! 10.8.2 -> 10.9.2
03:29:05.898 cmderr 	[.Net] npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.9.2
03:29:05.898 cmderr 	[.Net] npm notice To update run: npm install -g npm@10.9.2
03:29:05.898 cmderr 	[.Net] npm notice
03:29:06.065 cmderr E 	[.Net] Write-Error: [ERROR] Failed to generate typespec project:/mnt/vss/_work/1/s/azure-rest-api-specs/specification/liftrpinecone/Pinecone.VectorDb.Management. Exit code: 1.
03:29:06.158 cmderr E 	[.Net] Write-Error: [ERROR] Please review the detail errors for potential fixes.
03:29:06.260 cmderr E 	[.Net] Write-Error: [ERROR] If the issue persists, contact the DotNet language support channel at https://aka.ms/azsdk/donet-teams-channel and include this spec pull request.
03:29:06.418 error C 	Script return with result [failed] code [1] signal [null] cwd [azure-sdk-for-net]: pwsh ./eng/scripts/Invoke-GenerateAndBuildV2.ps1

link: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4408217&view=logs&j=03afb3bb-7296-55ad-aa07-ceee610c73b2&t=0f320c29-1c90-5304-d2d3-c58a6bb76437&l=184

@wanlwanl
Copy link
Member

@jianingwang123 it's a known issue that we don't support now, service team need to update the sdk repo to add this package. e.g. Azure/azure-sdk-for-net#47444

But it get removed by auto pr. @archerzz do you know how to avoid this? Azure/azure-sdk-for-net@68fcfb6

@wanlwanl wanlwanl assigned JackTn and raych1 and unassigned jianingwang123 Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

4 participants