Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/docs/maui-ci-facts.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,32 @@ Most failures are in `maui-pr`. Focus on the first failing pipeline before other
`/azp run maui-pr` (or `maui-pr-devicetests`, `maui-pr-uitests`). `maui-pr-devicetests`
and `maui-pr-uitests` may not run automatically depending on the changed files.

### Shared macOS image selection

GoldenGate routing is a temporary RC2 workaround. Return to the standard images
once they include Xcode compatible with the pinned Apple SDK.

All public and internal macOS pool defaults in `ci.yml`, `ci-device-tests.yml`,
and `ci-uitests.yml` use `AcesShared` with
`ImageOverride -equals $(AcesMacImageOverride)`. This covers build, pack, integration,
shared UI app builds, iOS and MacCatalyst UI runs, and device-test app builds.
Pool parameters still support caller overrides. Select the image
once in `eng/pipelines/common/variables.yml`; RC2 uses `ACES_VM_SharedPool_GoldenGate`,
the image selected for official builds in #38852. Do not pin an Xcode application
path in individual pipeline demands.

The Aces image is independent of `HostedMacImage`: Azure Pipelines hosted images
and Aces images receive new Xcode versions at different times. The older Aces Tahoe
image only had Xcode 26.x, which cannot build the RC2 Apple SDK.

Keep shared Xcode selection and simulator provisioning enabled for the test jobs.
Provisioning accepts the image-selected Xcode when its reported major/minor version
matches `$(XCODE)`, including prerelease bundles with nonstandard filenames. If it
does not match, the existing named-bundle lookup and missing-Xcode error still apply.
The official pack-only job can use `skipXcode: true`, but that also skips simulator
setup in `common/provision.yml`, which iOS UI tests need. Device-test execution
still uses the Helix queues in `eng/helix_xharness.proj`.

## AzDO data sources

- Primary access is **anonymous/public** REST: `builds`, `builds/{id}/timeline`,
Expand Down
14 changes: 10 additions & 4 deletions eng/pipelines/ci-device-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ variables:

parameters:

# Temporary RC2 workaround: macOS defaults use GoldenGate until standard images
# provide Xcode compatible with the pinned Apple SDK.
# Internal pools (dnceng)
- name: windowsPoolInternal
type: object
Expand All @@ -68,14 +70,18 @@ parameters:
- name: macOSTestPoolInternal
type: object
default:
name: Azure Pipelines
vmImage: macOS-15-arm64
name: AcesShared
demands:
- ImageOverride -equals $(AcesMacImageOverride)
os: macOS

- name: macOSPoolInternal
type: object
default:
name: Azure Pipelines
vmImage: macOS-15-arm64
name: AcesShared
demands:
- ImageOverride -equals $(AcesMacImageOverride)
os: macOS

# Public pools (dnceng-public)
- name: windowsPoolPublic
Expand Down
22 changes: 14 additions & 8 deletions eng/pipelines/ci-uitests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,15 @@ parameters:
type: boolean
default: false

# Temporary RC2 workaround: macOS build and UI-test pools use GoldenGate until
# standard images provide Xcode compatible with the pinned Apple SDK.
# Internal pools (dnceng)
- name: androidPoolInternal
type: object
default:
name: Azure Pipelines
vmImage: macOS-15-arm64
name: AcesShared
demands:
- ImageOverride -equals $(AcesMacImageOverride)

- name: androidPoolLinuxInternal
type: object
Expand All @@ -81,8 +84,9 @@ parameters:
- name: iosPoolInternal
type: object
default:
name: Azure Pipelines
vmImage: macOS-15-arm64
name: AcesShared
demands:
- ImageOverride -equals $(AcesMacImageOverride)

- name: windowsBuildPoolInternal
type: object
Expand All @@ -101,8 +105,9 @@ parameters:
- name: macosPoolInternal
type: object
default:
name: Azure Pipelines
vmImage: macOS-14
name: AcesShared
demands:
- ImageOverride -equals $(AcesMacImageOverride)

# Public pools (dnceng-public)
- name: androidPoolPublic
Expand Down Expand Up @@ -143,8 +148,9 @@ parameters:
- name: macosPoolPublic
type: object
default:
name: Azure Pipelines
vmImage: macOS-14
name: AcesShared
demands:
- ImageOverride -equals $(AcesMacImageOverride)

stages:

Expand Down
115 changes: 0 additions & 115 deletions eng/pipelines/ci.Tests.ps1

This file was deleted.

32 changes: 16 additions & 16 deletions eng/pipelines/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ parameters:
- Debug
- Release

# Temporary RC2 workaround: macOS defaults use GoldenGate until standard images
# provide Xcode compatible with the pinned Apple SDK.
- name: BuildPlatforms
type: object
default:
Expand All @@ -59,8 +61,9 @@ parameters:
os: Windows
buildScript: $(_buildScript)
sln: '$(Build.SourcesDirectory)/Microsoft.Maui.sln'
- name: MAUI
vmImage: MAUI
- name: AcesShared
demands:
- ImageOverride -equals $(AcesMacImageOverride)
Comment on lines +64 to +66

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That s fine , we don t really need to do unit tests on yaml

os: macOS
buildScript: $(_buildScriptMacOS)
sln: '$(Build.SourcesDirectory)/Microsoft.Maui-mac.slnf'
Expand All @@ -74,9 +77,9 @@ parameters:
os: Windows
buildScript: $(_buildScript)
sln: '$(Build.SourcesDirectory)/Microsoft.Maui.sln'
- name: MAUI
- name: AcesShared
demands:
- xcode -equals /Applications/Xcode_27.0.0-rc.app/Contents/Developer
- ImageOverride -equals $(AcesMacImageOverride)
os: macOS
buildScript: $(_buildScriptMacOS)
sln: '$(Build.SourcesDirectory)/Microsoft.Maui-mac.slnf'
Expand All @@ -95,24 +98,21 @@ parameters:
- ImageOverride -equals 1es-windows-2022-open
os: windows

