Conversation
Isolate UseDotNet download and extraction files in a dedicated Linux temp directory, then remove it before tests and packaging. Record disk usage around installation, cleanup, and the build to quantify savings and identify remaining pressure. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use the observed agent temp location and compare entries before and after SDK installation. Remove only newly created GUID-named SDK archives and extraction directories, leaving other temp entries and installed SDKs intact. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2ff0cd05-fdd3-47bb-8b0c-983417c3829c
danroth27
force-pushed
the
fix/linux-ci-disk-exhaustion
branch
from
September 23, 2026 16:33
653af66 to
b672725
Compare
Member
Author
|
Closing as no longer needed after #3862 moved Linux CI to the engineering-managed agent. The rebased build finished with 83 GB free on the workspace volume; the additional SDK-staging cleanup is not worth maintaining. |
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.
Why
Linux jobs in Azure Pipelines builds 1607887 and 1607792 ran out of disk while packing NuGet packages. UseDotNet@2 v279 downloads and extracts .NET 8/9/10 SDKs into the agent temp directory before copying them into
.dotnet.Change
CI follow-up
The first PR build, 1608096, passed both Linux configurations but revealed that the original per-task temp override had no effect: 2.4 GB remained in the agent temp root while the dedicated staging directory was empty, and Linux ended at 100% disk usage. After rebasing onto #3862, build 1609320 passed both Linux configurations on the .NET engineering-managed Ubuntu agent. Its workspace volume is 98 GB. Each job measured 2.4 GB of SDK staging after installation and about 20 KB after cleanup; at the end of build and packaging, 83 GB remained free on that volume (12% used). Windows Debug and Release also passed; the earlier Windows Release xUnit failure was unrelated to this Linux-only change. The Microsoft.Extensions compatibility issue is separately tracked in #3833.