Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[release/v7.4.15] Fix the APIScan pipeline#27282

Merged
SeeminglyScience merged 1 commit into
PowerShell:release/v7.4.15PowerShell/PowerShell:release/v7.4.15from
SeeminglyScience:backport-26016-7.4.15SeeminglyScience/PowerShell:backport-26016-7.4.15Copy head branch name to clipboard
Apr 16, 2026
Merged

[release/v7.4.15] Fix the APIScan pipeline#27282
SeeminglyScience merged 1 commit into
PowerShell:release/v7.4.15PowerShell/PowerShell:release/v7.4.15from
SeeminglyScience:backport-26016-7.4.15SeeminglyScience/PowerShell:backport-26016-7.4.15Copy head branch name to clipboard

Conversation

@SeeminglyScience
Copy link
Copy Markdown
Contributor

Backport of #26016 to release/v7.4.15

Triggered by @SeeminglyScience on behalf of @SeeminglyScience

Original CL Label: CL-BuildPackaging

/cc @PowerShell/powershell-maintainers

Impact

REQUIRED: Choose either Tooling Impact or Customer Impact (or both). At least one checkbox must be selected.

Tooling Impact

  • Required tooling change
  • Optional tooling change (include reasoning)

Fixes the APIScan pipeline: keeps win and win-x64 runtime folders when removing unused runtimes, and stops downloading getfilesiginforedist.dll from Azure blob (the build-produced version works correctly with dotnet-symbols).

Customer Impact

  • Customer reported
  • Found internally

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

The APIScan validation pipeline was run and passed successfully. This change only affects CI/build tooling with no user-facing code changes, so no new automated tests are needed.

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

This is a CI/build pipeline-only fix with no changes to user-facing PowerShell code. The risk of regression is minimal.

1. When removing unused runtimes, keep the `win` and `win-x64` runtime folders.
2. Stop downloading `getfilesiginforedist.dll` from Azure blob. The original `getfilesiginforedist.dll` produced from the build works fine with the symbols retrieved by `dotnet-symbols`.
@SeeminglyScience SeeminglyScience requested a review from a team as a code owner April 16, 2026 14:34
Copilot AI review requested due to automatic review settings April 16, 2026 14:34
@SeeminglyScience SeeminglyScience added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Apr 16, 2026
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

Backport to release/v7.4.15 to repair the APIScan pipeline by keeping required Windows runtimes and removing reliance on downloading getfilesiginforedist.dll from Azure Blob storage.

Changes:

  • Removed the Azure Blob variable group usage and the AzurePowerShell download step for getfilesiginforedist.dll.
  • Adjusted build artifact copy to ensure the destination output directory exists before copying.
  • Updated runtime cleanup logic to preserve win/win-x64 folders while removing other runtimes.

Reviewed changes

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

File Description
.pipelines/templates/compliance/apiscan.yml Removes Azure Blob dependency and updates output copy + runtime pruning for APIScan artifacts.
.pipelines/apiscan-gen-notice.yml Updates APIScan configuration metadata (including versionNumber) and fixes comment indentation.

enabled: true
softwareName: "PowerShell" # Default is repo name
versionNumber: "7.5" # Default is build number
versionNumber: "7.6" # Default is build number
Copy link

Copilot AI Apr 16, 2026

Choose a reason for hiding this comment

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

versionNumber is hard-coded to "7.6", which can easily drift from the branch/version this pipeline is running for (and requires manual updates). Prefer omitting versionNumber to use the default build number, or set it based on a branch/version variable appropriate for this release branch.

Suggested change
versionNumber: "7.6" # Default is build number

Copilot uses AI. Check for mistakes.
# Only key windows runtimes
Get-ChildItem -Path '$(ob_outputDirectory)\runtimes\*' -File -Recurse | Where-Object {$_.FullName -notmatch '.*\/runtimes\/win'} | Foreach-Object {
# Only keep windows runtimes
Write-Verbose -Verbose -Message "Deleting non-win-x64 runtimes ..."
Copy link

Copilot AI Apr 16, 2026

Choose a reason for hiding this comment

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

The verbose message says "Deleting non-win-x64 runtimes ..." but the filter keeps any runtime folder whose path matches \runtimes\win (including win and other win-* RIDs). Update the message (or the filter) so the log accurately reflects what's being deleted/kept.

Suggested change
Write-Verbose -Verbose -Message "Deleting non-win-x64 runtimes ..."
Write-Verbose -Verbose -Message "Deleting non-Windows runtimes ..."

Copilot uses AI. Check for mistakes.
@SeeminglyScience SeeminglyScience changed the title Fix the APIScan pipeline (#26016) [release/v7.4.15] Fix the APIScan pipeline Apr 16, 2026
@SeeminglyScience SeeminglyScience merged commit 19b46f5 into PowerShell:release/v7.4.15 Apr 16, 2026
40 of 41 checks passed
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.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.