Skip to content

Sync eng/common directory with azure-sdk-tools for PR 10949 #41690

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 20, 2025

Conversation

azure-sdk
Copy link
Collaborator

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

- Add basic tag support beta or latest
- Add tag validation for ESRP
- Support subpaths from the artifact to scope to just some packages
-
@Copilot Copilot AI review requested due to automatic review settings June 20, 2025 15:34
@azure-sdk azure-sdk requested a review from a team as a code owner June 20, 2025 15:34
@azure-sdk azure-sdk requested a review from weshaggard June 20, 2025 15:34
@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 Jun 20, 2025
Copy link
Contributor

@Copilot 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 the latest changes from azure-sdk-tools, updating script commands and pipeline templates to improve consistency and functionality. Key changes include:

  • Updating the PowerShell script to use the explicit Sort-Object cmdlet.
  • Adding a new parameter (CustomCondition) to the npm authentication step template.
  • Enhancing the npm-publish job with new parameters, refined tag logic, and additional conditions for improved publishing control.

Reviewed Changes

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

File Description
eng/common/scripts/copy-docs-to-blobstorage.ps1 Updated version sorting to use Sort-Object for clearer, consistent PowerShell usage.
eng/common/pipelines/templates/steps/create-authenticated-npmrc.yml Introduced CustomCondition parameter with a default value to govern task execution.
eng/common/pipelines/templates/jobs/npm-publish.yml Modified parameters (Tag, ArtifactSubPath, DeploymentName, Pool, and CustomCondition) and publishing logic, including tag determination and conditional steps for package publishing.
Comments suppressed due to low confidence (2)

eng/common/pipelines/templates/steps/create-authenticated-npmrc.yml:6

  • [nitpick] Consider adding an inline comment that explains the purpose and expected behavior of the CustomCondition parameter to improve maintainability for future updates.
  - name: CustomCondition

eng/common/pipelines/templates/jobs/npm-publish.yml:61

  • [nitpick] Consider adding inline comments to clarify the logic for determining the publishing tag (resetting to 'latest' or 'beta' as appropriate) to aid future maintainers and reviewers.
            $tag = '${{ parameters.Tag }}'

@azure-sdk azure-sdk merged commit 4ddc44c into main Jun 20, 2025
21 checks passed
@azure-sdk azure-sdk deleted the sync-eng/common-UpdateNPMTemplates-10949 branch June 20, 2025 19:30
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.

2 participants