From 6f7ffc2a17a3c65b934ee5e812b4f4c2e96a8055 Mon Sep 17 00:00:00 2001 From: Ahmed Taha <65625347+SufficientDaikon@users.noreply.github.com> Date: Fri, 26 Jun 2026 19:25:35 +0300 Subject: [PATCH 1/2] Change New-Guid to generate UUID v7 by default (#27033) Co-authored-by: Claude Opus 4.6 Co-authored-by: Justin Chung <124807742+jshigetomi@users.noreply.github.com> --- .../commands/utility/NewGuidCommand.cs | 2 +- .../Modules/Microsoft.PowerShell.Utility/New-Guid.Tests.ps1 | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/NewGuidCommand.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/NewGuidCommand.cs index 0e466f86d3f..d1d41b312f7 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/NewGuidCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/NewGuidCommand.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() } else { - guid = Empty.ToBool() ? Guid.Empty : Guid.NewGuid(); + guid = Empty.ToBool() ? Guid.Empty : Guid.CreateVersion7(); } WriteObject(guid); diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/New-Guid.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/New-Guid.Tests.ps1 index 8756fed7726..9b082793413 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/New-Guid.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/New-Guid.Tests.ps1 @@ -43,6 +43,12 @@ Describe "New-Guid" -Tags "CI" { $observed | Should -Be $guids } + It "Should generate a UUID v7" { + $guid = New-Guid + # UUID v7 has version nibble '7' at position 14 in the string representation + $guid.ToString()[14] | Should -BeExactly '7' + } + It "Should return different guids with each call" { $guid1 = New-Guid $guid2 = New-Guid From 13d66be5b1ccf008e8c7b7116a4783a2ed19bf90 Mon Sep 17 00:00:00 2001 From: Anam Navied Date: Fri, 26 Jun 2026 15:26:20 -0400 Subject: [PATCH 2/2] PMC: Download deb_arm artifact to ensure package is available for PMC publish flow (#27635) --- .pipelines/templates/release-prep-for-ev2.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.pipelines/templates/release-prep-for-ev2.yml b/.pipelines/templates/release-prep-for-ev2.yml index ace2b8f7df4..ec6ea5ec1e9 100644 --- a/.pipelines/templates/release-prep-for-ev2.yml +++ b/.pipelines/templates/release-prep-for-ev2.yml @@ -16,6 +16,9 @@ stages: - input: pipelineArtifact pipeline: PSPackagesOfficial artifactName: drop_linux_package_deb + - input: pipelineArtifact + pipeline: PSPackagesOfficial + artifactName: drop_linux_package_deb_arm64 - input: pipelineArtifact pipeline: PSPackagesOfficial artifactName: drop_linux_package_rpm