Skip to content

[release/v7.5] Correct the package name for .deb and .rpm packages#26964

Merged
adityapatwardhan merged 1 commit intoPowerShell:release/v7.5from
adityapatwardhan:backport/release/v7.5/26877-7cdcd5893
Mar 9, 2026
Merged

[release/v7.5] Correct the package name for .deb and .rpm packages#26964
adityapatwardhan merged 1 commit intoPowerShell:release/v7.5from
adityapatwardhan:backport/release/v7.5/26877-7cdcd5893

Conversation

@adityapatwardhan
Copy link
Member

Backport of #26877 to release/v7.5

Triggered by @adityapatwardhan 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)

Corrects the package name for .deb and .rpm packages to use the proper '-preview' channel suffix for preview builds, matching existing names on packages.microsoft.com.

Customer Impact

  • Customer reported
  • Found internally

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

Clean cherry-pick with no conflicts. Existing packaging CI tests cover the .deb/.rpm name correction. Verified by the original PR's merge to master and successful backports to v7.6 (#26884) and v7.4 (#26954).

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

This is a straightforward cherry-pick of a packaging name fix that has already been successfully backported to both v7.6 and v7.4 without issues. The change corrects .deb and .rpm package naming and applied cleanly with no conflicts.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
@adityapatwardhan adityapatwardhan requested a review from a team as a code owner March 9, 2026 21:22
Copilot AI review requested due to automatic review settings March 9, 2026 21:22
@adityapatwardhan adityapatwardhan added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Mar 9, 2026
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

Backports a packaging fix to release/v7.5 so that .deb and .rpm preview builds use the correct -preview package naming/channel suffix expected on packages.microsoft.com, and adjusts macOS CI gating for packaging runs.

Changes:

  • Update Unix packaging name selection so preview .deb/.rpm packages use powershell-preview (while keeping macOS .pkg naming behavior unchanged).
  • Update macOS CI “macOS packaging and testing” job to run based on packagingChanged path-filter output, and expose that output from the change-detection job.

Reviewed changes

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

File Description
tools/packaging/packaging.psm1 Uses Test-IsPreview to emit powershell-preview naming for preview .deb/.rpm packages (excluding osxpkg).
.github/workflows/macos-ci.yml Changes macOS packaging job gating to rely on packagingChanged from path filters.

needs:
- changes
if: ${{ needs.changes.outputs.source == 'true' || needs.changes.outputs.buildModuleChanged == 'true' }}
if: ${{ needs.changes.outputs.packagingChanged == 'true' }}
Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

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

The new condition gates the macOS packaging job exclusively on packagingChanged, but the path-filters composite action does not set packagingChanged for non-PR events (push). On push runs needs.changes.outputs.packagingChanged will be empty, so this job will be skipped entirely (previously it ran because source/buildModuleChanged are forced true on non-PR). Consider either (a) updating the path-filters action to set packagingChanged (and globalConfigChanged) to true on non-PR events, or (b) widening this if: to include push events (e.g., run when github.event_name != 'pull_request' or when needs.changes.outputs.source == 'true'). Also note packagingChanged currently doesn't include macOS packaging paths (e.g., .github/workflows/macos-ci.yml, test/packaging/macos/), so macOS packaging-related changes may not trigger this job.

Suggested change
if: ${{ needs.changes.outputs.packagingChanged == 'true' }}
if: ${{ github.event_name != 'pull_request' || needs.changes.outputs.packagingChanged == 'true' }}

Copilot uses AI. Check for mistakes.
@adityapatwardhan adityapatwardhan merged commit f25efeb into PowerShell:release/v7.5 Mar 9, 2026
43 checks passed
@adityapatwardhan adityapatwardhan deleted the backport/release/v7.5/26877-7cdcd5893 branch March 9, 2026 23:20
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