Skip to content

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

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

[release/9.0.1xx] [system-dependencies] Update the check for the Metal toolchain to update if an update is available.#24858
rolfbjarne merged 1 commit intorelease/9.0.1xxfrom
dev/rolf/backport-pr-24854-release/9.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 xcodebuild -showComponent status installedUpdateAvailable as requiring action, so the Metal toolchain component is (re)downloaded when an update is available.

Changes:

  • Detect Status: installedUpdateAvailable and treat it as needing an update.
  • Adjust decision logic to differentiate between “installed”, “update available”, and “not installed”.
  • Trigger xcrun xcodebuild -downloadComponent when provisioning is enabled and the component isn’t fully up-to-date.
Comments suppressed due to low confidence (1)

system-dependencies.sh:742

  • When provisioning, the log/ok messages always say "Installing"/"installed" even when the detected state is "installedUpdateAvailable" (i.e., updating an existing component). This is misleading in logs; consider tailoring the messages based on NEEDS_UPDATE (e.g., "Updating" / "updated") so users can tell what happened.
			log "Installing the Xcode component ${COLOR_BLUE}$comp${COLOR_CLEAR} by executing ${COLOR_BLUE}xcrun xcodebuild -downloadComponent $comp${COLOR_CLEAR}..."
			xcrun xcodebuild -downloadComponent "$comp"

			ok "Successfully installed the Xcode component ${COLOR_BLUE}$comp${COLOR_CLEAR}."

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

Comment thread system-dependencies.sh
Comment thread system-dependencies.sh
@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

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

Pipeline on Agent
Hash: dc0c915210020e13a4b38c291fec1f2805e2c2f3 [PR build]

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

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

Pipeline on Agent
Hash: dc0c915210020e13a4b38c291fec1f2805e2c2f3 [PR build]

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

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

Pipeline on Agent
Hash: dc0c915210020e13a4b38c291fec1f2805e2c2f3 [PR build]

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

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

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

Pipeline on Agent
Hash: dc0c915210020e13a4b38c291fec1f2805e2c2f3 [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: dc0c915210020e13a4b38c291fec1f2805e2c2f3 [PR build]

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

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

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

Pipeline on Agent
Hash: dc0c915210020e13a4b38c291fec1f2805e2c2f3 [PR build]

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

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

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

Pipeline on Agent
Hash: dc0c915210020e13a4b38c291fec1f2805e2c2f3 [PR build]

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

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

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

Pipeline on Agent
Hash: dc0c915210020e13a4b38c291fec1f2805e2c2f3 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

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

🚀 [CI Build #dc0c915] Test results 🚀

Test results

✅ All tests passed on VSTS: test results.

🎉 All 115 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. [attempt 2] 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 8 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 8 tests passed. [attempt 2] 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: dc0c915210020e13a4b38c291fec1f2805e2c2f3 [PR build]

@rolfbjarne
Copy link
Copy Markdown
Member Author

Failing test will be fixed with #24865.

@rolfbjarne rolfbjarne disabled auto-merge March 10, 2026 06:13
@rolfbjarne rolfbjarne merged commit 2a66adb into release/9.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