azure-sdk-tools: [tsp-client] `tsp-client init` stuck in Pipeline

Symptom

Java SDK has our own code generation pipeline to generate SDK from TypeSpec: https://dev.azure.com/azure-sdk/internal/_apps/hub/ms.vss-build-web.ci-designer-hub?pipelineId=2238&nonce=e6ID6FSUknWJb/xkwTih5Q%3D%3D&branch=main

Recently the pipeline stuck at the last output line and timed out after 60 minutes. Screenshot 2024-06-03 at 14 41 57 Failed Run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3839396&view=logs&j=12f1170f-54f2-53f3-20dd-22fc7dff55f9&t=356bb04c-cb4a-5f04-82ca-d3b102917eba

Last successful run was about two weeks ago: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3761145&view=logs&j=12f1170f-54f2-53f3-20dd-22fc7dff55f9&t=356bb04c-cb4a-5f04-82ca-d3b102917eba

Reproducing the bug

rerun the pipeline and it’ll stuck: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3887788&view=results

Env

vmImage: ubuntu-20.04 python --version: Python 3.10.14 nodejs: 18.20.3

command: npx tsp-client init --debug --tsp-config https://github.com/Azure/azure-rest-api-specs/blob/9df71d5a717e4ed5e6728e7e6ba2fead60f62243/specification/informatica/Informatica.DataManagement/tspconfig.yaml

When run locally on my machine, there’s no stuck. SDK Automation seems fine too… https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3839388&view=logs&j=a8a7a537-82b0-583c-7971-bac70b9822ca&t=37e3947b-3cfb-5d36-86ba-0e22bb7dbc33&l=1222

Expected behavior

We know that this is our own pipeline, though just wondering how the stuck occurred from tsp-client perspective. Would like some insight on the issue. Thanks!

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 25 (8 by maintainers)

Most upvoted comments

@XiaofeiCao thanks for the link. This seems to be something specific to the environment in the pipeline. Could you also make sure to update to the v0.9.1 version of the tool, I just released it and it improved error logging during the compile step, plus makes sure we exit earlier if there are errors during compile. Let me know if it helps at all