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

Go Automation Tool: tsp-client init call fails for All TypeSpec Project #9833

Open
raych1 opened this issue Feb 14, 2025 · 2 comments
Open
Assignees
Labels
Automation Tool Mgmt-EngSys Engineering System (Management Plane Specific)

Comments

@raych1
Copy link
Member

raych1 commented Feb 14, 2025

This error happens for all the typespec project in main branch of public spec repo. Refer to this batch run result for all type specs. Part of the log is as follows:

##[error][ERROR] total 1 error(s): 
##[error][ERROR] failed to execute `tsp-client init --tsp-config /mnt/vss/_work/1/s/azure-rest-api-specs/specification/azurefleet/AzureFleet.Management/tspconfig.yaml --commit d01682bc9168856780065eac0d459c3bb6c6843d --repo azure/azure-rest-api-specs --local-spec-repo /mnt/vss/_work/1/s/azure-rest-api-specs/specification/azurefleet/AzureFleet.Management --emitter-options module-version=0.1.0 --debug` 

@raych1 raych1 added Automation Tool Mgmt-EngSys Engineering System (Management Plane Specific) labels Feb 14, 2025
@raych1 raych1 changed the title Failure in tsp-client init call for all the type specs tsp-client Initialization Failure Across All TypeSpec Projects Feb 14, 2025
@raych1 raych1 changed the title tsp-client Initialization Failure Across All TypeSpec Projects Go Automation Tool: tsp-client init call fails for All TypeSpec Project Feb 14, 2025
@tadelesh tadelesh assigned JiaqiZhang-Dev and unassigned tadelesh Feb 14, 2025
@JiaqiZhang-Dev
Copy link
Member

Hi @raych1

Go's automation failures are mainly caused by the lack of emitter option in tspconfig.yaml, go's generator has ignored this error. This error may be reported by spec-gen-sdk, could you please help check if this error can be ignore in spec-gen-sdk?

Image
Image

@raych1
Copy link
Member Author

raych1 commented Feb 20, 2025

@JiaqiZhang-Dev as I mentioned in the email, I will introduce a separate category SDK configuration is not enabled for cases where the SDK configuration is not enabled in either the tspconfig.yaml or readme.md files. In addition, I will turn the error into warnings. You can ignore this kind of failures and work on other failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Automation Tool Mgmt-EngSys Engineering System (Management Plane Specific)
Projects
Status: Backlog
Development

No branches or pull requests

3 participants