Skip to content

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

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#25439
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

Copilot AI review requested due to automatic review settings October 15, 2025 23:29
@azure-sdk azure-sdk requested a review from a team as a code owner October 15, 2025 23:29
@azure-sdk azure-sdk requested a review from raych1 October 15, 2025 23:29
@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 syncs the eng/common directory with azure-sdk-tools PR 12478, consolidating package validation logic and improving efficiency by reducing redundant authentication checks.

Key Changes:

  • Consolidated Validate-Package.ps1 functionality into Validate-All-Packages.ps1 to reduce redundant authentication calls
  • Refactored Update-DevOps-Release-WorkItem.ps1 script into a reusable function within DevOps-WorkItem-Helpers.ps1
  • Added 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: consolidated package validation logic from Validate-Package.ps1, added new validation functions, and implemented dual-mode package processing (ArtifactList vs PackageInfoFiles)
eng/common/scripts/Prepare-Release.ps1 Updated to call Update-DevOpsReleaseWorkItem as a function instead of script, improved error handling
eng/common/scripts/Helpers/DevOps-WorkItem-Helpers.ps1 Added authentication check functions with global state management, converted Update-DevOps-Release-WorkItem.ps1 to Update-DevOpsReleaseWorkItem function
eng/common/pipelines/templates/steps/validate-all-packages.yml Enhanced parameter definitions with explicit types and defaults, added PackageInfoFiles parameter support
Comments suppressed due to low confidence (1)

eng/common/scripts/Validate-All-Packages.ps1:1

  • The string "unknown" is used as a magic value in multiple places (lines 156, 157, 145). Consider defining this as a constant at the script level, such as $UNKNOWN_VALUE = \"unknown\", to improve maintainability and make updates easier.
[CmdletBinding()]

Comment thread eng/common/scripts/Validate-All-Packages.ps1 Outdated
Comment thread eng/common/scripts/Validate-All-Packages.ps1
Comment thread eng/common/scripts/Helpers/DevOps-WorkItem-Helpers.ps1
@azure-sdk azure-sdk force-pushed the sync-eng/common-users/raych1/update-validat-pkg-template-12478 branch 7 times, most recently from fedcbde to 8d41d8b Compare October 16, 2025 22:38
@azure-sdk azure-sdk force-pushed the sync-eng/common-users/raych1/update-validat-pkg-template-12478 branch from 8d41d8b to f5df157 Compare October 17, 2025 16:43
@raych1
Copy link
Copy Markdown
Member

raych1 commented Oct 17, 2025

/azp run

@azure-pipelines
Copy link
Copy Markdown

You have several pipelines (over 10) configured to build pull requests in this repository. Specify which pipelines you would like to run by using /azp run [pipelines] command. You can specify multiple pipelines using a comma separated list.

@raych1
Copy link
Copy Markdown
Member

raych1 commented Oct 17, 2025

/azp run go - pullrequest

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@azure-sdk azure-sdk merged commit 3b1e269 into main Oct 20, 2025
11 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