Skip to content

Conversation

@TravisEz13
Copy link
Member

Backport of #26406 to release/v7.6

Triggered by @TravisEz13 on behalf of @daxian-dbw

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)

Updates WCF packages from 4.10.3 to 10.0.0-rc.2.final, which is compatible with .NET 10. Fixes #19238 by removing deprecated packages (System.Private.ServiceModel, System.ServiceModel.Duplex, System.ServiceModel.Security) and updating to newer compatible versions. Also updates BOM manifest for new assembly structure and improves log file capture for GitHub Actions.

Customer Impact

  • Customer reported
  • Found internally

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

Original PR verified that ActiveDirectory module can be correctly imported with the updated WCF packages. Changes to packaging.psm1 improve GitHub Actions compatibility without affecting existing functionality.

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

Medium risk as it updates core dependency packages, but these are build/packaging dependencies. The 10.0.0-rc.2.final WCF packages are backward compatible, shipping facade assemblies for removed packages. Changes were validated in master and the ActiveDirectory module functionality was verified.

Copilot AI review requested due to automatic review settings November 20, 2025 19:26
@TravisEz13 TravisEz13 added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Nov 20, 2025
@TravisEz13 TravisEz13 requested review from a team and jshigetomi as code owners November 20, 2025 19:26
@TravisEz13 TravisEz13 added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Nov 20, 2025
Copy link
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 backports WCF package updates from master (#26406) to the v7.6 release branch. The changes update WCF packages from version 4.10.3 to 10.0.0-rc.2.final to achieve .NET 10 compatibility. The update removes three deprecated package references (System.Private.ServiceModel, System.ServiceModel.Duplex, System.ServiceModel.Security) which are now provided as facade assemblies in the newer packages. Additionally, the BOM manifest is updated to reflect the new assembly structure with granular System.ServiceModel.* resource DLLs replacing the monolithic System.Private.ServiceModel resources. The PR also enhances the packaging module to support GitHub Actions artifact uploads and creates placeholder files for new SBOM manifest requirements.

  • Upgrades WCF packages to 10.0.0-rc.2.final for .NET 10 compatibility
  • Updates BOM manifest to reflect new WCF assembly structure
  • Adds GitHub Actions support for log file capture

Reviewed Changes

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

File Description
src/Microsoft.PowerShell.SDK/Microsoft.PowerShell.SDK.csproj Updates WCF package references from 4.10.3 to 10.0.0-rc.2.final, removes deprecated packages
src/System.Management.Automation/System.Management.Automation.csproj Cleans up commented-out package references
tools/packaging/packaging.psm1 Adds creation of bsi.json and manifest.cat files, implements GitHub Actions log capture
tools/packaging/boms/windows.json Removes System.Private.ServiceModel resource DLLs, adds granular System.ServiceModel.* resource DLLs for all locales

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +5290 to +5292
} elseif ($env:GITHUB_WORKFLOW -and $env:SYSTEM_ARTIFACTSDIRECTORY) {
## In GitHub Actions
$destinationPath = $env:SYSTEM_ARTIFACTSDIRECTORY
Copy link

Copilot AI Nov 20, 2025

Choose a reason for hiding this comment

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

The environment variable check uses $env:SYSTEM_ARTIFACTSDIRECTORY which is an Azure DevOps variable, not a GitHub Actions variable. Based on existing patterns in the codebase (build.psm1:1779, ci.psm1:465), GitHub Actions should check for $env:RUNNER_WORKSPACE instead. This will cause the GitHub Actions path to always evaluate to false since SYSTEM_ARTIFACTSDIRECTORY won't be set in GitHub Actions.

Suggested change
} elseif ($env:GITHUB_WORKFLOW -and $env:SYSTEM_ARTIFACTSDIRECTORY) {
## In GitHub Actions
$destinationPath = $env:SYSTEM_ARTIFACTSDIRECTORY
} elseif ($env:GITHUB_WORKFLOW -and $env:RUNNER_WORKSPACE) {
## In GitHub Actions
$destinationPath = $env:RUNNER_WORKSPACE

Copilot uses AI. Check for mistakes.
Comment on lines 1219 to 1220
{
"Pattern": "Modules\\Microsoft.PowerShell.PSResourceGet\\Microsoft.PowerShell.PSResourceGet.pdb",
Copy link

Copilot AI Nov 20, 2025

Choose a reason for hiding this comment

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

The removal of Modules/ThreadJob/*.psd1, Modules\\ThreadJob\\.signature.p7s, and Modules\\ThreadJob\\ThreadJob.psm1 entries appears unrelated to the WCF package updates described in the PR. These removals should either be explained in the PR description or handled in a separate change to maintain clear change tracking.

Copilot uses AI. Check for mistakes.
@microsoft-github-policy-service microsoft-github-policy-service bot added the Review - Needed The PR is being reviewed label Nov 28, 2025
@microsoft-github-policy-service
Copy link
Contributor

This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days.
Maintainer, please provide feedback and/or mark it as Waiting on Author

@adityapatwardhan adityapatwardhan merged commit 932aea6 into PowerShell:release/v7.6 Dec 5, 2025
52 of 54 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 Review - Needed The PR is being reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants