Content-Length: 337449 | pFad | http://github.com/Azure/azure-rest-api-specs/pull/34769

5A Support reporting the duplicated SDK config issue in the batch run of spec-gen-sdk pipeline by raych1 · Pull Request #34769 · Azure/azure-rest-api-specs · GitHub
Skip to content

Support reporting the duplicated SDK config issue in the batch run of spec-gen-sdk pipeline #34769

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

Merged
merged 14 commits into from
May 21, 2025

Conversation

raych1
Copy link
Member

@raych1 raych1 commented May 19, 2025

This pull request introduces significant updates to the spec-gen-sdk-runner tool, focusing on improving the handling of specification configurations, enhancing batch processing, and updating the underlying code structure. Key changes include the introduction of a new SpecConfigs type, the addition of a utility function to group specification paths, and updates to batch SDK generation logic to better manage configurations.

Enhancements to Specification Configuration Handling:

  • New SpecConfigs Type: Added a new SpecConfigs type to represent paired readme.md and tspconfig.yaml paths, improving clarity and reducing ambiguity in spec configuration handling (eng/tools/spec-gen-sdk-runner/src/utils.ts).
  • Grouping Spec Configurations: Introduced the groupSpecConfigPaths function to group readme.md and tspconfig.yaml files by service, enabling more structured processing of specs (eng/tools/spec-gen-sdk-runner/src/spec-helpers.ts).

Improvements to Batch SDK Generation:

  • Refactored getSpecPaths: Updated the getSpecPaths function to return an array of SpecConfigs, replacing the previous flat string array approach. This change supports more complex batch run scenarios (eng/tools/spec-gen-sdk-runner/src/command-helpers.ts).
  • Enhanced Logging and Reporting: Added detailed logging for duplicated SDK configurations and updated the markdown report to include a count of such cases (eng/tools/spec-gen-sdk-runner/src/commands.ts). [1] [2]

Code Structure and Test Updates:

  • File Renaming and Refactoring: Renamed change-files.ts to spec-helpers.ts and moved relevant functions for better organization (eng/tools/spec-gen-sdk-runner/src/spec-helpers.ts).
  • Test Snapshot Updates: Updated test snapshots to reflect the new batch processing logic, including changes in the successful specs count (eng/tools/spec-gen-sdk-runner/test/src/__snapshots__/commands.test.ts.snap).

This is a test run

Copy link

openapi-pipeline-app bot commented May 19, 2025

Next Steps to Merge

Next steps that must be taken to merge this PR:
  • ❌ The required check named Protected Files has failed. Refer to the check in the PR's 'Checks' tab for details on how to fix it and consult the aka.ms/ci-fix guide

Copy link

openapi-pipeline-app bot commented May 19, 2025

PR validation pipeline restarted successfully. If there is ApiView generated, it will be updated in this comment.

@raych1 raych1 merged commit 333b795 into main May 21, 2025
94 of 96 checks passed
@raych1 raych1 deleted the user/raych1/batch-run-report-duplicated-config branch May 21, 2025 20:56
@kurtzeborn kurtzeborn moved this from 🔬 Dev in PR to 🎊 Closed in Azure SDK EngSys 🔨🏗️💻🚧 May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/Azure/azure-rest-api-specs/pull/34769

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy