Dongbo Wang
0ceb11ad68
[release/v7.6.2] Update PowerShell telemetry to respect the diagnostics and feedback setting on Windows ( #27438 )
2026-05-13 16:13:41 -07:00
Dongbo Wang
901bf012d4
[release/v7.6.2] Create PowerShell package for arm debian distribution ( #27433 )
2026-05-13 14:57:26 -07:00
PowerShell Team Bot
8b54b1dd8f
[release/v7.6.1] Update branch for release ( #27287 )
2026-04-17 17:33:03 +00:00
Aditya Patwardhan
0ef9498fcc
[release/v7.6.1] Fix the PSNativeCommandArgumentPassing test ( #27179 )
2026-04-02 18:17:27 -07:00
Mirroring
44d691766e
Merge commit '47d65d0b1e7c6a153b5dc8940c10abec80bd7fec'
2026-03-16 21:27:41 +00:00
PowerShell Team Bot
d384bb89b3
[release/v7.6] Update v7.6 release branch to use .NET SDK 10.0.201 ( #27041 )
2026-03-16 14:22:38 -07:00
Dongbo Wang
348e3470c0
Merged PR 38918: Update MaxVisitCount and MaxHashtableKeyCount if VisitorSafeValueContext indicates SkipLimitCheck is true
...
Update MaxVisitCount and MaxHashtableKeyCount if visitor safe value context indicates SkipLimitCheck is true
Related work items: #163537
----
#### AI description (iteration 1)
#### PR Classification
Enhancement: Conditionally update AST limit checks based on safe value context flags.
#### PR Summary
This pull request refactors the safe value visitor to initialize runtime limit values, setting them to maximum if the `SkipLimitCheck` flag is present, and adjusts the corresponding condition checks to support larger AST structures safely.
- `src/System.Management.Automation/engine/parser/SafeValues.cs`: Replaced hard-coded limit constants with runtime-initialized readonly fields based on the safe value context, and updated conditional checks in `IsAstSafe` and `VisitHashtable`.
- `test/powershell/Modules/Microsoft.PowerShell.Utility/PowerShellData.tests.ps1`: Added tests to validate behavior when using `-SkipLimitCheck`, ensuring insecure PSD1 files are properly rejected.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
Related work items: #163537
2026-03-11 18:24:34 +00:00
PowerShell Team Bot
5ea8cb48cf
[release/v7.6] Update branch for release ( #26989 )
2026-03-10 23:27:36 +00:00
Dongbo Wang
ccf7ae9d90
[release/v7.6] Fix a preview detection test for the packaging script ( #26971 )
2026-03-09 16:29:04 -07:00
Dongbo Wang
45e05e9dc8
[release/v7.6] Fix Import-Module.Tests.ps1 to handle Arm32 platform ( #26888 )
2026-02-24 12:59:56 -08:00
Patrick Meinecke and Dongbo Wang
d32bbec593
[release/v7.6] Skip the flaky Update-Help test for the PackageManagement module ( #26847 )
...
Co-authored-by: Dongbo Wang <dongbow@microsoft.com >
2026-02-17 18:03:32 -05:00
32f7691b3a
[release/v7.6] Mark flaky Update-Help web tests as pending to unblock CI ( #26846 )
...
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com >
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com >
2026-02-17 17:26:10 -05:00
Travis Plunk
8bb4182b02
[release/v7.6] Update the Update-Help tests to use -Force to remove read-only files ( #26787 )
2026-02-17 13:45:03 -08:00
PowerShell Team Bot
c04c9b65cf
[release/v7.6] Update branch for release ( #26779 )
2026-02-10 16:15:28 -05:00
Dongbo Wang
0a912658a4
[release/v7.6] Move PowerShell build to depend on .NET SDK 10.0.102 ( #26717 )
2026-01-21 13:31:55 -08:00
Dongbo Wang
9c844308b0
[release/v7.6] Move PowerShell build to depend on .NET SDK 10.0.101 ( #26716 )
2026-01-21 12:49:24 -08:00
Dongbo Wang
9f65a8e238
[release/v7.6] Fix macOS preview package identifier detection to use version string ( #26709 )
2026-01-21 11:55:08 -08:00
Dongbo Wang
86475e9bb9
[release/v7.6] Fix $PSDefaultParameterValues leak causing tests to skip unexpectedly ( #26705 )
2026-01-21 11:52:09 -08:00
PowerShell Team Bot
9a326b200d
[release/v7.6] Fix the DSC test by skipping AfterAll cleanup if the initial setup in BeforeAll failed ( #26622 )
2025-12-16 12:40:31 -08:00
Aditya Patwardhan and PowerShell Team Bot
dcccde9e0e
[release/v7.6] [master] Update branch for release ( #26600 )
...
Co-authored-by: PowerShell Team Bot <69177312+pwshBot@users.noreply.github.com >
2025-12-10 13:15:05 -08:00
Aditya Patwardhan
55b48f79b9
[release/v7.6] Update the macos package name for preview releases to match the previous pattern ( #26576 )
2025-12-05 11:04:37 -08:00
Travis Plunk
dfa094e851
[release/v7.6] Fix a regression in the API CompletionCompleters.CompleteFilename() that causes null reference exception ( #26487 )
2025-12-05 10:53:01 -08:00
Travis Plunk
4109551362
[release/v7.6] Improve ADO package build and validation across platforms ( #26532 )
2025-12-05 00:11:20 +00:00
Aditya Patwardhan and MartinGC94
2d213e283b
[release/v7.6] Add Delimiter parameter to Get-Clipboard ( #26572 )
...
Co-authored-by: MartinGC94 <42123497+MartinGC94@users.noreply.github.com >
2025-12-04 18:40:57 +00:00
Aditya Patwardhan and Ryan Yates
6827de520b
[release/v7.6] Properly Expand Aliases to their actual ResolvedCommand ( #26571 )
...
Co-authored-by: Ryan Yates <ryan.yates@kilasuit.org >
2025-12-04 10:37:54 -08:00
Aditya Patwardhan
2e047922ca
[release/v7.6] Close pipe client handles after creating the child ssh process ( #26564 )
2025-12-02 15:58:22 -08:00
Aditya Patwardhan
c63af4e2c9
[release/v7.6] Fix merge conflict checker for empty file lists and filter *.cs files ( #26556 )
2025-12-02 15:56:04 -08:00
Travis Plunk and Copilot
391284f31c
[release/v7.6] Remove usage of fpm for DEB package generation ( #26504 )
...
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com >
2025-11-25 14:32:27 -05:00
Travis Plunk
9532f85fe4
[release/v7.6] Make some experimental features stable ( #26490 )
2025-11-20 14:57:21 -08:00
3c517873ae
[release/v7.6] Replace fpm with native rpmbuild for RPM package generation ( #26441 )
...
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com >
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-20 09:04:20 -08:00
e9af4e7710
[release/v7.6] Update outdated package references ( #26471 )
...
Co-authored-by: PowerShell Team Bot <69177312+pwshBot@users.noreply.github.com >
Co-authored-by: Dongbo Wang <dongbow@microsoft.com >
2025-11-19 10:01:24 -08:00
Travis Plunk and Aditya Patwardhan
168482463d
[release/v7.6] DSC v3 resource for Powershell Profile ( #26447 )
...
Co-authored-by: Aditya Patwardhan <adityap@microsoft.com >
2025-11-13 15:02:24 -08:00
Dongbo Wang
b85237876d
Remove the use of Windows PowerShell ETW provider id and update PSDiagnostics module to work for PowerShell 7 ( #25590 )
2025-10-01 12:38:19 -07:00
PowerShell Team Bot
a1fad7f738
Update package references for the master branch ( #26124 )
2025-09-30 13:48:45 -07:00
Dongbo Wang
716754d220
Remove ThreadJob module and update PSReadLine to 2.4.4-beta4 ( #26120 )
2025-09-30 12:32:43 -07:00
Andy Jordan
3aa49cca9b
Remove IsScreenReaderActive() check from ConsoleHost ( #26118 )
2025-09-30 12:18:52 -07:00
Dongbo Wang
3cfa4b2469
Mark the 3 consistently failing tests as pending to unblock PRs ( #26091 )
2025-09-30 11:44:27 -07:00
Matěj Kafka and Dongbo Wang
551a0fe642
Fix ConvertFrom-Json to ignore comments inside array literals ( #14553 ) ( #26050 )
...
Co-authored-by: Dongbo Wang <dongbow@microsoft.com >
2025-09-23 10:29:11 -07:00
Dongbo Wang
506869c157
Fix -Debug to not trigger the ShouldProcess prompt ( #26081 )
2025-09-23 09:19:39 +05:00
PowerShell Team Bot
f08e75899c
Update outdated package references ( #26069 )
2025-09-22 16:52:58 -07:00
Travis Plunk
2376e28482
Ensure that socket timeouts are set only during the token validation ( #26066 )
...
The main goal is to ensure that socket timeouts are set only during the token validation phase and are properly reset afterward, improving reliability and preventing unintended blocking or premature timeouts in subsequent operations.
2025-09-22 10:56:19 -07:00
Travis Plunk
42e86f6c5f
Fix race condition in RemoteHyperVSocket ( #26057 )
2025-09-15 11:37:04 -07:00
xtqqczze
d418ffe84c
Make some tests less noisy on failure ( #26035 )
2025-09-11 13:55:36 -07:00
PowerShell Team Bot and Dongbo Wang
a1b417691f
Move PowerShell build to use .NET SDK 10.0.100-rc.1 ( #26027 )
...
Co-authored-by: Dongbo Wang <dongbow@microsoft.com >
2025-09-10 14:55:07 -07:00
xtqqczze
e2b2d1ea59
Ensure .cs files end with exactly one newline ( #25968 )
2025-09-03 14:09:34 +00:00
Dongbo Wang
53805fb426
Add the parameter Register-ArgumentCompleter -NativeFallback to support registering a cover-all completer for native commands ( #25230 )
2025-08-29 15:50:02 -07:00
Steve Lee and Patrick Meinecke
16aeaba68f
Fix stderr output of console host to respect NO_COLOR ( #24391 )
...
Co-authored-by: Patrick Meinecke <SeeminglyScience@users.noreply.github.com >
2025-08-26 16:37:40 -04:00
PowerShell Team Bot
2fb12a31f3
Update PowerShell to use .NET SDK v10-preview.7 ( #25876 )
2025-08-20 14:38:09 -07:00
Dongbo Wang
d68c15e743
Update PATH environment variable for package manager executable on Windows ( #25847 )
...
Implementation for PowerShell/PowerShell-RFC#391 . A few implementation decisions:
1. Check the package manager list only once per process (**same as CMD**). So, changing the package manager list in registry doesn't affect a PowerShell session that is already running.
2. When detecting user/system PATH value changes, only check new items PREPENDED or APPENDED to the original string (**same as CMD**). The detection is made simple, which is not intended to detect complex changes to the user/system PATH.
3. The PATH update feature is disabled when the `Environment` provider is not available, or when the current session is restricted.
- Both `Environment` provider and `IsSessionRestricted` are checked only once per PowerShell session.
- Use `ConditionalWeakTable` to cache whether the feature is enabled or not for a given session.
- We cannot use `thread-static` variable for the caching because it's possible for Runspace to reuse threads.
2025-08-20 12:53:59 -07:00
Patrick Meinecke
c5f2446e69
Suppress false positive PSScriptAnalyzer warnings in tests and build scripts ( #25864 )
2025-08-19 11:51:38 +05:00