Skip to content

[CI] Use ACES in CI builds - #25572

Merged
dalexsoto merged 27 commits into
mainfrom
release-test/use-aces
Jun 4, 2026
Merged

dalexsoto merged 27 commits into
mainfrom
release-test/use-aces

Conversation

@dalexsoto

@dalexsoto dalexsoto commented May 29, 2026 •

Copy link
Copy Markdown
Member

Move the CI build/test/API-diff flows to the ACES shared macOS pool while keeping PR validation on the existing PR pool for now.

Scope

This PR enables ACES for the CI entry points only:

  • build-pipeline.yml
  • run-ci-api-diff.yml
  • run-post-ci-build-tests.yml

The PR entry points remain opt-out for now and can be flipped later once CI is stable:

  • build-pull-request.yml
  • run-pr-api-diff.yml
  • run-post-pr-build-tests.yml

What changed

  • Added/used the useACES template parameter to route CI build, API diff, and simulator-test jobs to the ACES shared pool/image.
  • Kept the existing non-ACES pool and demand behavior when useACES is false.
  • Marked ACES simulator-test jobs with VM_VENDOR=ACES so tests that should not run on virtualized machines can opt out correctly.
  • Avoid deleting simulator runtimes on ACES, since that operation is not supported/reliable there.
  • Wait longer for non-x64 simulator cleanup to complete before continuing.
  • Skip x64 simulator test runs on ACES machines.
  • Use the Xcode selected by xcode-select for build configuration and pre-configure provisioning, so ACES agents with /Applications/Xcode_26.5.app do not require symlinks or the traditional /Applications/Xcode_26.5.0.app bundle name.
  • Harden the System.Net.Http monotouch tests against transient CI/httpbin network timeouts so network stalls do not hang the entire monotouch app until the harness timeout.

Related Xcode path support

This branch includes the configure support from #25622. The CI templates use the selected Xcode developer root so both classic bots and ACES images can configure/build with the Xcode that is actually installed on the agent.

Validation notes

The original green build links in this PR description became stale as the branch evolved. Recent follow-up failures were investigated and resulted in the Xcode selection and network-timeout fixes included here. The intended validation matrix is:

  • CI Build on ACES
  • CI API diff on ACES
  • Post-CI simulator tests on ACES
  • PR pipelines still using the existing PR pool

Copilot AI review requested due to automatic review settings May 29, 2026 01:20
@dalexsoto
dalexsoto requested a review from rolfbjarne as a code owner May 29, 2026 01:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adds ACES pool support for CI Azure DevOps builds while keeping PR pipelines on the existing Mac pools. It also adjusts CI/test behavior for VM-backed agents and adds a few test resiliency updates.

Changes:

  • Adds and propagates a useACES template parameter through build, API diff, and simulator-test pipeline templates.
  • Switches CI entry pipelines to ACES while leaving PR entry pipelines on legacy pools.
  • Updates selected tests/utilities to account for ACES VM environments and CI-specific network/folder behavior.

Reviewed changes

