Repository navigation
[CI] Use ACES in CI builds - #25572
Conversation
…M when using ACES
There was a problem hiding this comment.
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
useACEStemplate 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. |
|
/azp run xamarin-macios-pr,xamarin-macios-pr-apidiff |
|
Azure Pipelines successfully started running 2 pipeline(s). |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ [CI Build #98fedba] Build passed (Build packages) ✅Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
✅ [CI Build #98fedba] Build passed (Detect API changes) ✅Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
✅ [CI Build #98fedba] Build passed (Build macOS tests) ✅Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
✅ [CI Build #98fedba] Prepare .NET Release succeeded ✅📦 Published NuGet packages (32 packages)iOS
MacCatalyst
macOS
tvOS
Other
Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
🔥 [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
Html Report (VSDrops) Download Successes✅ cecil: All 1 tests passed. Html Report (VSDrops) Download macOS tests✅ Tests on macOS Monterey (12): All 5 tests passed. Html Report (VSDrops) Download Linux Build VerificationPipeline on Agent |
|
Different test timed out between the last two runs so they are unrelated to this PR |
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)
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>
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.ymlrun-ci-api-diff.ymlrun-post-ci-build-tests.ymlThe PR entry points remain opt-out for now and can be flipped later once CI is stable:
build-pull-request.ymlrun-pr-api-diff.ymlrun-post-pr-build-tests.ymlWhat changed
useACEStemplate parameter to route CI build, API diff, and simulator-test jobs to the ACES shared pool/image.useACESis false.VM_VENDOR=ACESso tests that should not run on virtualized machines can opt out correctly.xcode-selectfor build configuration and pre-configure provisioning, so ACES agents with/Applications/Xcode_26.5.appdo not require symlinks or the traditional/Applications/Xcode_26.5.0.appbundle name.System.Net.Httpmonotouch 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: