Skip to content

Skip EOL frameworks when downgrading installer assets - #8848

Merged
akoeplinger merged 1 commit into
dotnet:mainfrom
akoeplinger:akoeplinger/skip-eol-fx-downgrades
Aug 31, 2026
Merged

akoeplinger merged 1 commit into
dotnet:mainfrom
akoeplinger:akoeplinger/skip-eol-fx-downgrades

Conversation

@akoeplinger

Copy link
Copy Markdown
Member

Problem

This regressed with #8610, which changed the installer test asset to dynamically process all bundled framework versions.

That included EOL versions. In particular, .NET 6.0 was downgraded from 6.0.36 to 6.0.34, but the 6.0.34 packages have been deleted from nuget.org, causing restore failures. The script also introduced a dependency on awk, which is not available in every test environment.

Solution

  • Only downgrade supported framework versions starting with .NET 8.
  • Parse version components with Bash instead of awk.
  • Continue requiring at least two servicing releases before downgrading.

Remove the awk dependency and only downgrade supported .NET versions starting with .NET 8.

Co-authored-by: Copilot <[email protected]>
Copilot AI lite review requested due to automatic review settings August 31, 2026 08:06
@akoeplinger
akoeplinger requested review from a team as code owners August 31, 2026 08:06
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Pull request overview

Updates the installer test asset script in the VMR to avoid restore failures caused by downgrading end-of-life framework versions whose older patches may no longer exist on NuGet, and removes a dependency on awk to improve portability across test environments.

Changes:

  • Filters downgrade candidates to supported frameworks starting at .NET 8 (skipping EOL major versions).
  • Replaces awk-based version parsing with Bash read/IFS parsing.
  • Preserves the “at least two servicing releases before downgrading” rule by requiring patch >= 2.
File summaries
File Description
test/Microsoft.DotNet.Installer.Tests/assets/downgrade-fx-versions.sh Restricts downgrade targets to supported framework majors and replaces awk parsing with Bash parsing to avoid restore/tooling issues.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@akoeplinger
akoeplinger merged commit f401e9e into dotnet:main Aug 31, 2026
11 checks passed
@akoeplinger
akoeplinger deleted the akoeplinger/skip-eol-fx-downgrades branch August 31, 2026 10:59
@akoeplinger

Copy link
Copy Markdown
Member Author

/backport to release/11.0.1xx

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/11.0.1xx (link to workflow run)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants