Skip to content

[release/v7.5.6] Add comment-based help documentation to build.psm1 functions#27221

Merged
daxian-dbw merged 1 commit intoPowerShell:release/v7.5.6from
daxian-dbw:backport/release/v7.5.6/27122-1216cb7be
Apr 9, 2026
Merged

[release/v7.5.6] Add comment-based help documentation to build.psm1 functions#27221
daxian-dbw merged 1 commit intoPowerShell:release/v7.5.6from
daxian-dbw:backport/release/v7.5.6/27122-1216cb7be

Conversation

@daxian-dbw
Copy link
Copy Markdown
Member

Backport of #27122 to release/v7.5.6

Triggered by @daxian-dbw on behalf of @powercode

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)

Adds comment-based help to build.psm1 functions used by contributors and release engineers. This improves discoverability and maintenance of build tooling on the release branch but is not required for build correctness.

Customer Impact

  • Customer reported
  • Found internally

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

Cherry-pick applied cleanly to release/v7.5.6. This backport is documentation-only within build.psm1, so verification is limited to successful application and backport PR CI on the release branch.

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

Low risk because the change only adds documentation comments to build tooling functions and does not alter build logic or execution flow.

@daxian-dbw daxian-dbw requested a review from a team as a code owner April 9, 2026 06:14
Copilot AI review requested due to automatic review settings April 9, 2026 06:14
@daxian-dbw daxian-dbw added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Apr 9, 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.5.6 of comment-based help (CBH) additions in build.psm1 to improve discoverability of build/test tooling functions for contributors and release engineers.

Changes:

  • Added CBH blocks (.SYNOPSIS, .DESCRIPTION, .PARAMETER, .OUTPUTS) to many functions in build.psm1.
  • Removed/replaced an older inline comment block in ConvertFrom-PesterLog with CBH-style help.
  • Includes a couple of small functional fixes mixed into the documentation update (notably in Start-PSPester and Start-UnelevatedProcess).

Comment thread build.psm1
Comment on lines 1749 to 1753

if($IncludeCommonTests.IsPresent)
{
$path = += "$PSScriptRoot/test/common"
$path += "$PSScriptRoot/test/common"
}
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

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

PR description/testing notes say this backport is documentation-only, but this hunk contains a functional fix (changing an invalid $path = += ... to $Path += ...). There is also another logic change later in Start-UnelevatedProcess (arm64 check). Please update the PR description/testing section to reflect these functional changes (or split them into a separate PR) so release-branch risk/testing expectations are accurate.

Copilot uses AI. Check for mistakes.
Comment thread build.psm1
.PARAMETER Configuration
The build configuration: Debug (default), Release, CodeCoverage, or StaticAnalysis.
.PARAMETER Framework
The target .NET framework moniker. Defaults to 'net11.0'.
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

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

The new comment-based help for New-PSOptions says the Framework parameter defaults to 'net11.0', but the implementation defaults to 'net9.0' (and validates only net9.0). Please update the help text so it matches the actual default/allowed framework value.

Suggested change
The target .NET framework moniker. Defaults to 'net11.0'.
The target .NET framework moniker. Defaults to 'net9.0'.

Copilot uses AI. Check for mistakes.
Comment thread build.psm1
.PARAMETER PSModuleRestore
Whether Gallery modules should be restored to the build output.
.PARAMETER Framework
The target .NET framework moniker, e.g. 'net11.0'.
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

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

The new comment-based help for New-PSOptionsObject uses 'net11.0' as the example framework moniker, but the build scripts currently use net9.0. Please update the example so the help stays accurate for contributors following it.

Suggested change
The target .NET framework moniker, e.g. 'net11.0'.
The target .NET framework moniker, e.g. 'net9.0'.

Copilot uses AI. Check for mistakes.
@daxian-dbw daxian-dbw merged commit e033a3b into PowerShell:release/v7.5.6 Apr 9, 2026
50 of 52 checks passed
@daxian-dbw daxian-dbw deleted the backport/release/v7.5.6/27122-1216cb7be branch April 9, 2026 17:15
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