Skip to content

Conversation

@rmarinho
Copy link
Member

@rmarinho rmarinho commented Jan 12, 2026

Description of Change

Try fix issues where it can t find the correct .app to run the uitests

https://dev.azure.com/dnceng-public/public/_build/results?buildId=1249376&view=results

This pull request improves support for ARM64 architecture in both CI pipelines and test project configurations. The changes ensure that device and UI tests run on ARM64 agents and expand runtime identifiers for better platform coverage.

CI Pipeline Updates for ARM64:

  • Added an explicit demand for Agent.OSArchitecture -equals ARM64 to the MAUI pool in both ci-device-tests.yml and ci-uitests.yml, ensuring these pipelines run on ARM64 agents. [1] [2] [3]

Test Project Runtime Identifier Enhancements:

  • Updated Controls.TestCases.HostApp.csproj to always include both maccatalyst-x64 and maccatalyst-arm64 runtime identifiers for Mac Catalyst targets, regardless of host architecture. Also added iossimulator-x64 and iossimulator-arm64 for iOS targets, improving test coverage across architectures.

Copilot AI review requested due to automatic review settings January 12, 2026 12:26
@rmarinho rmarinho added area-testing Unit tests, device tests testing-flakiness testing-infrastructure Issue relating to testing infrastructure labels Jan 12, 2026
Copy link
Contributor

Copilot AI left a comment

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 addresses a build configuration issue in the iOS UITest infrastructure by ensuring that both simulator architectures (x64 and arm64) are built when running on Apple Silicon machines. This fixes failures where the test runner couldn't locate the correct .app bundle for UI tests.

Changes:

  • Added runtime identifier configuration for iOS simulator builds on arm64 host machines to include both x64 and arm64 architectures

@rmarinho
Copy link
Member Author

/azp run maui-pr-uitests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dotnet dotnet deleted a comment from azure-pipelines bot Jan 12, 2026
@rmarinho
Copy link
Member Author

/azp run maui-pr-uitests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rmarinho rmarinho changed the title [ci] Build both platforms for iOS UITests [ci] Build and run on ARM platforms for iOS UITests and device tests Jan 12, 2026
@rmarinho
Copy link
Member Author

/azp run maui-pr-uitests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rmarinho
Copy link
Member Author

/azp run maui-pr-devicetests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

…l binary lookup

- Remove RuntimeIdentifiers for iOS and macCatalyst from csproj (was applying to all builds)
- Add multi-RID build logic in uitests-apphost task for ARM64 CI agents only
- Update devices-shared.cake to prefer universal binary in parent directory
- Fixes code signing issue where RID-specific apps had stale signatures
@PureWeen
Copy link
Member

/azp run maui-pr-uitests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

- Move RuntimeIdentifiers back to csproj with CI condition
- Use '' == 'true' or '' == 'true' pattern (matches Core.DeviceTests)
- Remove cake-based RuntimeIdentifiers logic (no longer needed)
- Fixes issue where platform argument wasn't being passed to cake
@PureWeen
Copy link
Member

/azp run maui-pr-uitests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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

Labels

area-testing Unit tests, device tests testing-flakiness testing-infrastructure Issue relating to testing infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants