[release/v7.5] Add log grouping to build.psm1 for collapsible GitHub Actions logs#26810
Merged
daxian-dbw merged 1 commit intoPowerShell:release/v7.5from Feb 13, 2026
Conversation
…owerShell#26326) Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: TravisEz13 <[email protected]> Co-authored-by: Travis Plunk <[email protected]> Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR backports log grouping functionality from #26326 to the release/v7.5 branch, improving GitHub Actions CI log readability by adding collapsible sections to build operations. The changes wrap major build phases with Write-LogGroupStart and Write-LogGroupEnd functions, and introduce a new Show-Environment function to standardize environment variable display across workflows.
Changes:
- Added log grouping to major build operations in
build.psm1(clean, restore, build, publish, module restore, configuration generation) - Created
Show-Environmentfunction intools/ci.psm1to consolidate environment display logic - Updated all GitHub Actions workflows and composite actions to use
Show-Environmentinstead of inline commands - Added
buildModuleChangedoutput to CI workflows to trigger builds/tests whenbuild.psm1is modified - Added comprehensive log grouping guidelines documentation
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| build.psm1 | Added log grouping to Start-PSBuild, Install-Dotnet, and Start-PSBootstrap functions for major build phases |
| tools/ci.psm1 | Added Show-Environment function to display environment variables in a log group |
| .github/workflows/windows-packaging-reusable.yml | Replaced inline environment display with Show-Environment function |
| .github/workflows/windows-ci.yml | Added buildModuleChanged output and updated job conditions to include build module changes |
| .github/workflows/macos-ci.yml | Added buildModuleChanged output and updated job conditions (runner change is pre-existing in release/v7.5) |
| .github/workflows/linux-ci.yml | Added buildModuleChanged output and updated job conditions to include build module changes |
| .github/workflows/analyze-reusable.yml | Replaced inline environment display with Show-Environment function |
| .github/instructions/log-grouping-guidelines.instructions.md | Added comprehensive documentation for log grouping best practices |
| .github/actions/test/windows/action.yml | Replaced inline environment display with Show-Environment function |
| .github/actions/test/nix/action.yml | Replaced inline environment display with Show-Environment function |
| .github/actions/test/linux-packaging/action.yml | Replaced inline environment display with Show-Environment function |
| .github/actions/build/ci/action.yml | Replaced inline environment display with Show-Environment function |
SeeminglyScience
approved these changes
Feb 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #26326 to release/v7.5
Triggered by @daxian-dbw on behalf of @app/copilot-swe-agent
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
Adds log grouping to build.psm1 and GitHub workflows for better CI log readability
Customer Impact
Regression
REQUIRED: Check exactly one box.
This is not a regression.
Testing
Successfully backported to 7.4 and 7.6. Verified log groups render correctly in GitHub Actions UI and don't affect build outcomes.
Risk
REQUIRED: Check exactly one box.
Only affects logging output formatting in build scripts and workflows. Does not change build logic or runtime behavior. Changes have been tested in 7.4 and 7.6 branches.
Merge Conflicts
Minor conflict in macos-ci.yml workflow file resolved - context differences in output section