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

[SDK Automation - JS] Build error reported without clear output #8058

Closed
Tracked by #8039
raych1 opened this issue Apr 10, 2024 · 0 comments
Closed
Tracked by #8039

[SDK Automation - JS] Build error reported without clear output #8058

raych1 opened this issue Apr 10, 2024 · 0 comments
Assignees

Comments

@raych1
Copy link
Member

raych1 commented Apr 10, 2024

This issue was reported by the spec PR author. The SDK generation CI check failed in build step and the log says "cannot find module'xxx'". We would expect the log contains more information, such as "what are the next steps" or "how to fix this build errors".

08:36:55.476 cmdout 	[automation_generate.sh] src/rest/pollingHelper.ts(12,8): error TS2307: Cannot find module '@azure/core-lro' or its corresponding type declarations.
08:36:55.476 cmdout 	[automation_generate.sh] src/rest/pollingHelper.ts(50,29): error TS7006: Parameter 'path' implicitly has an 'any' type.
08:36:55.476 cmdout 	[automation_generate.sh] rush build (2 minutes 12.3 seconds)
08:36:55.476 cmderr 	[automation_generate.sh] Operations failed.
08:36:55.483 cmderr 	[automation_generate.sh] [ERROR] Error:
08:36:55.483 cmderr 	[automation_generate.sh] [ERROR] An error occurred while run build for typespec project: "specification/cognitiveservices/OpenAI.Inference":
08:36:55.484 cmderr 	[automation_generate.sh] [ERROR] Err: Error: Command failed: rush build -t @azure/openai
08:36:55.484 cmderr 	[automation_generate.sh] [ERROR] Stderr: "null"
08:36:55.484 cmderr 	[automation_generate.sh] [ERROR] Stdout: "null"
08:36:55.484 cmderr 	[automation_generate.sh] [ERROR] ErrorStack: "Error: Command failed: rush build -t @azure/openai
08:36:55.484 cmderr 	[automation_generate.sh] [ERROR]     at checkExecSyncError (node:child_process:885:11)
08:36:55.484 cmderr 	[automation_generate.sh] [ERROR]     at Object.execSync (node:child_process:957:15)
08:36:55.484 cmderr 	[automation_generate.sh] [ERROR]     at Object.<anonymous> (/home/cloudtest/.nvm/versions/node/v18.15.0/lib/node_modules/@azure-tools/js-sdk-release-tools/dist/llc/generateRLCInPipeline/generateRLCInPipeline.js:209:29)
08:36:55.484 cmderr 	[automation_generate.sh] [ERROR]     at Generator.next (<anonymous>)
08:36:55.484 cmderr 	[automation_generate.sh] [ERROR]     at fulfilled (/home/cloudtest/.nvm/versions/node/v18.15.0/lib/node_modules/@azure-tools/js-sdk-release-tools/node_modules/tslib/tslib.js:112:62)
08:36:55.484 cmderr 	[automation_generate.sh] [ERROR]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
08:36:55.485 cmdout 	[automation_generate.sh] rename /mnt/vss/_work/1/s/node_modules_backup to /mnt/vss/_work/1/s/node_modules
08:36:55.514 info 	Script return with result [succeeded] code [0] signal [null] cwd [azure-sdk-for-js]: sh .scripts/automation_generate.sh

@MaryGao

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

3 participants