Skip to content

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

Merged
azure-sdk merged 3 commits into
mainfrom
sync-eng/common-optimize-mgmt-regen-filter-14461
Mar 12, 2026
Merged

Sync eng/common directory with azure-sdk-tools for PR 14461#48383
azure-sdk merged 3 commits into
mainfrom
sync-eng/common-optimize-mgmt-regen-filter-14461

Conversation

@azure-sdk

Copy link
Copy Markdown
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:56
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

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

This PR syncs eng/common changes from azure-sdk-tools PR 14461 by adding support for filtering which SDK directories are included when generating the TypeSpec regeneration matrix.

Changes:

  • Add a DirectoryFilterPattern parameter to New-RegenerateMatrix.ps1 to filter generation directories by name (supports comma-separated patterns).
  • Wire the new DirectoryFilterPattern parameter through archetype-typespec-emitter.yml into the matrix generation step.

Reviewed changes

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

File Description
eng/common/scripts/New-RegenerateMatrix.ps1 Adds directory filtering logic and a guard when the filtered set is empty.
eng/common/pipelines/templates/archetype-typespec-emitter.yml Exposes DirectoryFilterPattern as a template parameter and passes it to the matrix generation script.

Comment thread eng/common/scripts/New-RegenerateMatrix.ps1
Comment thread eng/common/scripts/New-RegenerateMatrix.ps1
Comment thread eng/common/pipelines/templates/archetype-typespec-emitter.yml
@azure-sdk azure-sdk merged commit 0cfa01c into main Mar 12, 2026
21 checks passed
@azure-sdk azure-sdk deleted the sync-eng/common-optimize-mgmt-regen-filter-14461 branch March 12, 2026 19:47
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