Skip to content

Conversation

@raych1
Copy link
Member

@raych1 raych1 commented Dec 18, 2025

Resolved an issue of not setting SDK Validation - .NET as required check when generation fails.

Repro PR

Copilot AI review requested due to automatic review settings December 18, 2025 17:38
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modifies how the generateFromTypeSpec flag is determined for .NET SDK automation in spec pull request scenarios. Instead of relying on package-level TypeSpec flags, the implementation now reads this value from the generateOutput.json file produced by the .NET automation script.

Key Changes:

  • Reads generateOutput.json to determine if TypeSpec is used for .NET SDKs in spec-pull-request mode
  • Removes the .NET exclusion from the initial tspconfig.yaml-based TypeSpec detection
  • Adds error handling for missing generateOutput.json file

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 4 comments.

File Description
tools/spec-gen-sdk/src/automation/reportStatus.ts Modified logic to read generateFromTypeSpec value from generateOutput.json for .NET SDKs in spec-pull-request mode; removed .NET exclusion from tspconfig.yaml check; added new imports for readTmpJsonFile, externalError, and getGenerateOutput
tools/spec-gen-sdk/package.json Bumped package version from 0.9.4 to 0.9.5
tools/spec-gen-sdk/package-lock.json Updated lock file to reflect version 0.9.5
tools/spec-gen-sdk/CHANGELOG.md Added entry for version 0.9.5 documenting the generateFromTypeSpec override for .NET
Files not reviewed (1)
  • tools/spec-gen-sdk/package-lock.json: Language not supported

@raych1 raych1 self-assigned this Dec 18, 2025
@raych1 raych1 moved this from 🤔 Triage to 🔬 Dev in PR in Azure SDK EngSys 📆🎇 Dec 18, 2025
@raych1 raych1 merged commit f799f69 into main Dec 18, 2025
6 checks passed
@raych1 raych1 deleted the users/raych1/fix-net-failure branch December 18, 2025 22:32
JiaqiZhang-Dev pushed a commit that referenced this pull request Dec 22, 2025
…13394)

* Override generateFromTypeSpec by the result in generateOutput.json

* Update tools/spec-gen-sdk/src/automation/reportStatus.ts

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants