-
Notifications
You must be signed in to change notification settings - Fork 8.1k
[release/v7.6] Make some experimental features stable #26490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[release/v7.6] Make some experimental features stable #26490
Conversation
The following experimental features are made stable: - PSNativeWindowsTildeExpansion - PSRedirectToVariable - PSSubsystemPluginModel
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.
Pull Request Overview
This PR backports changes from #26348 to make three experimental features stable in PowerShell v7.6: PSNativeWindowsTildeExpansion, PSRedirectToVariable, and PSSubsystemPluginModel. The changes remove experimental feature flags, related checks in code and tests, and add the Get-PSSubsystem cmdlet to the default session state.
Key Changes:
- Removed experimental feature definitions and checks for PSNativeWindowsTildeExpansion, PSRedirectToVariable, and PSSubsystemPluginModel
- Added Get-PSSubsystem cmdlet to default session state (previously only available with experimental flag)
- Updated tests to remove experimental feature validation and skip conditions
Reviewed Changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| test/tools/TestMetadata.json | Removes experimental feature entries from test metadata configuration (includes additional features beyond those mentioned in PR description) |
| test/powershell/engine/Basic/DefaultCommands.Tests.ps1 | Adds Get-PSSubsystem cmdlet to expected default commands list |
| test/powershell/Modules/Microsoft.PowerShell.Utility/Set-Variable.Tests.ps1 | Removes experimental feature checks and skip logic for -Append parameter tests |
| test/powershell/Language/Scripting/NativeExecution/NativeWindowsTildeExpansion.Tests.ps1 | Removes experimental feature validation check from test setup |
| test/powershell/Language/Parser/RedirectionOperator.Tests.ps1 | Removes experimental feature checks and skip logic for variable redirection tests |
| src/System.Management.Automation/engine/runtime/Operations/MiscOps.cs | Removes PSRedirectToVariable feature checks, making variable redirection always available |
| src/System.Management.Automation/engine/Subsystem/Commands/GetPSSubsystemCommand.cs | Removes Experimental attribute from Get-PSSubsystem cmdlet |
| src/System.Management.Automation/engine/NativeCommandParameterBinder.cs | Removes PSNativeWindowsTildeExpansion feature check, making tilde expansion always active on Windows |
| src/System.Management.Automation/engine/InitialSessionState.cs | Adds Get-PSSubsystem cmdlet unconditionally to default session state |
| src/System.Management.Automation/engine/ExperimentalFeature/ExperimentalFeature.cs | Removes experimental feature constant definitions and feature entries for the three stabilized features |
| src/Microsoft.PowerShell.Commands.Utility/commands/utility/Var.cs | Removes Experimental attribute from Set-Variable's -Append parameter |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Backport of #26348 to release/v7.6
Triggered by @TravisEz13 on behalf of @daxian-dbw
Original CL Label: CL-General
/cc @PowerShell/powershell-maintainers
Impact
REQUIRED: Choose either Tooling Impact or Customer Impact (or both). At least one checkbox must be selected.
Tooling Impact
Customer Impact
This enables three experimental features by default in v7.6:
These features were experimental and now become standard functionality, improving the user experience without requiring configuration.
Regression
REQUIRED: Check exactly one box.
This is not a regression.
Testing
Original PR included test cleanup to remove experimental feature checks. Backport verified by:
Risk
REQUIRED: Check exactly one box.
Medium risk: This stabilizes three experimental features (PSNativeWindowsTildeExpansion, PSRedirectToVariable, PSSubsystemPluginModel) that have been available and tested in previous releases. The changes affect core engine functionality but have been validated in the main branch. The features are well-tested and moving to stable status is appropriate for a release branch.
Merge Conflicts
The file
src/System.Management.Automation/engine/ExperimentalFeature/ExperimentalFeature.cshad conflicts during cherry-pick.Conflict: Release branch v7.6 contained experimental feature entries for PSNativeWindowsTildeExpansion and PSRedirectToVariable that were being removed by the PR to make them stable.
Resolution: Removed the two experimental feature entries from the engine features array, keeping only PSLoadAssemblyFromNativeCode, PSFeedbackProvider, PSSerializeJSONLongEnumAsNumber, and PSProfileDSCResource.
Context: The PR removes features from the experimental list because they are being stabilized (made available by default). PSSubsystemPluginModel was already absent from v7.6's experimental features list.