[release/v7.6.6] Fix install dotnet for non early access release - #27927
Merged
Aditya Patwardhan (adityapatwardhan) merged 1 commit intoSep 1, 2026
Conversation
Aditya Patwardhan (adityapatwardhan)
requested review from
a team and
Justin Chung (jshigetomi)
as code owners
September 1, 2026 01:37
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Copilot started reviewing on behalf of
Aditya Patwardhan (adityapatwardhan)
September 1, 2026 01:38
View session
Patrick Meinecke (SeeminglyScience)
approved these changes
Sep 1, 2026
Aditya Patwardhan (adityapatwardhan)
merged commit Sep 1, 2026
e4a79f4
into
PowerShell:release/v7.6.6
35 checks passed
Aditya Patwardhan (adityapatwardhan)
deleted the
backport/release/v7.6.6/27892-9fa54b610
branch
September 1, 2026 01:40
Contributor
There was a problem hiding this comment.
Pull request overview
Backports pipeline-template updates to release/v7.6.6 so the release validation jobs correctly initialize release version variables early and adjust how .NET is installed for early-access vs non-early-access runs.
Changes:
- Adds
SetVersionVariables.ymlto both release validation templates to ensure version variables are available before later validation steps. - Updates the
install-dotnet.ymlinvocation to makeob_restore_phaseconditional (but the current condition appears inverted, changing non-early-access behavior).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| .pipelines/templates/release-validate-globaltools.yml | Initializes version variables earlier and modifies conditional parameters for install-dotnet.yml in global tool validation. |
| .pipelines/templates/release-validate-fxdpackages.yml | Initializes version variables earlier and modifies conditional parameters for install-dotnet.yml in framework-dependent package validation. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
70
to
+74
| - template: /.pipelines/templates/install-dotnet.yml@self | ||
| parameters: | ||
| architecture: ${{ parameters.dotnetArch }} | ||
| ob_restore_phase: false | ||
| ${{ if eq(parameters.IsEarlyAccess, true) }}: | ||
| ob_restore_phase: false |
Comment on lines
84
to
+88
| - template: /.pipelines/templates/install-dotnet.yml@self | ||
| parameters: | ||
| architecture: ${{ parameters.dotnetArch }} | ||
| ob_restore_phase: false | ||
| ${{ if eq(parameters.IsEarlyAccess, true) }}: | ||
| ob_restore_phase: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Backport of #27892 to release/v7.6.6
Triggered by Aditya Patwardhan (@adityapatwardhan) on behalf of Aditya Patwardhan (@adityapatwardhan)
Original CL Label: CL-BuildPackaging
/cc @PowerShell/powershell-maintainers
Impact
REQUIRED: Choose either Tooling Impact or Customer Impact (or both). At least one checkbox must be selected.
Tooling Impact
Corrects the release validation pipelines so non-early-access builds install .NET without forcing the early-access restore phase, while ensuring release version variables are initialized before package and global-tool validation.
Customer Impact
Regression
REQUIRED: Check exactly one box.
This is not a regression.
Testing
Cherry-picked cleanly onto the latest upstream release/v7.6.6. Verified the worktree is clean, git diff --check passes, the commit changes only the two intended release-validation YAML templates, and .pipelines/templates/SetVersionVariables.yml exists on the target branch. The affected Azure Pipelines release-validation jobs require CI for end-to-end execution.
Risk
REQUIRED: Check exactly one box.
High risk because the change modifies shared release validation pipeline templates used for framework-dependent packages and global tools. The diff is narrowly scoped to version-variable initialization and conditional .NET installation parameters, and it matches the merged master change without conflict adaptations.