Skip to content

Sync eng/common directory with azure-sdk-tools for PR 14461#45646

Open
azure-sdk wants to merge 3 commits intomainfrom
sync-eng/common-optimize-mgmt-regen-filter-14461
Open

Sync eng/common directory with azure-sdk-tools for PR 14461#45646
azure-sdk wants to merge 3 commits intomainfrom
sync-eng/common-optimize-mgmt-regen-filter-14461

Conversation

@azure-sdk
Copy link
Collaborator

Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#14461 See eng/common workflow

live1206 and others added 3 commits March 11, 2026 09:58
Add DirectoryFilterPattern parameter to archetype-typespec-emitter.yml
and New-RegenerateMatrix.ps1 to allow filtering the regeneration matrix
by package directory name pattern.

This enables azure-sdk-for-net's http-client-csharp-mgmt CI to only
regenerate Azure.ResourceManager* SDKs instead of all TypeSpec SDKs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Address review feedback: wrap filtered results in @() to ensure
reliable .Count, and fail fast with a clear error when no directories
match the filter pattern.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Update DirectoryFilterPattern to split on commas and match any pattern,
so callers can filter to multiple SDK prefixes (e.g.,
'Azure.ResourceManager*,Azure.Provisioning*').

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@azure-sdk azure-sdk requested a review from a team as a code owner March 11, 2026 17:18
@azure-sdk azure-sdk requested review from Copilot and live1206 March 11, 2026 17:18
@azure-sdk azure-sdk added EngSys This issue is impacting the engineering system. Central-EngSys This issue is owned by the Engineering System team. labels Mar 11, 2026
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

Syncs eng/common updates from azure-sdk-tools PR 14461, adding the ability to scope TypeSpec regeneration to a subset of package directories via a directory-name filter.

Changes:

  • Add DirectoryFilterPattern support to New-RegenerateMatrix.ps1 to filter generation directories by wildcard pattern(s).
  • Plumb the new DirectoryFilterPattern parameter through the archetype-typespec-emitter.yml pipeline template.

Reviewed changes

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

File Description
eng/common/scripts/New-RegenerateMatrix.ps1 Adds directory filtering and a guard for empty results when building the regeneration matrix.
eng/common/pipelines/templates/archetype-typespec-emitter.yml Exposes/passes the new DirectoryFilterPattern pipeline parameter into the matrix generation step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Central-EngSys This issue is owned by the Engineering System team. EngSys This issue is impacting the engineering system.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants