Skip to content

Add targeted library filtering to RegenPreview - #11644

Open
Jorge Rangel (jorgerangel-msft) with Copilot wants to merge 4 commits into
mainfrom
copilot/update-regenpreview-local-script
Open

Add targeted library filtering to RegenPreview#11644
Jorge Rangel (jorgerangel-msft) with Copilot wants to merge 4 commits into
mainfrom
copilot/update-regenpreview-local-script

Conversation

Copilot AI commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

RegenPreview.ps1 previously required regenerating all matching libraries or selecting them interactively. This adds direct filtering by library name for faster local validation.

  • Library filtering

    • Add a comma-separated -Libraries parameter.
    • Compose name filtering with -Azure, -Unbranded, -Mgmt, and -Select.
    • Report requested libraries that do not match the active filters.
  • Mode handling

    • Reject -Libraries in OpenAI and Spector modes.
    • Preserve interactively selected subsets during generator planning.
  • Documentation

    • Document supported combinations and usage.
.\RegenPreview.ps1 `
  -SdkLibraryRepoPath "C:\repos\azure-sdk-for-net" `
  -Libraries "Azure.ResourceManager.AppContainers, Azure.Data.AppConfig"

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Co-authored-by: jorgerangel-msft <102122018+jorgerangel-msft@users.noreply.github.com>
@microsoft-github-policy-service microsoft-github-policy-service Bot added the emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp label Aug 12, 2026
Co-authored-by: jorgerangel-msft <102122018+jorgerangel-msft@users.noreply.github.com>
@pkg-pr-new

pkg-pr-new Bot commented Aug 12, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@typespec/http-client-csharp@11644

commit: 547f880

Copilot AI changed the title [WIP] Update RegenPreview local script to allow specified libraries Add targeted library filtering to RegenPreview Aug 12, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a -Libraries filter to the http-client-csharp RegenPreview workflow so developers can regenerate only specific Azure SDK library folders by name, improving local iteration speed and reducing unnecessary regen work.

Changes:

  • Added Filter-LibrariesByName helper and exported it from RegenPreview.psm1.
  • Introduced -Libraries parameter parsing/validation in RegenPreview.ps1 and composed it with existing generator/interactive selection filters.
  • Updated RegenPreview documentation to describe -Libraries usage and constraints.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
packages/http-client-csharp/eng/scripts/RegenPreview.psm1 Adds Filter-LibrariesByName and exports it for use by the main script.
packages/http-client-csharp/eng/scripts/RegenPreview.ps1 Parses -Libraries, validates exclusivity rules, and applies name filtering across selection/analyze/regen flows.
packages/http-client-csharp/eng/scripts/docs/RegenPreview.md Documents the new -Libraries option and updates OpenAI-mode notes/examples.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread packages/http-client-csharp/eng/scripts/RegenPreview.psm1
Co-authored-by: jorgerangel-msft <102122018+jorgerangel-msft@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update RegenPreview Local Script to Allow Specified Library to Regen

3 participants