Copilot reviewed 27 out of 27 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tools/devops/automation/templates/variables/common.yml Defines ACES pool variables and documents the per-pipeline switch.
tools/devops/automation/templates/tests/stage.yml Adds ACES pool selection and VM_VENDOR for simulator tests.
tools/devops/automation/templates/tests/build.yml Adds retry handling for Provisionator dependencies.
tools/devops/automation/templates/tests-stage.yml Propagates useACES to simulator tests and macOS-test build jobs.
tools/devops/automation/templates/pipelines/run-tests-pipeline.yml Exposes and forwards the useACES parameter.
tools/devops/automation/templates/pipelines/api-diff-pipeline.yml Adds useACES forwarding for API diff pipelines.
tools/devops/automation/templates/main-stage.yml Adds useACES forwarding to the main build stage.
tools/devops/automation/templates/build/build-stage.yml Switches build job pool selection based on useACES.
tools/devops/automation/templates/build/build-mac-tests-stage.yml Switches macOS test-build pool selection based on useACES.
tools/devops/automation/templates/build/api-diff-stage.yml Switches API diff job pool selection based on useACES.
tools/devops/automation/templates/api-diff-stage.yml Propagates useACES to API diff job template.
tools/devops/automation/run-pr-api-diff.yml Keeps PR API diff off ACES.
tools/devops/automation/run-post-pr-build-tests.yml Keeps PR post-build simulator tests off ACES.
tools/devops/automation/run-post-ci-build-tests.yml Enables ACES for CI post-build simulator tests.
tools/devops/automation/run-ci-api-diff.yml Enables ACES for CI API diff.
tools/devops/automation/build-pull-request.yml Keeps PR builds off ACES.
tools/devops/automation/build-pipeline.yml Enables ACES for CI builds.
tests/xharness/AppRunner.cs Forwards VM_VENDOR into launched test apps in CI.
tests/monotouch-test/VideoToolbox/VTMotionEstimationSessionTest.cs Skips selected tests on VM-backed macOS/Mac Catalyst runs.
tests/monotouch-test/VideoToolbox/VTCompressionSessionTests.cs Skips multi-image compression test on VM-backed macOS/Mac Catalyst runs.
tests/monotouch-test/System.Net.Http/NetworkResources.cs Adds an HTTP Microsoft URI helper.
tests/monotouch-test/Network/NWParametersTest.cs Uses the HTTP Microsoft URI host for port-80 Network tests.
tests/monotouch-test/Network/NWConnectionTest.cs Uses the HTTP Microsoft URI host for Network connection tests.
tests/monotouch-test/Metal/MTLDeviceTests.cs Skips one Metal test on VM-backed runs.
tests/monotouch-test/AudioToolbox/AudioQueueTest.cs Skips channel assignment test on VM-backed runs.
tests/linker/link sdk/LinkSdkRegressionTest.cs Tolerates missing standard user folders on macOS CI images.
tests/common/TestRuntime.cs Makes VM detection active on all platforms.

Comment thread tests/xharness/AppRunner.cs Resolved
@dalexsoto

Copy link
Copy Markdown
Member Author

/azp run xamarin-macios-pr,xamarin-macios-pr-apidiff

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 2 pipeline(s).

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@dalexsoto

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 3 pipeline(s).

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ [CI Build #98fedba] Build passed (Build packages) ✅

Pipeline on Agent
Hash: 98fedba6bbf4d50143e84d686a4b499b856d52c3 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ [CI Build #98fedba] Build passed (Detect API changes) ✅

Pipeline on Agent
Hash: 98fedba6bbf4d50143e84d686a4b499b856d52c3 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@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: 98fedba6bbf4d50143e84d686a4b499b856d52c3 [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ [CI Build #98fedba] Build passed (Build macOS tests) ✅

Pipeline on Agent
Hash: 98fedba6bbf4d50143e84d686a4b499b856d52c3 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ [CI Build #98fedba] Prepare .NET Release succeeded ✅

📦 Published NuGet packages (32 packages)

iOS

  • Microsoft.iOS.Ref.net10.0_26.5.26.5.10299-ci.release-test-use-aces.nupkg
  • Microsoft.iOS.Runtime.ios-arm64.net10.0_26.5.26.5.10299-ci.release-test-use-aces.nupkg
  • Microsoft.iOS.Runtime.ios.net10.0_26.5.26.5.10299-ci.release-test-use-aces.nupkg
  • Microsoft.iOS.Runtime.iossimulator-arm64.net10.0_26.5.26.5.10299-ci.release-test-use-aces.nupkg
  • Microsoft.iOS.Runtime.iossimulator-x64.net10.0_26.5.26.5.10299-ci.release-test-use-aces.nupkg
  • Microsoft.iOS.Sdk.net10.0_26.5.26.5.10299-ci.release-test-use-aces.nupkg
  • Microsoft.iOS.Templates.26.5.10299-ci.release-test-use-aces.nupkg
  • Microsoft.iOS.Windows.Sdk.net10.0_26.5.26.5.10299-ci.release-test-use-aces.nupkg
  • Microsoft.NET.Sdk.iOS.Manifest-10.0.400-preview.0.26.5.10299-ci.release-test-use-aces.nupkg

MacCatalyst

  • Microsoft.MacCatalyst.Ref.net10.0_26.5.26.5.10299-ci.release-test-use-aces.nupkg
  • Microsoft.MacCatalyst.Runtime.maccatalyst-arm64.net10.0_26.5.26.5.10299-ci.release-test-use-aces.nupkg
  • Microsoft.MacCatalyst.Runtime.maccatalyst-x64.net10.0_26.5.26.5.10299-ci.release-test-use-aces.nupkg
  • Microsoft.MacCatalyst.Runtime.maccatalyst.net10.0_26.5.26.5.10299-ci.release-test-use-aces.nupkg
  • Microsoft.MacCatalyst.Sdk.net10.0_26.5.26.5.10299-ci.release-test-use-aces.nupkg
  • Microsoft.MacCatalyst.Templates.26.5.10299-ci.release-test-use-aces.nupkg
  • Microsoft.NET.Sdk.MacCatalyst.Manifest-10.0.400-preview.0.26.5.10299-ci.release-test-use-aces.nupkg

macOS

  • Microsoft.macOS.Ref.net10.0_26.5.26.5.10299-ci.release-test-use-aces.nupkg
  • Microsoft.macOS.Runtime.osx-arm64.net10.0_26.5.26.5.10299-ci.release-test-use-aces.nupkg
  • Microsoft.macOS.Runtime.osx-x64.net10.0_26.5.26.5.10299-ci.release-test-use-aces.nupkg
  • Microsoft.macOS.Runtime.osx.net10.0_26.5.26.5.10299-ci.release-test-use-aces.nupkg
  • Microsoft.macOS.Sdk.net10.0_26.5.26.5.10299-ci.release-test-use-aces.nupkg
  • Microsoft.macOS.Templates.26.5.10299-ci.release-test-use-aces.nupkg
  • Microsoft.NET.Sdk.macOS.Manifest-10.0.400-preview.0.26.5.10299-ci.release-test-use-aces.nupkg

tvOS

  • Microsoft.NET.Sdk.tvOS.Manifest-10.0.400-preview.0.26.5.10299-ci.release-test-use-aces.nupkg
  • Microsoft.tvOS.Ref.net10.0_26.5.26.5.10299-ci.release-test-use-aces.nupkg
  • Microsoft.tvOS.Runtime.tvos-arm64.net10.0_26.5.26.5.10299-ci.release-test-use-aces.nupkg
  • Microsoft.tvOS.Runtime.tvos.net10.0_26.5.26.5.10299-ci.release-test-use-aces.nupkg
  • Microsoft.tvOS.Runtime.tvossimulator-arm64.net10.0_26.5.26.5.10299-ci.release-test-use-aces.nupkg
  • Microsoft.tvOS.Runtime.tvossimulator-x64.net10.0_26.5.26.5.10299-ci.release-test-use-aces.nupkg
  • Microsoft.tvOS.Sdk.net10.0_26.5.26.5.10299-ci.release-test-use-aces.nupkg
  • Microsoft.tvOS.Templates.26.5.10299-ci.release-test-use-aces.nupkg

Other

  • Sharpie.Bind.Tool.26.5.0.299-ci.release-test-use-aces.nupkg

Pipeline on Agent
Hash: 98fedba6bbf4d50143e84d686a4b499b856d52c3 [PR build]

@dalexsoto
dalexsoto enabled auto-merge (squash) June 4, 2026 17:03
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🔥 [CI Build #98fedba] Test results 🔥

Test results

❌ Tests failed on VSTS: test results

0 tests crashed, 4 tests failed, 189 tests passed.

Failures

❌ monotouch tests (macOS) [attempt 3]

4 tests failed, 19 tests passed.

Failed tests

  • monotouch-test/macOS/Debug (trimmable static registrar): TimedOut (Execution timed out after 1200 seconds.
    Test run crashed)
  • monotouch-test/macOS/Release (trimmable static registrar, all optimizations): TimedOut (Execution timed out after 1200 seconds.
    Test run crashed)
  • monotouch-test/macOS/Release (NativeAOT, x64): TimedOut (Execution timed out after 1200 seconds.
    Test run crashed)
  • monotouch-test/macOS/Release (NativeAOT, .NET 11 defaults): TimedOut (Execution timed out after 1200 seconds.
    Test run crashed)

Html Report (VSDrops) Download

Successes

✅ 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 6 tests passed. Html Report (VSDrops) Download
✅ linker (iOS): All 11 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ linker (MacCatalyst): All 11 tests passed. Html Report (VSDrops) Download
✅ linker (macOS): All 11 tests passed. Html Report (VSDrops) Download
✅ linker (tvOS): All 11 tests passed. Html Report (VSDrops) Download
✅ monotouch (iOS): All 20 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 23 tests passed. Html Report (VSDrops) Download
✅ monotouch (tvOS): All 20 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ sharpie: All 1 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

macOS tests

✅ Tests on macOS Monterey (12): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Ventura (13): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sequoia (15): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Tahoe (26): All 5 tests passed. Html Report (VSDrops) Download

Linux Build Verification

✅ Linux build succeeded

Pipeline on Agent
Hash: 98fedba6bbf4d50143e84d686a4b499b856d52c3 [PR build]

@dalexsoto
dalexsoto disabled auto-merge June 4, 2026 21:43
@dalexsoto

Copy link
Copy Markdown
Member Author

Different test timed out between the last two runs so they are unrelated to this PR

@dalexsoto
dalexsoto enabled auto-merge (squash) June 4, 2026 21:45
@dalexsoto
dalexsoto disabled auto-merge June 4, 2026 21:45
@dalexsoto
dalexsoto merged commit 4d39e1b into main Jun 4, 2026
62 of 64 checks passed
@dalexsoto
dalexsoto deleted the release-test/use-aces branch June 4, 2026 21:45
dalexsoto added a commit that referenced this pull request Jun 20, 2026
Move the CI build/test/API-diff flows to the ACES shared macOS pool
while keeping PR validation on the existing PR pool for now.

This PR enables ACES for the CI entry points only:

- `build-pipeline.yml`
- `run-ci-api-diff.yml`
- `run-post-ci-build-tests.yml`

The PR entry points remain opt-out for now and can be flipped later once
CI is stable:

- `build-pull-request.yml`
- `run-pr-api-diff.yml`
- `run-post-pr-build-tests.yml`

- Added/used the `useACES` template parameter to route CI build, API
diff, and simulator-test jobs to the ACES shared pool/image.
- Kept the existing non-ACES pool and demand behavior when `useACES` is
false.
- Marked ACES simulator-test jobs with `VM_VENDOR=ACES` so tests that
should not run on virtualized machines can opt out correctly.
- Avoid deleting simulator runtimes on ACES, since that operation is not
supported/reliable there.
- Wait longer for non-x64 simulator cleanup to complete before
continuing.
- Skip x64 simulator test runs on ACES machines.
- Use the Xcode selected by `xcode-select` for build configuration and
pre-configure provisioning, so ACES agents with
`/Applications/Xcode_26.5.app` do not require symlinks or the
traditional `/Applications/Xcode_26.5.0.app` bundle name.
- Harden the `System.Net.Http` monotouch tests against transient
CI/httpbin network timeouts so network stalls do not hang the entire
monotouch app until the harness timeout.

This branch includes the configure support from #25622. The CI templates
use the selected Xcode developer root so both classic bots and ACES
images can configure/build with the Xcode that is actually installed on
the agent.

The original green build links in this PR description became stale as
the branch evolved. Recent follow-up failures were investigated and
resulted in the Xcode selection and network-timeout fixes included here.
The intended validation matrix is:

- CI Build on ACES
- CI API diff on ACES
- Post-CI simulator tests on ACES
- PR pipelines still using the existing PR pool

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
(cherry picked from commit 4d39e1b)
dalexsoto added a commit that referenced this pull request Jun 20, 2026
The xamarin-macios-sim-pr-tests pipeline (run-post-pr-build-tests.yml)
fails on the traditional PR pool: xharness cannot create the simulator
device types during task population, aborting every simulator test leg.

Flip useACES to true so PR simulator tests run on the ACES shared pool /
image (a clean VM without the extra Xcodes installed on the traditional
bots), to test whether that resolves the simulator device-type failure.

This relies on the ACES infrastructure backported in #25622, #25572 and
#25684.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

5 participants