Skip to content

[CI] Provisionator XcodeSelect subprocess hangs until the 180-minute job cap #26226

Closed

Description

@dalexsoto

Failure signature

Provision Products & Frameworks installs and expands Xcode successfully, then hangs for roughly 2 hours 53 minutes in an Xcode-selection subprocess until Azure cancels the job at its 180-minute limit.

The last command differs, but both hangs occur in Provisionator's XcodeSelect flow immediately after selecting the newly installed Xcode:

/usr/bin/arch -arm64 ... xcodebuild -license check

or:

/usr/bin/defaults read .../Settings.plist AppleSdkRoot

Confirmed occurrences

PR / head Build and job Last command Outcome
#26214 / cbe4d8f45bb02ec0f286f978d8314cff0841b1c0 14720423 - Build macOS tests defaults read .../maui/Settings.plist AppleSdkRoot No output for about 2h53m; Azure canceled the job. The PR is conflict-blocked.
#26198 / 0a8a95dd2f117727a1b51b46e043def81ca7664a 14720520 - Build macOS tests xcodebuild -license check No output for about 2h53m; Azure canceled the job. The build remains active.

First observed: 2026-07-21 21:00 UTC. Latest observed: 2026-07-22 00:21 UTC. Recurrence: 2 jobs across 2 distinct monitored PRs.

Classification and impact

This is CI infrastructure/tooling behavior, not a source regression. Xcode 26.6 downloads at roughly 10-11 MB/s, expands, and reaches the Xcode-selection phase before the child process hangs. The affected jobs never reach the build or tests.

Investigation

  • Inspected both Azure timelines and complete provisioning task tails.
  • Confirmed the preceding Xcode download and expansion completed normally.
  • Correlated the identical 180-minute cancellation timing and XcodeSelect phase.
  • Searched open and closed dotnet/macios issues using the task name, XcodeSelect, license-check, defaults-read, and AppleSdkRoot signatures; no match was found.

Workaround

Rerun failed jobs after the affected host/process state recovers, subject to conflict and retry-budget gates. Do not retry while an equivalent build is active. Azure task logs have limited retention.

