Skip to content

Stop publishing previews to Azure Linux 4 - #28324

Merged
Justin Chung (jshigetomi) merged 1 commit into
PowerShell:masterfrom
jshigetomi:jshigetomi-port-azure-linux-mapping
Nov 4, 2026
Merged

Justin Chung (jshigetomi) merged 1 commit into
PowerShell:masterfrom
jshigetomi:jshigetomi-port-azure-linux-mapping

Conversation

@jshigetomi

Copy link
Copy Markdown
Collaborator

PR Summary

  • Remove the x64 and ARM64 Azure Linux 4 mappings for the preview PMC channel.
  • Preserve both Azure Linux 4 mappings for the stable PMC channel.
  • Update the packaging tests to assert that preview releases do not map to Azure Linux 4 repositories.

PR Context

PowerShell preview and RC release tags select mappings with channel: preview. Azure Linux 4 should not receive preview PowerShell packages, so this ports commit 89c0f930c4e94726946f635b2f2c0602f4751318 to master and removes only those two routing entries. Stable publication remains unchanged.

Validation:

  • pwsh -NoLogo -NoProfile -Command '& { $result = Invoke-Pester -Path ''./test/packaging/packaging.tests.ps1'' -PassThru; if ($result.FailedCount -gt 0) { exit 1 } }': passed 22 tests; failed 0, skipped 0.
  • pwsh -NoLogo -NoProfile -Command '& { $tokens = $null; $errors = $null; [System.Management.Automation.Language.Parser]::ParseFile((Resolve-Path ''./test/packaging/packaging.tests.ps1''), [ref]$tokens, [ref]$errors) > $null; if ($errors.Count -ne 0) { $errors | Format-List; exit 1 }; ''Parser errors: 0'' }': passed with 0 parser errors.
  • git diff --check origin/master...HEAD: passed.

PR Checklist

…ure Linux 4

<!-- Anything that looks like this is a comment and can't be seen after the Pull Request is created. -->
# PR Summary
<!-- Summarize your PR between here and the checklist. -->
- Remove the x64 and ARM64 Azure Linux 4 mappings for the `preview` PMC channel.
- Preserve both Azure Linux 4 mappings for the `stable` PMC channel.
- Update the packaging tests to assert that preview releases do not map to Azure Linux 4 repositories.
## PR Context
<!-- Provide a little reasoning as to why this Pull Request helps and why you have opened it. -->
PowerShell preview and RC release tags select mappings with `channel: preview`. Azure Linux 4 should not receive preview PowerShell packages, so this removes only those two routing entries from `release/v7.7.0-rc.1`; stable publication remains unchanged.
Validation:
- `Invoke-Pester` for `test/packaging/packaging.tests.ps1`: passed 22 tests, failed 0.
- PowerShell parser check for the changed test file: passed with 0 errors.
- `git diff --check`: passed.
## PR Checklist
- [x] [PR has a meaningful title](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)
  - Use the present tense and imperative mood when describing your changes
- [x] [Summarized changes](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)
- [x] [Make sure all `.h`, `.cpp`, `.cs`, `.ps1` and `.psm1` files have the correct copyright header](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)
- [x] This PR is ready to merge. If this PR is a work in progress, please open this as a [Draft Pull Request and mark it as Ready to Review when it is ready to merge](https://docs.github.com/pull-requests/collaborating-with-pull-requests/proposing-changes-to-a-pull-request/about-pull-requests#draft-pull-requests).
- **[Breaking changes](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#making-breaking-changes)**
  - [x] None
  - **OR**
  - [ ] [Experimental feature(s) needed](https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/7.5/Microsoft.PowerShell.Core/About/about_Experimental_Features.md)
    - [ ] Experimental feature name(s):
- **User-facing changes**
  - [x] Not Applicable
  - **OR**
  - [ ] [Documentation needed](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)
    - [ ] Issue filed:
- **Testing - New and feature**
  - [ ] N/A or can only be tested interactively
  - **OR**
  - [x] [Make sure you've added a new test if existing tests do not effectively test the code changed](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#before-submitting)

----
#### AI description  (iteration 1)
#### PR Classification
Removal of unused/deprecated package mappings, a cleanup/configuration change to stop publishing preview packages to Azure Linux 4.

#### PR Summary
This PR removes the preview...
@jshigetomi
Justin Chung (jshigetomi) requested a review from a team as a code owner November 4, 2026 03:21
Copilot AI balanced review requested due to automatic review settings November 4, 2026 03:21
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues were identified for the change removing Azure Linux 4 preview mappings while preserving stable publication.

No open issues 🎉

What changed in this PR

Stops publishing PowerShell preview and RC packages to Azure Linux 4 through packages.microsoft.com, while preserving stable publication for x64 and ARM64.

Changes:

  • Removes the two Azure Linux 4 preview-channel mappings.
  • Updates packaging tests to retain stable-mapping checks and assert that no preview mappings target Azure Linux 4.
File Description
tools/​packages.microsoft.com/​mapping.json Removes Azure Linux 4 preview routing for both architectures.
test/​packaging/​packaging.tests.ps1 Verifies stable mappings remain and preview mappings are absent.

Review effort: Balanced

@jshigetomi
Justin Chung (jshigetomi) merged commit 519b7c1 into PowerShell:master Nov 4, 2026
41 of 42 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.

3 participants