-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Conversation
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 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 |
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.
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.
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.
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.
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.
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.
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
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.
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 |
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.
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
The 5.0 image can't reach Debian apt repos anymore.