Skip to content

[tsp-client] tsp-client doesn't return none-zero return code even if tsp compiler reports error #8815

@msyyc

Description

@msyyc

When I run the following cmd to generate Python SDK, typespec compiler reports error. However, tsp-client doesn't return none zero return code when I call it in subprocess. It brings trouble for automation since pipeline need to check whether the SDK generation is successful or not.

PS D:\dev\azure-sdk-for-python> tsp-client init -c https://github.com/Azure/azure-rest-api-specs/blob/0eb061fdfe4d366139b760f9bdf633088b4262cc/specification/ai/DocumentIntelligence/tspconfig.yaml

Expected behavior:
if tsp-client check that there is error reported, return non zero code.

nit: tsp-client is developed with Typescript while I am not familiar with Typescript. For Python, it is sys.exit(1)

Metadata

Metadata

Labels

TypeSpecIssues or feature requests for tooling to support TypeSpec (Cadl)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions