Skip to content

ci: parse runner output before comparing so hosted runners install deps - #2

Draft
fablab503-collab wants to merge 2 commits into
mainfrom
claude/wizardly-lamport-6gvcqe-sysroot-deps
Draft

fablab503-collab wants to merge 2 commits into
mainfrom
claude/wizardly-lamport-6gvcqe-sysroot-deps

Conversation

@fablab503-collab

Copy link
Copy Markdown
Owner

Summary

Build Sysroot fails on GitHub-hosted runners with 'six' not found in your Python 3 installation. This happens on main and on #1.

Root cause: The configuration job writes the runner as a quoted JSON string, runners='macos-26', so that runs-on: ${{ fromJSON(...) }} can parse it. The Install Requirements step compares that raw string to env.RUNNER_IMAGE (macos-26). 'macos-26' != macos-26, so the step is always skipped and none of the brew/pip dependencies get installed. The job log confirms it: there's no Install Requirements output, then the check_env failure.

Fix: Compare fromJSON(needs.configuration.outputs.runner) instead. That's the same parse runs-on already does successfully. Self-hosted runners still parse to an array, so they keep skipping the step as intended.

My earlier guess on #1 (a pip3 vs python3 mismatch) was wrong. The install step never ran.

Testing

YAML parses. Real verification is this PR's own CI run. Building the full sysroot from scratch on a hosted runner may take a long time.


Generated by Claude Code

The configuration job emits the runner as a quoted JSON string
('macos-26') for fromJSON() in runs-on, but Install Requirements
compared that raw string to env.RUNNER_IMAGE (macos-26). They never
matched, so on GitHub-hosted runners the step was always skipped and
build_dependencies.sh failed with "'six' not found". Self-hosted
runners still parse to an array and keep skipping the step.

Assisted-by: Claude:claude-opus-5-5
With Install Requirements now running on hosted runners, the sysroot
build gets to Mesa's host build, which fails at meson.build:2092 with
'Dependency "SPIRV-Tools" not found'. llvmspirvlib is already found via
Homebrew's pkg-config, so add the matching spirv-tools formula.

Assisted-by: Claude:claude-opus-5-5

Copy link
Copy Markdown
Owner Author

The sysroot fix works. Every Build Sysroot job that has finished is green on hosted runners now.

Next blocker, not fixable from this PR: Build UTM (arm64, iphoneos, ios-tci, iOS-SE) fails while compiling Swift, for example:

  • Platform/iOS/UTMExternalSceneDelegate.swift:72: cannot find 'sceneAccessory' in scope
  • Platform/Shared/VMToolbarModifier.swift:141: no member 'visibilityPriority'

The source uses iOS 27 SDK APIs, inside #available(iOS 27, *) checks. Those can only compile with Xcode 27. The newest Xcode on the macos-26 hosted image is 26.6. I checked the runner-images readmes and found no hosted image with Xcode 27. Upstream UTM builds on self-hosted runners.

Options:

  1. Point the build at a self-hosted Mac that has Xcode 27: set repo variables IS_SELF_HOSTED_RUNNER=true and HOST_XCODE_PATH=/Applications/Xcode-27.app (or wherever it's installed).
  2. Wait until GitHub ships an image with Xcode 27, then set RUNNER_IMAGE and HOST_XCODE_PATH to it.

Re-running won't help, because this is the same compiler every time. This PR still fixes a real bug: the sysroot builds used to fail in about 10 seconds and now succeed.


Generated by Claude Code

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.

2 participants