Activity

  1. dalexsoto commented on Jul 22, 2026

    @dalexsoto
    MemberAuthor

    PR #26198 retry update: build 14720520 completed terminal, with no prior retries or equivalent build active. Build_macos_tests attempt 2 was accepted at 00:34 UTC to rerun Build macOS tests. Two separately counted stage requests were accepted for this PR; current budget is 2 lifetime / 2 on this head.

  2. dalexsoto commented on Jul 22, 2026

    @dalexsoto
    MemberAuthor

    New affected PR: #26188 @ fc3b9163c9b6de1eee35029949ae395174253e51, build 14720595, job xtro. Xcode installed successfully, then Provisionator hung for about 2h53m in defaults read .../maui/Settings.plist AppleSdkRoot until the 180-minute cap.

    The signature now affects 3 jobs across 3 monitored PRs. No retry was submitted because retained Azure history for older same-head build 14718729 has no retrievable timeline, leaving retry accounting unresolved.

  3. dalexsoto commented on Jul 22, 2026

    @dalexsoto
    MemberAuthor

    Final retry outcome: merged PR #26198 build 14720520 build_macos_tests attempt 2 completed successfully. Build macOS tests passed, the overall build succeeded, and the PR merged at 01:43 UTC.

  4. dalexsoto commented on Jul 22, 2026

    @dalexsoto
    MemberAuthor

    External retry update: attempt 2 requests became active around 05:34 UTC for PR #26188 build 14720595 (simulator_tests, including xtro) and conflict-blocked PR #26214 build 14720423 (build_macos_tests). These rerun the previously recorded XcodeSelect hangs. No retry was initiated by this monitor; #26214 remains CONFLICTING / DIRTY.

  5. dalexsoto commented on Jul 22, 2026

    @dalexsoto
    MemberAuthor

    External retry outcome: PR #26214 old-head build 14720423 completed canceled after the PR advanced to head 8806526.... The build_macos_tests retry did not produce a retained terminal timeline. This does not change the XcodeSelect-hang diagnosis; the new head has fresh CI running.

  6. added this to the Future milestone on Jul 22, 2026
  7. added
    ci-failure
    tests
    ci-postmortem
    on Jul 22, 2026
  8. dalexsoto commented on Jul 22, 2026

    @dalexsoto
    MemberAuthor

    External retry outcome: merged PR #26188 build 14720595 simulator_tests attempt 2 completed successfully. Xtro passed, the overall build succeeded, and the PR merged at 07:24 UTC.

  9. dalexsoto commented on Jul 22, 2026

    @dalexsoto
    MemberAuthor

    Two new XcodeSelect hangs on #26243 @ 3826c3e6088150773f93426463f03ba15d24ffc2, build 14734013 attempt 1:

    The signature now affects 5 jobs across 4 monitored PRs. A simulator-stage retry request was conclusively rejected because the run state changed after a separate macOS-stage retry was accepted; no simulator attempt was created, so the reservation was released. Simulator retry is deferred until the current stage attempt is terminal.

  10. dalexsoto commented on Jul 22, 2026

    @dalexsoto
    MemberAuthor

    Retry update for #26243 @ 3826c3e6088150773f93426463f03ba15d24ffc2: build 14734013 first completed its separate build_macos_tests attempt 2 successfully. With the run terminal again, simulator_tests attempt 2 was accepted to rerun the framework and xcframework XcodeSelect hangs and is now in progress.

    Reconciled budget is 2 lifetime / 2 current-head requests. The signature count remains 5 jobs across 4 monitored PRs.

  11. dalexsoto commented on Jul 23, 2026

    @dalexsoto
    MemberAuthor

    Two XcodeSelect hangs were confirmed on newly affected PR #26266, superseded head b9443d00977f6552c9349da26d3c0fc4dbfd534b, build 14748737 attempt 1:

    The signature now covers 7 jobs across 5 monitored PRs. No retry was submitted because this run belongs to a superseded PR head; the current head has a separate failed-jobs retry in progress for slow-download failures tracked by #26212.

  12. dalexsoto commented on Jul 24, 2026

    @dalexsoto
    MemberAuthor

    New XcodeSelect hang on #26272 @ 0e2625ba3f0959ccb6b5945e29bffd013793e3fe: build 14752825 attempt 1 - dotnettests_macos / Provisionator dependencies on AcesShared 11. Xcode installed and codesign verification succeeded, then /usr/bin/arch -arm64 /usr/bin/xcode-select --print-path produced no output until the 180-minute cap.

    The signature now covers 8 jobs across 6 monitored PRs. Build 14752825 simulator_tests attempt 2 was accepted to rerun dotnettests_macos and xtro (budget: 1 lifetime / 1 current head).

  13. dalexsoto commented on Jul 24, 2026

    @dalexsoto
    MemberAuthor

    Final retry outcome for #26272 @ 0e2625ba3f0959ccb6b5945e29bffd013793e3fe: build 14752825 simulator_tests attempt 2 completed successfully. The previously hung dotnettests_macos job passed, xtro passed, publishing succeeded, and the overall build is green. Retry budget usage: 1 lifetime / 1 current head. The recurrence count remains 8 jobs across 6 monitored PRs.

  14. dalexsoto commented on Jul 24, 2026

    @dalexsoto
    MemberAuthor

    New XcodeSelect hang on #26277 @ 00ea7d601b6f6966be98712c17e71b3f969626c5: build 14753443 attempt 1 — fsharp / Provisionator dependencies on AcesShared 46. Xcode installation and codesign completed, then /usr/bin/arch -arm64 /usr/bin/xcode-select --print-path produced no output until the 180-minute cap.

    The signature now covers 9 jobs across 7 monitored PRs. Build 14753443 simulator_tests attempt 2 was accepted to rerun fsharp and cecil (budget: 1 lifetime / 1 current head).

  15. dalexsoto commented on Jul 24, 2026

    @dalexsoto
    MemberAuthor

    Final retry outcome for #26277 @ 00ea7d601b6f6966be98712c17e71b3f969626c5: build 14753443 simulator_tests attempt 2 completed successfully. The previously hung fsharp job passed, cecil passed, publishing succeeded, and the overall build is green. Retry budget usage: 1 lifetime / 1 current head. The recurrence count remains 9 jobs across 7 monitored PRs.

  16. dalexsoto commented on Jul 24, 2026

    @dalexsoto
    MemberAuthor

    New XcodeSelect hang on #26285 @ 519c5da35aaa8791a48b23a42c0012ad84c38715: build 14756478 attempt 1 — monotouch_tvos / Provisionator dependencies on AcesShared 18. Xcode 27 beta 4 expansion, installation, and codesign completed; /usr/bin/arch -arm64 /usr/bin/xcode-select --print-path then produced no output until the 180-minute cap.

    The signature now covers 10 jobs across 8 monitored PRs. Build 14756478 remains active, so no retry has been submitted yet.

  17. dalexsoto commented on Jul 24, 2026

    @dalexsoto
    MemberAuthor

    Retry update for #26285 @ 519c5da35aaa8791a48b23a42c0012ad84c38715: build 14756478 simulator_tests attempt 2 was accepted using failed-jobs semantics. It is rerunning the monotouch_tvos job affected by the xcode-select --print-path hang together with the separately classified monotouch_ios failure.

    A separate mac_26_arm64 attempt 2 was also accepted for the Tahoe network-test failure. Total retry usage is 3 lifetime / 3 current-head requests. The XcodeSelect recurrence count remains 10 jobs across 8 monitored PRs.

  18. dalexsoto commented on Jul 24, 2026

    @dalexsoto
    MemberAuthor

    Retry outcome for #26285 @ 519c5da35aaa8791a48b23a42c0012ad84c38715: build 14756478 simulator_tests attempt 2 has cleared the XcodeSelect-affected monotouch_tvos job, which passed. The request remains active only for the separately classified monotouch_ios marshalling recurrence.

    Total retry usage remains 3 lifetime / 3 current-head requests. The XcodeSelect recurrence count remains 10 jobs across 8 monitored PRs.

  19. dalexsoto commented on Jul 27, 2026

    @dalexsoto
    MemberAuthor

    New occurrence on #26281 @ 39fa0abc:

    PR / head Build and job Last command Outcome
    #26281 / 39fa0abc 14778888 attempt 1 — Build packages / Provision Products & Frameworks /usr/bin/arch -arm64 /usr/bin/defaults read /Users/builder/Library/Preferences/maui/Settings.plist AppleSdkRoot No output for 4h10m (18:43:55 → 22:53:48 UTC); the task hit its own timeout rather than the 180-minute job cap. Worker VSCXSDKs-MINI-103.Tahoe.arm64

    This matches the recorded XcodeSelect hang exactly, including the same defaults read .../maui/Settings.plist AppleSdkRoot variant previously seen on #26214.

    Notably, no Xcode download was involved at all — the log contains zero progress lines and reports:

    [11:43:54 INF] Xcode 27.0.0-beta.4: EvaluatingCondition -> AlreadyProvisioned
    [11:43:54 INF] Xcode 27.0.0-beta.4: already provisioned
    [11:43:54 INF] ====== Provisioning Xcode Select 27.0.0-beta.4 ======
    [11:43:54 INF] Xcode Select 27.0.0-beta.4: Selected -> EvaluatingCondition
    [11:43:55 VRB] Exec[4] (flags: RedirectStdout, RedirectStderr, Default): /usr/bin/arch -arm64 /usr/bin/defaults read .../maui/Settings.plist AppleSdkRoot
    2026-07-27T22:53:48.9532270Z ##[error]The task has timed out.
    

    That isolates the hang to the XcodeSelect subprocess itself and rules out slow-download/bandwidth explanations for this occurrence: Xcode was already present, and the very next spawned subprocess never returned. The subprocess is spawned with RedirectStdout, RedirectStderr, which is consistent with a stuck child process whose output is never drained.

    Classification: CI infrastructure failure. The PR's only change in this head is a one-line xtro annotation, and the job never reached build or test execution.

    Retry outcome: the PR head, mergeability (MERGEABLE, conflict-free) and retry accounting were refreshed first; the build was terminal and no equivalent rerun was active. An Azure DevOps rerun failed jobs request was accepted and created attempt 2 for Build packages, which is now in progress. Retry usage for #26281 is 3 lifetime / 1 current-head request (the 2 earlier lifetime retries were on older heads, builds 14753858 and 14758257).

    Issue-specific diagnostic checklist: none — this issue has no Additional info to collect section.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ci-failureci-postmortemtests

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions