Commit Graph
3085 Commits
Author SHA1 Message Date
Justin ChungandCopilot ded93cee07 Split MSIX access checks into focused tests
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ab738c1b-4d18-491b-a40f-0515b586857b
2026-08-04 12:33:32 -05:00
Justin ChungandCopilot b03ec8a312 Add MSIX machine configuration access tests
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ab738c1b-4d18-491b-a40f-0515b586857b
2026-08-04 10:42:49 -05:00
Justin ChungandCopilot 7901fec9bd Move MSIX configuration coverage to elevated tests
Keep xUnit focused on pure three-scope merge and union behavior. Move the real LocalMachine write, removal, and ACL checks into the existing elevated execution-policy Pester suite, where the test runs only with MSIX package identity.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ab738c1b-4d18-491b-a40f-0515b586857b
2026-07-31 12:22:13 -05:00
Justin ChungandCopilot 638173942c Test MSIX machine configuration in package context
Remove the trivial path-composition overload and unit tests. Expose package identity through InternalTestHooks and add an elevated MSIX-gated Pester test that verifies the real LocalMachine ProgramData write and inherited ACL boundaries.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ab738c1b-4d18-491b-a40f-0515b586857b
2026-07-31 11:35:32 -05:00
Justin ChungandCopilot 213ba396e7 Simplify the MSIX config path and inherit file ACLs
Store package-family configuration directly beneath the PowerShell ProgramData directory. Keep the PowerShell and PFN directories as protected ACL boundaries while allowing the configuration file and future children to inherit the PFN permissions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ab738c1b-4d18-491b-a40f-0515b586857b
2026-07-30 17:58:49 -05:00
Justin ChungandCopilot faa962ddd5 Keep Unix MachineFolder writes on AllUsers
Resolve an explicit MachineFolder write to the legacy AllUsers scope on Unix before selecting a path or cache entry. Compile MachineFolder directory provisioning only for Windows and cover the Unix fallback with a configuration test.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ab738c1b-4d18-491b-a40f-0515b586857b
2026-07-30 09:31:15 -05:00
Justin ChungandCopilot 469e39b3d5 Align MSIX configuration with MachineFolder model
Keep PSHOME as immutable product defaults while resolving the writable PFN-isolated ProgramData path in Utils. Redirect AllUsers writes, preserve policy and preference merge semantics, and secure the manually provisioned hierarchy without changing non-MSIX or experimental-feature behavior.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ab738c1b-4d18-491b-a40f-0515b586857b
2026-07-29 13:12:19 -05:00
Justin ChungandCopilot 3d28915fff Restore experimental feature cmdlets
Keep Enable-ExperimentalFeature and Disable-ExperimentalFeature aligned with master while retaining the MSIX configuration changes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ab738c1b-4d18-491b-a40f-0515b586857b
2026-07-29 10:11:06 -05:00
Justin ChungandCopilot 8fc58754d7 Scope system configuration to MSIX
Remove the experimental-feature mutation cmdlets while preserving discovery.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ab738c1b-4d18-491b-a40f-0515b586857b
2026-07-28 15:43:06 -05:00
Justin Chung 381db70a0f Merge branch 'master' into relocSystemConfig 2026-07-28 14:54:41 -05:00
Justin ChungandCopilot 21ef653ff0 Use package-aware ProgramData for system configuration
Keep immutable product defaults in PSHOME while resolving writable machine configuration from ProgramData, isolated by package family for MSIX. Apply secure Windows ACLs, preserve policy and preference merge semantics, and remove Get-PowerShellConfiguration.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ab738c1b-4d18-491b-a40f-0515b586857b
2026-07-27 16:15:28 -05:00
Dongbo Wang 855d94376b Prepare for onboarding PowerShell to the Native2Native localization pipeline (#27667)
1. Create the `LocProject.json` file for PowerShell localization.
2. Remove the unused `.resx` resource files and source files.
3. Update the `ResourceValidation` tests.
2026-07-20 12:21:39 -07:00
PowerShell Team Bot 0c226762e2 [master] Update branch for release (#27683) 2026-07-14 22:35:53 +00:00
6f7ffc2a17 Change New-Guid to generate UUID v7 by default (#27033)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Justin Chung <124807742+jshigetomi@users.noreply.github.com>
2026-06-26 11:25:35 -05:00
7d596de5f5 Fix progress bar rendering with double-width unicode characters (#26185)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Justin Chung <124807742+jshigetomi@users.noreply.github.com>
2026-06-26 11:15:10 -05:00
PowerShell Team BotandAditya Patwardhan 6ae5efcd4a [master] Update branch for release (#27582)
Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
2026-06-10 15:02:31 -04:00
Justin Chung 9311457b6a Fix preview build test failures 2026-05-28 13:07:18 -05:00
Justin Chung a8d65d320d Address Copilot fixes thrid 2026-05-28 10:10:27 -05:00
Justin Chung 5252a123b4 Address copilot comments second 2026-05-27 12:42:51 -05:00
Justin Chung 5ff044a4b6 Fix xUnit test configuration to use temp directory for system config location. 2026-05-27 09:53:14 -05:00
Justin Chung 7a3dbade57 Address copilot comments 2026-05-26 16:46:08 -05:00
Justin Chung 8ef8ae1138 Move AllUsers config out of $PSHOME and add Get-PowerShellConfiguration cmdlet 2026-05-26 16:20:04 -05:00
PowerShell Team Bot f1aaf15413 Update branch to use the .NET 11 SDK 11.0.100-preview.4 (#27504) 2026-05-22 17:28:08 -07:00
Dongbo Wang c9ac205fda Handle empty-string and null-value results returned from custom argument completer more properly (#27398) 2026-05-11 11:59:37 -07:00
Anam Navied ddff03a50f Create PowerShell package for arm debian distribution (#26925) 2026-05-05 11:29:02 -07:00
Dongbo Wang 65e6a8055c Update PowerShell telemetry to respect the diagnostics and feedback setting on Windows (#27328) 2026-04-24 09:52:06 -07:00
Patrick MeineckeandDongbo Wang e2784b8867 Update MaxVisitCount and MaxHashtableKeyCount if VisitorSafeValueContext indicates SkipLimitCheck is true (#27306)
Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
2026-04-20 10:56:25 -07:00
PowerShell Team Bot 6cc1e7071d [master] Update branch for release (#27291) 2026-04-17 13:03:11 -05:00
72be78e6be Remove MSI from publishing pipeline (#27213)
Co-authored-by: Justin Chung <chungjustin@microsoft.com>
Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
2026-04-16 15:01:35 -04:00
PowerShell Team Bot 1b390e1fa7 Update package references and move to .NET SDK 11.0-preview.2 (#27117) 2026-03-31 12:22:31 -07:00
Dongbo Wang 78e437c6f3 Fix the PSNativeCommandArgumentPassing test (#27057) 2026-03-18 15:32:15 -07:00
312291762e Fix ConvertFrom-ClearlyDefinedCoordinates to handle API object coordinates (#26893)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
Co-authored-by: PowerShell Team Bot <69177312+pwshBot@users.noreply.github.com>
Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
2026-03-10 18:16:18 -04:00
Dongbo Wang 7ca2b72af7 Fix a preview detection test for the packaging script (#26882) 2026-02-23 12:33:12 -08:00
xtqqczze cfd5966530 Enable CA1852: Seal internal types (#25890) 2026-02-23 11:11:12 -08:00
Dongbo Wang c19a440244 Fix Import-Module.Tests.ps1 to handle Arm32 platform (#26862) 2026-02-20 14:05:55 -08:00
Yoshifumi 2f08eb44e6 Add comprehensive PowerShell class tests for ConvertTo-Json (#26769) 2026-02-19 11:04:48 -08:00
xtqqczze 2af5ad14a3 Update LangVersion to preview (#26214) 2026-02-19 07:39:42 -08:00
Aditya Patwardhan 212c5f97e3 Update to .NET 11 SDK and update dependencies (#26783) 2026-02-18 16:35:10 -08:00
Jordan Borean 1965e059bc Fix up default value for parameters with the in modifier (#26785) 2026-02-18 11:39:53 -08:00
Yoshifumi 9d68a05ac3 Add comprehensive PSCustomObject tests for ConvertTo-Json (#26743) 2026-02-18 11:04:45 -08:00
Dongbo Wang 8f457fc714 Skip the flaky Update-Help test for the PackageManagement module (#26845) 2026-02-17 16:40:04 -05:00
CopilotandTravisEz13 6b8d724b03 Mark flaky Update-Help web tests as pending to unblock CI (#26796)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
2026-02-13 03:57:33 +00:00
Dongbo Wang 2e26e4b690 Update the Update-Help tests to use -Force to remove read-only files (#26780) 2026-02-12 11:50:16 -05:00
PowerShell Team Bot 439c42f232 Update outdated package references (#26771) 2026-02-10 16:02:44 +00:00
Copilot 42371b881c Add SubjectAlternativeName property to the Signature object returned from Get-AuthenticodeSignature (#26252) 2026-02-09 17:10:50 -08:00
Yoshifumi 664ac75f4f Add comprehensive depth and multilevel composition tests for ConvertTo-Json (#26744) 2026-02-09 16:43:02 -08:00
Yoshifumi 4382544127 Add comprehensive array and dictionary tests for ConvertTo-Json (#26742) 2026-02-06 09:41:03 -08:00
Yoshifumi dd4f2fecfa Add comprehensive scalar type tests for ConvertTo-Json (#26736) 2026-02-05 15:51:22 -08:00
Yoshifumi 8489f8fc34 Mark -NoTypeInformation as obsolete no-op and evaluate -IncludeTypeInformation on by value on Csv cmdlets (#26719) 2026-01-28 17:06:15 -05:00
Jordan Borean 7f9c7463f2 Support TargetObject position in ParserErrors (#26649) 2026-01-21 13:55:42 -05:00