Commit cd5374b
authored
Skip Xcode provisioning for RunOnAndroid integration tests (dotnet#34053)
RunOnAndroid integration tests run on macOS but only test Android
emulator scenarios. They were provisioning Xcode unnecessarily, wasting
~5-10 minutes per test run.
## Changes
- **`setup-test-env.yml`**: Added `skipXcode` parameter (default
`false`)
- Passes value to `provision.yml` for both `skipXcode` and
`skipSimulatorSetup`
- **`stage-integration-tests.yml`**: Skip Xcode for Android-only tests
- `skipXcode: ${{ eq(job.testCategory, 'RunOnAndroid') }}`
- All other categories (Build, Blazor, MultiProject, macOSTemplates,
AOT, RunOniOS) continue provisioning Xcode as they build or run
iOS/macOS targets
```yaml
- template: /eng/pipelines/arcade/setup-test-env.yml
parameters:
mauiSourcePath: ${{ parameters.mauiSourcePath }}
buildConfig: ${{ parameters.buildConfig }}
repoLogPath: ${{ parameters.repoLogPath }}
# Skip Xcode provisioning for Android-only tests (RunOnAndroid category)
# All other tests may build or run iOS/macOS targets and need Xcode
skipXcode: ${{ eq(job.testCategory, 'RunOnAndroid') }}
```
Backward compatible - no behavior change for existing tests.
> [!WARNING]
>
> <details>
> <summary>Firewall rules blocked me from connecting to one or more
addresses (expand for details)</summary>
>
> #### I tried to connect to the following addresses, but was blocked by
firewall rules:
>
> - `https://api.github.com/graphql`
> - Triggering command: `/usr/bin/gh gh issue view 34049 --json
title,body,comments --jq {title: .title, body: .body, comments:
[.comments[] | {author: .author.login, body: .body}]}` (http block)
>
> If you need me to access, download, or install something from one of
these locations, you can either:
>
> - Configure [Actions setup
steps](https://gh.io/copilot/actions-setup-steps) to set up my
environment, which run before the firewall is enabled
> - Add the appropriate URLs or hosts to the custom allowlist in this
repository's [Copilot coding agent
settings](https://github.com/dotnet/maui/settings/copilot/coding_agent)
(admins only)
>
> </details>
<!-- START COPILOT CODING AGENT TIPS -->
---
✨ Let Copilot coding agent [set things up for
you](https://github.com/dotnet/maui/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot)
— coding agent works faster and does higher quality work when set up for
your repo.2 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | | - | |
25 | | - | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
| |||
0 commit comments