[Bazel CI] macOS arm64 agents fail checkout: libxcrun from Xcode 26.6 fails to load, git mirror setup fails

Open
#33,083 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
git, java, macos

Research direction

Start with the linked Buildkite CI run and its checkout logs, then reproduce on an affected macOS arm64 agent using the provided commit and bazel test --config=ci-macos -- //src/test/... command. Trace the git mirror setup and the xcrun load failure to identify where checkout breaks. Done means the checkout and test command succeed on the affected agents.

Written by the indexing model from the issue text.

Description

team-OSS type: bug untriaged

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/5931#01a234f1-eb46-4d9e-911a-f5352b3a8113

Platform: macOS arm64

Logs:

xcrun: error: unable to load libxcrun (dlopen(/Applications/Xcode26.6.app/Contents/Developer/usr/lib/libxcrun.dylib, 0x0005): tried: '/Applications/Xcode26.6.app/Contents/Developer/usr/lib/libxcrun.dylib' ...
⚠️ Warning: Checkout failed! getting/updating git mirror: setting remote URL: exit status 1 (Attempt 1/6 ...)
...
⚠️ Warning: Checkout failed! getting/updating git mirror: setting remote URL: exit status 1 (Attempt 6/6)
🚨 Error: getting/updating git mirror: setting remote URL: exit status 1

Steps:
git clone https://github.com/bazelbuild/bazel.git
git reset dbd767eb6f69d90bffde0b1d00703356addc03dc --hard
export USE_BAZEL_VERSION=dbd767eb6f69d90bffde0b1d00703356addc03dc
bazel test --config=ci-macos -- //src/test/... # on an affected macOS arm64 agent (e.g. bk-macos-arm64-iojk)

CC Greenteam @kotlaja

Dominant language
Java
Stars
26.2k
Forks
4.7k
Avg merge
3d 11h
Merged PRs (30d)
125

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bazelbuild/bazel

All issues in bazelbuild/bazel

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.