# Typically X64 pools but XCode 26.2 isn't available yet for the Azure Pipelines X64 Pools
# Apple jobs share the Aces image used by UI and device test builds.
- name: MacOSPool
type: object
default:
internal:
name: Azure Pipelines
vmImage: $(HostedMacImage)
name: AcesShared
demands:
- ImageOverride -equals $(AcesMacImageOverride)
os: macOS
label: macOS
public:
name: MAUI
name: AcesShared
demands:
- xcode -equals /Applications/Xcode_27.0.0-rc.app/Contents/Developer
- ImageOverride -equals $(AcesMacImageOverride)
label: macOS
# Switch back to this once XCode 26.2 is available on Azure Pipelines
# name: Azure Pipelines
# vmImage: $(HostedMacImage)
# os: macOS
# label: macOS

- name: AndroidPoolLinux
type: object
Expand All @@ -122,8 +122,8 @@ parameters:
- ImageOverride -equals 1ESPT-Ubuntu22.04

# Condition for MacOSPool comparison lanes (non-ARM64)
# Currently disabled - both pools use MAUI self-hosted since Xcode 26.2 isn't available on Azure Pipelines x64.
# Re-enable once Azure Pipelines has Xcode 26.2 on x64 pools.
# These additional comparison lanes remain disabled; the standard build, pack,
# and ARM64 integration lanes provide public macOS coverage.
# Original condition: or(and(ne(variables['Build.Reason'], 'PullRequest'), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), and(startsWith(variables['Build.SourceBranch'], 'refs/heads/net'), endsWith(variables['Build.SourceBranch'], '.0')), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'), startsWith(variables['Build.SourceBranch'], 'refs/heads/inflight/'))), and(eq(variables['Build.Reason'], 'PullRequest'), or(and(startsWith(variables['System.PullRequest.TargetBranch'], 'net'), endsWith(variables['System.PullRequest.TargetBranch'], '.0')), startsWith(variables['System.PullRequest.TargetBranch'], 'release/'), startsWith(variables['System.PullRequest.TargetBranch'], 'inflight/'))))
- name: macOSPoolLaneCondition
type: string
Expand Down
15 changes: 15 additions & 0 deletions eng/pipelines/common/provision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,22 @@ steps:

echo "Will try Xcode versions in order: ${VERSIONS_TO_TRY[*]}"

# Temporary RC2 workaround for GoldenGate's nonstandard prerelease bundle name.
# Remove this fast path once standard images provide conventionally named, compatible Xcode.
if SELECTED_XCODE_PATH=$(xcode-select --print-path) && SELECTED_XCODE_INFO=$(xcodebuild -version); then
SELECTED_XCODE_VERSION=$(printf '%s\n' "$SELECTED_XCODE_INFO" | awk '$1 == "Xcode" { print $2; exit }')
if [[ -d "$SELECTED_XCODE_PATH" && ( "$SELECTED_XCODE_VERSION" == "$XCODE_MAJOR_MINOR" || "$SELECTED_XCODE_VERSION" == "$XCODE_MAJOR_MINOR".* ) ]]; then
XCODE_PATH="$SELECTED_XCODE_PATH"
echo "Using image-selected Xcode $SELECTED_XCODE_VERSION at $XCODE_PATH"
Comment on lines +160 to +164
fi
else
echo "##vso[task.logissue type=warning]Unable to inspect the selected Xcode; checking installed versions."
fi

for VERSION in "${VERSIONS_TO_TRY[@]}"; do
if [[ -n "$XCODE_PATH" ]]; then
break
fi
CANDIDATE_PATH="/Applications/Xcode_${VERSION}.app"
echo "Checking for Xcode ${VERSION} at ${CANDIDATE_PATH}..."
if [[ -d "$CANDIDATE_PATH" ]]; then
Expand Down
14 changes: 5 additions & 9 deletions eng/pipelines/common/variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,13 @@ variables:
- name: signingCondition
value: $[or( eq(variables['Sign'], 'true'), in(variables['Build.SourceBranch'], 'refs/heads/net9.0', 'refs/heads/net10.0', 'refs/heads/main', 'refs/heads/inflight/current' ), startsWith(variables['Build.SourceBranch'], 'refs/tags/'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/') )]
# Common Agent Pools in use
# hostedMacImage is the source of truth for Azure Pipelines hosted macOS image lanes.
# Keep the AcesMacImageOverride mapping below aligned so AcesShared lanes target
# the corresponding macOS/Xcode generation.
# Hosted and Aces images are independent: the providers receive new Xcode versions at different times.
- name: HostedMacImage
value: ${{ parameters.hostedMacImage }}
- ${{ if eq(parameters.hostedMacImage, 'macOS-26') }}:
- name: AcesMacImageOverride
value: ACES_VM_SharedPool_Tahoe
- ${{ if ne(parameters.hostedMacImage, 'macOS-26') }}:
- name: AcesMacImageOverride
value: Unsupported_HostedMacImage_${{ parameters.hostedMacImage }}_Update_AcesMacImageOverride
# Temporary RC2 workaround for Xcode availability. Return to the regular Aces image
# once it supports the pinned Apple SDK.
- name: AcesMacImageOverride
value: ACES_VM_SharedPool_GoldenGate
- name: HostedWindowsImage
value: windows-2022
- name: LogDirectory
Expand Down
Loading