Skip to content

[ci] Work around unwritable .NET CLI home on ACES agents - #27612

Open
rolfbjarne wants to merge 3 commits into
mainfrom
dev/rolf/ci-dotnet-home
Open

rolfbjarne wants to merge 3 commits into
mainfrom
dev/rolf/ci-dotnet-home

Conversation

@rolfbjarne

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 89861144f21910697ae07e2ca1da080464b49ac0

Dimension Assessment Rationale
Change confidence 8/10 ↑ Local .NET CLI created its toolpath sentinel under DOTNET_CLI_HOME; Makefile cleanup was checked with configured and default homes.
↓ No CI run on ACES agents yet.
Diagnosis confidence 8/10 ↑ #27230 records permission denied while creating the .NET toolpath sentinel; an ACES reproduction showed ~/.dotnet owned by root with mode 0700.
↓ Why the bootstrapper creates it as root remains unproven.
Evidence fit 9/10 ↑ #27230 documents the same sentinel-write failure on ACES agents.
↓ The workaround has not yet been confirmed in CI.

This works around a possible ACES agent issue that leaves ~/.dotnet unwritable by setting DOTNET_CLI_HOME in the shared pipeline variables template. The build Makefile now clears the tool resolver cache under the configured CLI home, while retaining the existing $HOME behavior for local builds.

Related to #27230

🤖 Pull request created by Copilot

rolfbjarne and others added 3 commits December 3, 2026 14:24
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>
@rolfbjarne
rolfbjarne requested a review from dalexsoto as a code owner December 3, 2026 13:25
Copilot AI balanced review requested due to automatic review settings December 3, 2026 13:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 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_HOME to an agent temporary directory.
  • Updates tool resolver cache cleanup to use the configured home, preserving $HOME as 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

@MauiBot

MauiBot commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

✅ API diff for current PR / commit

NET (empty diffs)

✅ API diff vs stable

NET (empty diffs)

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: 89861144f21910697ae07e2ca1da080464b49ac0 [PR build]

@MauiBot

MauiBot commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

🔥 [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

  • monotouch-test/macOS/Release (all optimizations, link all): Failed (Test run failed.
    Tests run: 4195 Passed: 4050 Inconclusive: 14 Failed: 1 Ignored: 144)

Html Report (VSDrops) Download

Successes

✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download
✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (iOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (macOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. Html Report (VSDrops) Download
✅ framework: All 2 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. Html Report (VSDrops) Download
✅ generator: All 1 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. Html Report (VSDrops) Download
✅ introspection: All 4 tests passed. Html Report (VSDrops) Download
✅ linker (iOS): All 12 tests passed. Html Report (VSDrops) Download
✅ linker (MacCatalyst): All 12 tests passed. Html Report (VSDrops) Download
✅ linker (macOS): All 12 tests passed. Html Report (VSDrops) Download
✅ linker (tvOS): All 12 tests passed. Html Report (VSDrops) Download
✅ monotouch (iOS): All 11 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 11 tests passed. Html Report (VSDrops) Download
✅ monotouch (tvOS): All 11 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ sharpie: All 1 tests passed. Html Report (VSDrops) Download
✅ windows: All 3 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download

macOS tests

✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sequoia (15): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Tahoe (26): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Golden Gate (27): All 5 tests passed. Html Report (VSDrops) Download

Linux Build Verification

✅ Linux build succeeded

Pipeline on Agent
Hash: 89861144f21910697ae07e2ca1da080464b49ac0 [PR build]

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants