GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [release/v7.6.7] Add native Azure Linux 4 RPM packaging by jshigetomi · Pull Request #28109 · PowerShell/PowerShell

Conversation

@jshigetomi

@jshigetomi Justin Chung (jshigetomi) commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

Backports and adapts the full native Azure Linux 4 packaging change from #28107 (d8984870ca158442c0c043653ee63cef920ace8c) directly to release/v7.6.7.

  • Generates distinct framework-dependent Azure Linux 3 (.cm) and Azure Linux 4 (.azl4) RPMs for x86_64 and aarch64, including Release: 1.azl4 metadata.
  • Replaces the Azure Linux 4 beta mappings added by [release/v7.6.7] Add Azure Linux 4 RPM support #28039 with explicit preview and stable mappings for both architectures. The logical mapping names omit -yum because the PMC publishing Run.ps1 appends it.
  • Keeps all four Azure Linux 3 .cm mappings unchanged.
  • Hardens both RPM filename validators by escaping literal dots, anchoring complete filenames, and accepting azl4.
  • Adds targeted coverage for artifact names, RPM Release metadata, dependencies, mapping channel policy, retained Azure Linux 3 mappings, and malformed filenames.

PowerShell 7.6 dependency adaptation

The master change in #28107 uses the .NET 11 runtime contract. PowerShell 7.6 targets .NET 10, so this backport deliberately preserves the branch's Azure Linux native dependency set and requires dotnet-runtime-10.0 only for framework-dependent cm and azl4 RPMs. It does not introduce any .NET 11 dependency.

Relationship to #28039

#28039 is already merged in release/v7.6.7. It added initial Azure Linux 4 PMC routing using the existing .cm RPM and updated the shared dependencies to the .NET 10 contract. This PR builds on that work: it creates native .azl4 packages, separates preview/stable routing, and adds the validator and test hardening from #28107.

Validation

  • Pester 5.6.1: 32 targeted packaging and Linux package-name tests passed.
  • Parsed tools/packaging/packaging.psm1 and both changed Pester files with the PowerShell parser.
  • Parsed tools/packages.microsoft.com/mapping.json with ConvertFrom-Json.
  • git diff --check passed.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Justin Chung
Add native Azure Linux 4 RPM packages
b82f802
Co-authored-by: Copilot App <[email protected]>
Copilot AI lite review requested due to automatic review settings September 25, 2026 18:08
@jshigetomi
Justin Chung (jshigetomi) requested a review from a team as a code owner September 25, 2026 18:08
@azure-pipelines

azure-pipelines Bot commented Sep 25, 2026

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jshigetomi Justin Chung (jshigetomi) added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Sep 25, 2026
Copilot started reviewing on behalf of Justin Chung (jshigetomi) September 25, 2026 18:09
View session
Copilot AI reviewed Sep 25, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

RPM validators accept malformed filenames with an unsupported optional preview segment.

Review effort: Lite
Findings: None

What changed in this PR

Adds native Azure Linux 4 RPM packaging for PowerShell 7.6.7 while preserving Azure Linux 3 support and .NET 10 dependencies.

Changes:

  • Generates .azl4 RPMs with architecture-specific metadata.
  • Adds Azure Linux 4 preview and stable mappings.
  • Strengthens RPM filename validation and related tests.
File Description
tools/​packaging/​packaging.psm1 Adds Azure Linux 4 packaging and dependencies.
tools/​packages.microsoft.com/​mapping.json Defines Azure Linux 4 mappings.
test/​packaging/​packaging.tests.ps1 Tests packaging, dependencies, and mappings.
test/​packaging/​linux/​package-validation.tests.ps1 Tests valid and malformed RPM names.
.pipelines/​templates/​release-validate-packagenames.yml Updates release RPM validation.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jshigetomi

Justin Chung (jshigetomi) commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator Author

Closing this direct 7.6 PR in favor of backporting #28107 after it merges. The Azure Linux 4 native dependency list is currently identical for .NET 10 and .NET 11; during the 7.6 backport, retain the branch-specific framework-dependent requirement dotnet-runtime-10.0 instead of master’s dotnet-runtime-11.0. The source branch is intentionally retained.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jshigetomi Justin Chung (jshigetomi) closed this Sep 25, 2026
@SeeminglyScience Patrick Meinecke (SeeminglyScience) mentioned this pull request Oct 7, 2026
[release/v7.6.7] Add native Azure Linux 4 RPM packaging #28154
Merged
4 of 9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@jshigetomi
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.