Skip to content

Conversation

@jorgerangel-msft
Copy link
Member

This PR adds a regen script to enable local code generation validation of azure libraries.
fixes: #52234

@github-actions github-actions bot added Client This issue is related to a non-management package CodeGen Issues that relate to code generation labels Oct 31, 2025
@jorgerangel-msft jorgerangel-msft changed the title build: add azure regen preview local script Add azure regen preview local script Oct 31, 2025
@jorgerangel-msft jorgerangel-msft marked this pull request as ready for review October 31, 2025 23:03
Copilot AI review requested due to automatic review settings October 31, 2025 23:03
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 introduces a new script system for automating the validation of TypeSpec generator changes by building local generator packages and regenerating libraries in the Azure SDK for .NET repository. The changes provide both comprehensive automation and interactive selection capabilities.

Key changes:

  • Adds comprehensive PowerShell automation for building and packaging local generators with versioned artifacts
  • Implements interactive library selection with support for filtering by generator type (Azure, Unbranded, Management)
  • Includes parallel regeneration with automatic artifact cleanup on success

Reviewed Changes

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

File Description
eng/packages/http-client-csharp/eng/scripts/docs/RegenPreview.md Documentation for the RegenPreview.ps1 script, including usage examples, parameters, and workflow descriptions
eng/packages/http-client-csharp/eng/scripts/RegenPreview.psm1 Module providing helper functions for generator packaging, filtering, and NuGet configuration
eng/packages/http-client-csharp/eng/scripts/RegenPreview.ps1 Main script implementing the validation workflow with library regeneration and artifact management

jorgerangel-msft and others added 2 commits October 31, 2025 18:08
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jorgerangel-msft jorgerangel-msft merged commit 36beafe into Azure:main Nov 3, 2025
7 checks passed
@jorgerangel-msft jorgerangel-msft deleted the add-regenpreview-script branch November 3, 2025 18:25
nick863 pushed a commit that referenced this pull request Nov 5, 2025
* build: add azure regen preview local script

* Update eng/packages/http-client-csharp/eng/scripts/RegenPreview.ps1

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* nits

* fix text

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Client This issue is related to a non-management package CodeGen Issues that relate to code generation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create Regen Preview Pipeline or Script for Both Branded and Unbranded Libraries

2 participants