KEMBAR78
Update pipeline to use CFS when using Install-Module by jshigetomi · Pull Request #25123 · PowerShell/PowerShell · GitHub
Skip to content

Conversation

@jshigetomi
Copy link
Collaborator

@jshigetomi jshigetomi commented Mar 4, 2025

  • Add tool to download modules from CFS and change download methods in pipeline to use the tool
  • Fix Andy's suggestions
  • Update binary pipeline to new name

PR Summary

This pull request includes several updates to the pipeline configuration files and the addition of a new script for installing PowerShell resources. The main changes focus on updating the installation method for PowerShell modules and modifying the source of a coordinated build pipeline.

Changes to installation methods:

  • .pipelines/templates/checkAzureContainer.yml: Replaced inline PowerShell commands with ./tools/installPSResource.ps1 script for installing PowerShell modules.
  • .pipelines/templates/compliance/apiscan.yml: Replaced inline PowerShell commands with ./tools/installPSResource.ps1 script for installing PowerShell modules.
  • .pipelines/templates/compliance/generateNotice.yml: Replaced inline PowerShell commands with ./tools/installPSResource.ps1 script for installing PowerShell modules.
  • .pipelines/templates/release-MakeBlobPublic.yml, .pipelines/templates/release-create-msix.yml, .pipelines/templates/release-upload-buildinfo.yml, .pipelines/templates/release-validate-packagenames.yml, .pipelines/templates/uploadToAzure.yml: Replaced inline PowerShell commands with ./tools/installPSResource.ps1 script for installing PowerShell modules. [1] [2] [3] [4] [5] [6]

Changes to build pipeline source:

Addition of new script:

  • tools/installPSResources.ps1: Added a new script for installing PowerShell resources from specified repositories, including handling for a specific repository bug.

PR Context

PR Checklist

@jshigetomi
Copy link
Collaborator Author

/azp run

@jshigetomi jshigetomi marked this pull request as ready for review March 4, 2025 20:48
@jshigetomi jshigetomi requested a review from a team as a code owner March 4, 2025 20:48
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@andyleejordan andyleejordan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the explanation for all the Uninstall-AzureRm calls?

Get-PackageProvider -Name NuGet -ForceBootstrap
Install-Module -Name Az.Storage -Verbose -Force -AllowClobber
./tools/installPSResource.ps1 -PSRepository CFS
Uninstall-AzureRm -Verbose
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we confirmed we still need to run Uninstall-AzureRm, and specifically after installing Az.Accounts and Az.Storage?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TravisEz13 Can you explain why we need to do this?

@microsoft-github-policy-service microsoft-github-policy-service bot added the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Mar 5, 2025
jshigetomi and others added 3 commits March 5, 2025 10:28
Co-authored-by: Andy Jordan <2226434+andyleejordan@users.noreply.github.com>
Co-authored-by: Andy Jordan <2226434+andyleejordan@users.noreply.github.com>
Co-authored-by: Andy Jordan <2226434+andyleejordan@users.noreply.github.com>
@microsoft-github-policy-service microsoft-github-policy-service bot removed the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Mar 5, 2025
jshigetomi and others added 5 commits March 5, 2025 10:31
Co-authored-by: Andy Jordan <2226434+andyleejordan@users.noreply.github.com>
Co-authored-by: Andy Jordan <2226434+andyleejordan@users.noreply.github.com>
Co-authored-by: Andy Jordan <2226434+andyleejordan@users.noreply.github.com>
@TravisEz13 TravisEz13 added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Mar 11, 2025
Copy link
Member

@andyleejordan andyleejordan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know the other PR is what did this, and this is just backporting, but can I say I love seeing a PR that deletes 100+ lines of code from a pipeline? 🥳

@microsoft-github-policy-service microsoft-github-policy-service bot added the Review - Needed The PR is being reviewed label Mar 20, 2025
@jshigetomi jshigetomi closed this Apr 28, 2025
@microsoft-github-policy-service
Copy link
Contributor

microsoft-github-policy-service bot commented Apr 28, 2025

📣 Hey @@jshigetomi, how did we do? We would love to hear your feedback with the link below! 🗣️

🔗 https://aka.ms/PSRepoFeedback

@microsoft-github-policy-service microsoft-github-policy-service bot removed the Review - Needed The PR is being reviewed label Apr 28, 2025
@jshigetomi jshigetomi deleted the bringCFSChanges branch June 17, 2025 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants