Skip to content

[release/10.0.1xx] [system-dependencies] Update the check for the Metal toolchain to update if an update is available.#24857

Merged
rolfbjarne merged 1 commit intorelease/10.0.1xxfrom
dev/rolf/backport-pr-24854-release/10.0.1xx-2026-03-09
Mar 10, 2026
Merged

[release/10.0.1xx] [system-dependencies] Update the check for the Metal toolchain to update if an update is available.#24857
rolfbjarne merged 1 commit intorelease/10.0.1xxfrom
dev/rolf/backport-pr-24854-release/10.0.1xx-2026-03-09

Conversation

@rolfbjarne
Copy link
Copy Markdown
Member

@rolfbjarne rolfbjarne commented Mar 9, 2026

xcodebuild -showComponent ... can return this:

Status: installedUpdateAvailable

which we understood to be "Installed", which is incorrect.

So fix the detection to handle this scenario, and (re)install the toolchain in question.

Backport of #24854.

…ate if an update is available.

`xcodebuild -showComponent ...` can return this:

> Status: installedUpdateAvailable

which we understood to be "Installed", which is incorrect.

So fix the detection to handle this scenario, and (re)install the toolchain in question.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates system-dependencies.sh to correctly treat Xcode component status installedUpdateAvailable as requiring an update (instead of considering it fully installed), so the Metal toolchain gets (re)downloaded when an update is available.

Changes:

  • Detect Status: installedUpdateAvailable from xcodebuild -showComponent and treat it as needing an update.
  • Adjust provisioning/failure logic to either prompt the user or automatically re-download the component when --provision-xcode-components is set.
  • Improve branching clarity by separating “needs install” vs “needs update” states.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +770 to +772
if test -n "$NEEDS_UPDATE"; then
fail "The Xcode component ${COLOR_BLUE}$comp${COLOR_RESET} is installed, but an update is available. Execute ${COLOR_MAGENTA}xcrun xcodebuild -downloadComponent $comp${COLOR_RESET} or ${COLOR_MAGENTA}./system-dependencies.sh --provision-xcode-components${COLOR_RESET} to install."
else
Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

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

The failure message for the installedUpdateAvailable case ends with "...to install." even though the component is already installed; this reads like a contradiction. Consider changing the wording to explicitly say "to update" or "to (re)install/update" so it’s clear the same command is being used to bring the component up to date.

Copilot uses AI. Check for mistakes.
@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

✅ [CI Build #fcca9f6] Build passed (Build packages) ✅

Pipeline on Agent
Hash: fcca9f60be5a5a7713743ed2b10c1fe725df38da [PR build]

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

✅ [PR Build #fcca9f6] Build passed (Detect API changes) ✅

Pipeline on Agent
Hash: fcca9f60be5a5a7713743ed2b10c1fe725df38da [PR build]

@vs-mobiletools-engineering-service2
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: fcca9f60be5a5a7713743ed2b10c1fe725df38da [PR build]

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

✅ [CI Build #fcca9f6] Build passed (Build macOS tests) ✅

Pipeline on Agent
Hash: fcca9f60be5a5a7713743ed2b10c1fe725df38da [PR build]

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

💻 [CI Build #fcca9f6] Tests on macOS M1 - Mac Monterey (12) passed 💻

All tests on macOS M1 - Mac Monterey (12) passed.

Pipeline on Agent
Hash: fcca9f60be5a5a7713743ed2b10c1fe725df38da [PR build]

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

💻 [CI Build #fcca9f6] Tests on macOS M1 - Mac Ventura (13) passed 💻

All tests on macOS M1 - Mac Ventura (13) passed.

Pipeline on Agent
Hash: fcca9f60be5a5a7713743ed2b10c1fe725df38da [PR build]

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

💻 [CI Build #fcca9f6] Tests on macOS arm64 - Mac Sequoia (15) passed 💻

All tests on macOS arm64 - Mac Sequoia (15) passed.

Pipeline on Agent
Hash: fcca9f60be5a5a7713743ed2b10c1fe725df38da [PR build]

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

💻 [CI Build #fcca9f6] Tests on macOS X64 - Mac Sonoma (14) passed 💻

All tests on macOS X64 - Mac Sonoma (14) passed.

Pipeline on Agent
Hash: fcca9f60be5a5a7713743ed2b10c1fe725df38da [PR build]

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

🚀 [CI Build #fcca9f6] Test results 🚀

Test results

✅ All tests passed on VSTS: test results.

🎉 All 117 tests passed 🎉

Tests counts

✅ 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 5 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: All 44 tests passed. Html Report (VSDrops) Download
✅ monotouch (iOS): All 9 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 11 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 9 tests passed. Html Report (VSDrops) Download
✅ monotouch (tvOS): All 9 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 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

Pipeline on Agent
Hash: fcca9f60be5a5a7713743ed2b10c1fe725df38da [PR build]

@rolfbjarne rolfbjarne disabled auto-merge March 10, 2026 12:48
@rolfbjarne
Copy link
Copy Markdown
Member Author

Test failure is unrelated (and fixed in #24866).

@rolfbjarne rolfbjarne merged commit 5797627 into release/10.0.1xx Mar 10, 2026
48 of 50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants