Skip to content

Stop using outdated 5.0 sdk image in wasm benchmarks #62884

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

Merged
merged 1 commit into from
Jul 23, 2025
Merged

Conversation

akoeplinger
Copy link
Member

@akoeplinger akoeplinger commented Jul 23, 2025

The 5.0 image can't reach Debian apt repos anymore.

@Copilot Copilot AI review requested due to automatic review settings July 23, 2025 16:15
@akoeplinger akoeplinger requested a review from a team as a code owner July 23, 2025 16:15
@github-actions github-actions bot added the area-blazor Includes: Blazor, Razor Components label Jul 23, 2025
Copy link
Contributor

@Copilot Copilot AI left a 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 updates the .NET SDK version in the WASM performance benchmarks Docker configuration from the outdated 5.0 version to the latest available version. This ensures the benchmarks use current tooling and runtime capabilities.

  • Updates Docker base image from .NET SDK 5.0 to latest version

@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:latest AS build
Copy link
Preview

Copilot AI Jul 23, 2025

Choose a reason for hiding this comment

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

Using 'latest' tag in Docker images can lead to unpredictable builds and compatibility issues. Consider pinning to a specific version like 'mcr.microsoft.com/dotnet/sdk:9.0' to ensure reproducible builds.

Suggested change
FROM mcr.microsoft.com/dotnet/sdk:latest AS build
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build

Copilot uses AI. Check for mistakes.

Copy link
Member Author

Choose a reason for hiding this comment

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

We're fine with that risk since we don't use the dotnet from the system anyway. Otherwise we'll just forget to bump this again in 2+ years.

Copy link
Member

Choose a reason for hiding this comment

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

my only concern with latest is not seeing the image change in the diff when it happens but I'm fine with taking this and discussing options

Copy link
Member Author

@akoeplinger akoeplinger Jul 23, 2025

Choose a reason for hiding this comment

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

yeah it should be pretty obvious since it'd happen right around 10.0 GA.
apart from that the OS version is also not set in stone for the tags either, we'd need to use a specific 9.0-bookworm tag

@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:latest AS build
Copy link
Member

Choose a reason for hiding this comment

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

my only concern with latest is not seeing the image change in the diff when it happens but I'm fine with taking this and discussing options

@lewing lewing enabled auto-merge (squash) July 23, 2025 17:15
@lewing lewing requested a review from sebastienros July 23, 2025 17:16
@lewing lewing merged commit 11f2c0a into main Jul 23, 2025
31 checks passed
@lewing lewing deleted the akoeplinger-patch-1 branch July 23, 2025 17:53
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0-preview7 milestone Jul 23, 2025
@wtgodbe wtgodbe modified the milestones: 10.0-preview7, 10.0-rc1 Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants