-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Add Support for Changed Spec Identification in spec-gen-sdk-runner tool #32763
Conversation
Next Steps to MergeNext steps that must be taken to merge this PR:
|
PR validation pipeline restarted successfully. If there is ApiView generated, it will be updated in this comment. |
* @param options - Search configuration options | ||
* @returns Object mapping project directory paths to arrays of related shared library files | ||
*/ | ||
export function searchRelatedTypeSpecProjectBySharedLibrary( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just as an FYI if we end up taking on Jeff directory structure changes there will not be a notion of a shared library.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's right. Regardless of the final version of the new folder layout, our tools will need to be updated to support the changes. This version is to support the current folder layout.
* Bump @azure-tools/typespec-client-generator-core (#32797) Bumps the typespec group with 1 update in the / directory: [@azure-tools/typespec-client-generator-core](https://github.com/Azure/typespec-azure). Updates `@azure-tools/typespec-client-generator-core` from 0.51.2 to 0.51.3 - [Release notes](https://github.com/Azure/typespec-azure/releases) - [Commits](https://github.com/Azure/typespec-azure/compare/@azure-tools/[email protected]...@azure-tools/[email protected]) --- updated-dependencies: - dependency-name: "@azure-tools/typespec-client-generator-core" dependency-type: direct:development update-type: version-update:semver-patch dependency-group: typespec ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Sync eng/common directory with azure-sdk-tools for PR 9902 (#32794) * populate triggeringPaths of each artifactdetails with the owning ci.yml * handle service-directory changes in Get-PrPkgProperties --------- Co-authored-by: Scott Beddall <[email protected]> * [keyvault] Update readme.python.md (#32530) * update oracle linked service (#32750) Co-authored-by: Jingshu918 <[email protected]> * Add Go Data Plane Rules of tspconfig.yaml for TSV (#32779) * manually add * add go dp rules * update --------- Co-authored-by: albertxavier100 <[email protected]> * Update Swagger for New PolicyDefinitions and PolicyTokens API (#32306) * Copy files from stable/2025-01-01 Copied the files in a separate commit. This allows reviewers to easily diff subsequent changes against the previous spec. * Update version to stable/2025-03-01 Updated the API version from stable/2025-01-01 to stable/2025-03-01. * Added tag for 2025-03-01 in readme file * Update readme.md * Add external evaluation enforcement settings contract * Add policy token API contract * Swagger PrettierCheck * Swagger PrettierCheck * Fix JsonSerializationException * Update contract * Swagger LintDiff * Increment to v6 * Revert "Increment to v6" This reverts commit 64631c5. * Update error response * Update duration * Update sdk-suppressions.yaml --------- Co-authored-by: Celina Zhao <[email protected]> Co-authored-by: kazrael2119 <[email protected]> * [Key Vault] docs.microsoft.com -> learn.microsoft.com (#32769) * Add Support for Changed Spec Identification in spec-gen-sdk-runner tool (#32763) * Increase timeout for generation job * Added git op to the wrapper tool * cleaned all files before generation * updated specGenCommand for multiple generation * Used file system access for file search * Combined tsp and readme for same service * Update readme.python.md (#32838) * Update tspconfig.yaml (#32839) * migration accessment, config java sdk (#32840) * Update tspconfig.yaml (#32823) update name of sdk packaging * Update MixedReality API with deprecation message (#32386) * Update MixedReality API * Copy existing API versino spec files * Update new API * Update README with new API version * Add deprecation message for old API versions --------- Co-authored-by: Bianca Tazlauanu <[email protected]> * Add `ListConnectionsInGroup` Api (#31398) * Copy files from stable/2024-01-01 Copied the files in a separate commit. This allows reviewers to easily diff subsequent changes against the previous spec. * Update version to stable/2024-12-01 Updated the API version from stable/2024-01-01 to stable/2024-12-01. * Added tag for 2024-12-01 in readme file * Update API spec and examples to 2024-12-01 * fix pagination according to https://github.com/Azure/azure-api-style-guide/blob/main/openapi-style-guide.md#support-for-pagination * fix(azurearcdata): remove arm-id from sqlServerDatabases (#32825) * fix(azurearcdata): remove arm-id from sqlServerDatabases * SRP 2024-01-01 API Version Swagger - PV2 date-time properties fix (#32835) * Code needs to handle more than one template library (#32853) Co-authored-by: James Suplizio <[email protected]> * Bump @autorest/openapi-to-typespec (#32834) Bumps the openapi-to-typespec group with 1 update in the / directory: [@autorest/openapi-to-typespec](https://github.com/Azure/autorest). Updates `@autorest/openapi-to-typespec` from 0.10.10 to 0.10.11 - [Release notes](https://github.com/Azure/autorest/releases) - [Commits](https://github.com/Azure/autorest/commits) --- updated-dependencies: - dependency-name: "@autorest/openapi-to-typespec" dependency-type: direct:development update-type: version-update:semver-patch dependency-group: openapi-to-typespec ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Dev/mibreset/ccm exports fabric3 (#32444) * Copy files from stable/2024-08-01 Copied the files in a separate commit. This allows reviewers to easily diff subsequent changes against the previous spec. * Update version to preview/2024-10-01-preview Updated the API version from stable/2024-08-01 to preview/2024-10-01-preview. * Added tag for 2024-10-01-preview in readme file * ran prettier on entire directory * made the changes for the fabric version * fixed spelling issue in pricesheet.json * adding 'destination type' as required since Destination is required and needs a required field * Fixed messed up date/time format * Fixed readme file, was missing the list of input files. * Removed required annotation from exportDeliveryDestination. * Include SystemAssigned,UserAssigned (#32826) * [EngSys] npm update (#32857) --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Scott Beddall <[email protected]> Co-authored-by: Yuchao Yan <[email protected]> Co-authored-by: Yao Kou <[email protected]> Co-authored-by: Jingshu918 <[email protected]> Co-authored-by: Wanpeng Li <[email protected]> Co-authored-by: albertxavier100 <[email protected]> Co-authored-by: ccz77 <[email protected]> Co-authored-by: Celina Zhao <[email protected]> Co-authored-by: kazrael2119 <[email protected]> Co-authored-by: McCoy Patiño <[email protected]> Co-authored-by: Ray Chen <[email protected]> Co-authored-by: ChenxiJiang333 <[email protected]> Co-authored-by: Weidong Xu <[email protected]> Co-authored-by: Aditya <[email protected]> Co-authored-by: Bianca Tazlauanu <[email protected]> Co-authored-by: Bianca Tazlauanu <[email protected]> Co-authored-by: yzt <[email protected]> Co-authored-by: Sean Wells <[email protected]> Co-authored-by: Mayuri-Gadsing <[email protected]> Co-authored-by: James Suplizio <[email protected]> Co-authored-by: Micah Bresette <[email protected]> Co-authored-by: nasc17 <[email protected]> Co-authored-by: Mike Harder <[email protected]>
Major changes are to identify the changed specs to pass into the
spec-gen-sdk
tool for SDK generation.[
eng/pipelines/templates/stages/archetype-spec-gen-sdk.yml
]Updated the
parameters
section to includeUse1ESOfficial: false
and increased the job timeout to 2400 minutes.[
eng/tools/spec-gen-sdk-runner/src/change-files.ts
]Introduced a new function
detectChangedSpecConfigFiles
to detect changed specification configuration files in a pull request. This function identifies relatedreadme.md
andtspconfig.yaml
files and logs the changes.[
eng/tools/spec-gen-sdk-runner/src/commands.ts
]Added a new function
generateSdkForSpecPr
to generate SDKs for specification pull requests.[
eng/tools/spec-gen-sdk-runner/src/utils.ts
]Added a new utility function
resetGitRepo
to reset unstaged changes in a git repository.@weshaggard can you review these changes?