Search tsp rc - #38841
Merged
Merged
Azure Pipelines / SDK Validation - Go
failed
Dec 12, 2025 in 3m 51s
Build #20251212.53 failed
Annotations
Check failure on line 951 in Build log
azure-pipelines / SDK Validation - Go
Build log #L951
Errors occurred while generating SDK from specification/search. Follow the steps at https://aka.ms/azsdk/sdk-automation-faq#how-to-view-the-detailed-sdk-generation-errors to view detailed errors.
[ERROR] total 1 error(s):
[ERROR] failed to execute `tsp-client --prefix /mnt/vss/_work/1/s/azure-sdk-for-go/eng/common/tsp-client exec --no -- tsp-client init --update-if-exists --tsp-config /mnt/vss/_work/1/s/azure-rest-api-specs/specification/search/data-plane/Search/tspconfig.yaml --commit ce578a212a75fbdf13defdc8d05511bfd92185b1 --repo Azure/azure-rest-api-specs --local-spec-repo /mnt/vss/_work/1/s/azure-rest-api-specs/specification/search/data-plane/Search --emitter-options module-version=0.1.0 --debug`
[ERROR] Please update your tspconfig.yaml to include the "emitter-output-dir" option under the "@azure-tools/typespec-go" emitter options. "package-dir" support is deprecated and will be removed in future versions.
[ERROR] Error reading tsp-location.yaml: Error: ENOENT: no such file or directory, stat '/mnt/vss/_work/1/s/azure-sdk-for-go/sdk/search/azsearchdocuments/azsearchdocuments/tsp-location.yaml'
[ERROR] Diagnostics were reported during compilation. Use the `--debug` flag to see if there is warning diagnostic output.
[ERROR] /mnt/vss/_work/1/s/azure-sdk-for-go/sdk/search/azsearchdocuments/azsearchdocuments/TempTypeSpecFiles/Search/models-service.tsp:3681:3 - error @azure-tools/typespec-go/UnsupportedTsp: The emitter encountered a TypeSpec definition that is currently not supported.
[ERROR] Error: unsupported type kind string for discriminator property odataType
[ERROR] at typeAdapter.getDiscriminatorLiteral (file:///mnt/vss/_work/1/s/azure-sdk-for-go/sdk/search/azsearchdocuments/azsearchdocuments/TempTypeSpecFiles/node_modules/@azure-tools/typespec-go/src/tcgcadapter/types.ts:573:15)
[ERROR] at typeAdapter.getModelField (file:///mnt/vss/_work/1/s/azure-sdk-for-go/sdk/search/azsearchdocuments/azsearchdocuments/TempTypeSpecFiles/node_modules/@azure-tools/typespec-go/src/tcgcadapter/types.ts:608:33)
[ERROR] at typeAdapter.adaptTypes (file:///mnt/vss/_work/1/s/azure-sdk-for-go/sdk/search/azsearchdocuments/azsearchdocuments/TempTypeSpecFiles/node_modules/@azure-tools/typespec-go/src/tcgcadapter/types.ts:106:28)
[ERROR] at tcgcToGoCodeModel (file:///mnt/vss/_work/1/s/azure-sdk-for-go/sdk/search/azsearchdocuments/azsearchdocuments/TempTypeSpecFiles/node_modules/@azure-tools/typespec-go/src/tcgcadapter/adapter.ts:87:6)
[ERROR] Example of how to compile using the tsp commandline. NOTE: tsp-client does NOT directly run this command, results may vary:
[ERROR] npx tsp compile /mnt/vss/_work/1/s/azure-sdk-for-go/sdk/search/azsearchdocuments/azsearchdocuments/TempTypeSpecFiles/Search/client.tsp --emit @azure-tools/typespec-go --option service-dir=sdk/search/azsearchdocuments --option package-dir=azsearchdocuments --option module=github.com/Azure/azure-sdk-for-go/sdk/search/azsearchdocuments/azsearchdocuments --option fix-const-stuttering=true --option flavor=azure --option generate-samples=true --option generate-fakes=true --option head-as-boolean=true --option inject-spans=true --option emitter-output-dir=/mnt/vss/_work/1/s/azure-sdk-for-go/sdk/search/azsearchdocuments/azsearchdocuments --option module-version=0.1.0
[ERROR] Failed to generate client
[ERROR] Refer to the detail errors for potential fixes.
[ERROR] If the issue persists, contact the Go language support channel at https://aka.ms/azsdk/go-lang-teams-channel and include this spec pull request.
Refer to the inner logs for details or report this issue through https://aka.ms/azsdk/support/specreview-channel.
ErrorStack: Error: [EXT-ERR] Failed to read generateOutput.json. Please check if the generate script is configured correctly.
Loading