Use prebuilt docker images instead of installing dependencies on every run - #9671
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Azure Pipelines Linux test stages to rely on prebuilt container images that already contain required runtime prerequisites, removing the previous “install extra Linux dependencies inside the container” flow.
Changes:
- Removed the
installAdditionalLinuxDependenciesparameter wiring and thetest-linux-docker-prereqs.ymltemplate usage. - Switched Linux test stages to use
mcr.microsoft.com/dotnet-buildtools/prereqs:*images instead ofmcr.microsoft.com/dotnet/sdk:*. - Deleted the no-longer-used
azure-pipelines/test-linux-docker-prereqs.ymltemplate.
Show a summary per file
| File | Description |
|---|---|
| azure-pipelines/test.yml | Removes conditional Linux docker prereq install step and related parameter plumbing. |
| azure-pipelines/test-matrix.yml | Removes the now-unused installAdditionalLinuxDependencies parameter passthrough. |
| azure-pipelines/test-linux-docker-prereqs.yml | Deletes the template that installed extra VS Code runtime deps in the container via docker exec. |
| azure-pipelines.yml | Updates Linux stages to use prebuilt prereqs container images for .NET 8–11 test runs. |
Review details
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Suppressed comments (3)
azure-pipelines.yml:109
- The container image is referenced by a mutable tag. For build reproducibility and supply-chain safety, consider pinning the image to an immutable digest (e.g.,
...@sha256:<digest>) so the CI environment can’t change unexpectedly.
containerName: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-24.04-net9.0-vscode-csharp-amd64
azure-pipelines.yml:124
- The container image is referenced by a mutable tag. For build reproducibility and supply-chain safety, consider pinning the image to an immutable digest (e.g.,
...@sha256:<digest>) so the CI environment can’t change unexpectedly.
containerName: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-24.04-net10.0-vscode-csharp-amd64
azure-pipelines.yml:139
- The container image is referenced by a mutable tag. For build reproducibility and supply-chain safety, consider pinning the image to an immutable digest (e.g.,
...@sha256:<digest>) so the CI environment can’t change unexpectedly.
containerName: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-26.04-net11.0-vscode-csharp-amd64
- Files reviewed: 4/4 changed files
- Comments generated: 3
- Review effort level: Lite
JoeRobich
approved these changes
Aug 12, 2026
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.
No description provided.