Repository navigation
[ci] Work around unwritable .NET CLI home on ACES agents - #27612
rolfbjarne wants to merge 3 commits into
Conversation
Set DOTNET_CLI_HOME in the shared pipeline variables so jobs avoid the agent's root-owned .dotnet directory. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Keep tool restore cache cleanup aligned with DOTNET_CLI_HOME while preserving the local HOME default. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🔵 Needs a closer look
No ACES CI run confirms that first-use sentinel creation and tool restore succeed with the redirected CLI home on an affected agent.
No open issues 🎉
What changed in this PR
Works around unwritable .NET CLI home directories on ACES agents, addressing the first-use failure reported in #27230.
Changes:
- Sets CI’s
DOTNET_CLI_HOMEto an agent temporary directory. - Updates tool resolver cache cleanup to use the configured home, preserving
$HOMEas the local default.
| File | Description |
|---|---|
| tools/devops/automation/templates/variables/common.yml | Configures a temporary .NET CLI home for CI. |
| builds/Makefile | Aligns cache cleanup with the configured CLI home. |
Review effort: Balanced
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
🔥 [CI Build #8986114] Test results 🔥Test results❌ Tests failed on VSTS: test results 0 tests crashed, 1 tests failed, 144 tests passed. Failures❌ monotouch tests (macOS)1 tests failed, 10 tests passed.Failed tests
Html Report (VSDrops) Download Successes✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download macOS tests✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download Linux Build VerificationPipeline on Agent |
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
89861144f21910697ae07e2ca1da080464b49ac0DOTNET_CLI_HOME; Makefile cleanup was checked with configured and default homes.↓ No CI run on ACES agents yet.
~/.dotnetowned by root with mode0700.↓ Why the bootstrapper creates it as root remains unproven.
↓ The workaround has not yet been confirmed in CI.
This works around a possible ACES agent issue that leaves
~/.dotnetunwritable by settingDOTNET_CLI_HOMEin the shared pipeline variables template. The build Makefile now clears the tool resolver cache under the configured CLI home, while retaining the existing$HOMEbehavior for local builds.Related to #27230
🤖 Pull request created by Copilot