Skip to content

Sync eng/common directory with azure-sdk-tools for PR 12478#36239

Merged
azure-sdk merged 11 commits intomainfrom
sync-eng/common-users/raych1/update-validat-pkg-template-12478
Oct 20, 2025
Merged

Sync eng/common directory with azure-sdk-tools for PR 12478#36239
azure-sdk merged 11 commits intomainfrom
sync-eng/common-users/raych1/update-validat-pkg-template-12478

Conversation

@azure-sdk
Copy link
Copy Markdown
Collaborator

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

@azure-sdk azure-sdk requested a review from a team as a code owner October 15, 2025 23:30
@azure-sdk azure-sdk requested review from Copilot and raych1 October 15, 2025 23:30
@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 Oct 15, 2025
Copy link
Copy Markdown
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 synchronizes the eng/common directory with changes from azure-sdk-tools PR #12478. The primary purpose is to refactor package validation and DevOps work item management scripts by consolidating functionality and eliminating redundant script calls.

Key Changes:

  • Consolidates Validate-Package.ps1 logic into Validate-All-Packages.ps1 as functions to avoid redundant authentication/validation checks
  • Converts Update-DevOps-Release-WorkItem.ps1 into a reusable function in DevOps-WorkItem-Helpers.ps1
  • Adds support for direct PackageInfoFiles parameter alongside existing ArtifactList approach

Reviewed Changes

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

File Description
eng/common/scripts/Validate-All-Packages.ps1 Major refactoring: replaces script invocations with function calls, adds inline validation functions (ValidateChangeLog, VerifyAPIReview, IsVersionShipped, CreateUpdatePackageWorkItem), and adds support for PackageInfoFiles parameter
eng/common/scripts/Prepare-Release.ps1 Updates to call Update-DevOpsReleaseWorkItem as a function instead of external script, changes error handling from $LASTEXITCODE to direct result check
eng/common/scripts/Helpers/DevOps-WorkItem-Helpers.ps1 Adds global state management for authentication checks, implements CheckAzLoginAndDevOpsExtensionInstall and Update-DevOpsReleaseWorkItem functions to centralize DevOps interaction logic
eng/common/pipelines/templates/steps/validate-all-packages.yml Converts parameters to typed format and adds PackageInfoFiles parameter support

Comment thread eng/common/scripts/Validate-All-Packages.ps1 Outdated
Comment thread eng/common/scripts/Validate-All-Packages.ps1
Comment thread eng/common/scripts/Validate-All-Packages.ps1
@azure-sdk azure-sdk force-pushed the sync-eng/common-users/raych1/update-validat-pkg-template-12478 branch 7 times, most recently from 69b5f90 to a30bce9 Compare October 16, 2025 22:39
@azure-sdk azure-sdk force-pushed the sync-eng/common-users/raych1/update-validat-pkg-template-12478 branch from a30bce9 to 5180f4e Compare October 17, 2025 16:45
@azure-sdk azure-sdk merged commit c2fd622 into main Oct 20, 2025
13 checks passed
@azure-sdk azure-sdk deleted the sync-eng/common-users/raych1/update-validat-pkg-template-12478 branch October 20, 2025 16:49
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.

3 participants