Skip to content

Commit e2bb198

Browse files
committed
ci: Update of iOS model to 13 (#3611)
This PR aims to address iOS test failures on trunk that are happening because iOS min version was bumped to 15.0 where **SE** model that we were using is supporting 13.6.1 as per documentation. To address this we will update the model to **13** which supports 16.6 so minimum spec will be satisfied and we will use newer device Additionally this requires to address an issue of: > Automatic UI interruption handling is available for iPhones running iOS 15 and above (models SE-Gen3 and 13). It is enabled by default when using those devices. Otherwise, system alerts (e.g. “Local Network Access” permission alert, introduced in iOS 14) might cause disruptions during test execution. > > If building of the test app is done on a separate (“Build”) job, please make sure that that job has environment variable UNITY_HANDLEUIINTERRUPTIONS set to 1. N/A Added mention in CI comments Green CI for iOS test for trunk will be enough Will do
1 parent a81b415 commit e2bb198

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

.yamato/mobile-standalone-test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ mobile_standalone_build_{{ project.name }}_{{ platform.name }}_{{ editor }}:
4848
{% if platform.model %}
4949
model: {{ platform.model }} # This is set only in platforms where we want non-default model to use (more information in project.metafile)
5050
{% endif %}
51+
# Automatic UI interruption handling is available for iPhones running iOS 15 and above (models SE-Gen3 and 13).
52+
# It is enabled by default when using those devices. Otherwise, system alerts (e.g. “Local Network Access” permission alert, introduced in iOS 14) might cause disruptions during test execution.
53+
# If building of the test app is done on a separate (“Build”) job, please make sure that that job has environment variable UNITY_HANDLEUIINTERRUPTIONS set to 1.
54+
variables:
55+
UNITY_HANDLEUIINTERRUPTIONS: 1
5156
commands:
5257
- unity-downloader-cli -u {{ editor }} -c Editor -c il2cpp {% if platform.base == "mac" %} -c ios {% else %} -c android {% endif %} --wait
5358
- UnifiedTestRunner --suite=playmode --platform={{ platform.standalone }} --testproject={{ project.path }} --architecture={{ platform.architecture }} --scripting-backend=il2cpp --editor-location=.Editor --artifacts-path=artifacts --testfilter="Unity.Netcode.RuntimeTests.*" --player-save-path=build/players --extra-editor-arg=-batchmode --extra-editor-arg=-nographics --reruncount=1 --clean-library-on-rerun --build-only --timeout=1800
@@ -96,7 +101,7 @@ mobile_standalone_test_{{ project.name }}_{{ platform.name }}_{{ editor }}:
96101
{% else %}
97102

98103
# Run tests for non-Android devices
99-
- UnifiedTestRunner --suite=playmode --platform={{ platform.standalone }} --artifacts-path=test-results --player-load-path=build/players --testproject={{ project.path }} --editor-location=.Editor --fail-on-assert --reruncount=1 --clean-library-on-rerun --timeout=3600
104+
- UnifiedTestRunner --suite=playmode --platform={{ platform.standalone }} --artifacts-path=test-results --player-load-path=build/players --testproject={{ project.path }} --editor-location=.Editor --fail-on-assert --reruncount=1 --clean-library-on-rerun --timeout=3600 --device-id=%BOKKEN_DEVICE_ID%
100105
{% endif %}
101106
artifacts:
102107
logs:

.yamato/project.metafile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
# This provides consistent environment definitions across all CI jobs. It's easier to modify values in central place (for example image reference) than having to modify every job
55

66
# VALUE MEANING----------------------------------------------------------------------------------------------------------------------------
7-
# Usual fields being defined are
8-
# name --> Identifier used to distinguish different configurations in the CI pipeline
9-
# type --> Specifies the Bokken agent type (e.g., Unity::VM, Unity::VM::osx, Unity::mobile::shield)
10-
# image --> Defines the package-ci Bokken image to use for the environment (e.g., package-ci/ubuntu-22.04:v4). This is basically a device configuration
11-
# flavor --> Determines the VM size/resources (e.g., b1.small, b1.large, m1.mac)
12-
# standalone --> Specifies the build target platform (e.g., StandaloneLinux64, Android, IOS)
13-
# model --> Defines specific hardware model requirements (e.g., rtx2080, SE for iPhone SE)
14-
# base --> Indicates the base operating system for build operations (e.g., win, mac)
15-
# architecture --> Specifies the target CPU architecture (e.g., armv7, arm64)
7+
8+
# name --> Identifier used to distinguish different configurations in the CI pipeline
9+
# type --> Specifies the Bokken agent type (e.g., Unity::VM, Unity::VM::osx, Unity::mobile::shield)
10+
# image --> Defines the package-ci Bokken image to use for the environment (e.g., package-ci/ubuntu-22.04:v4). This is basically a device configuration
11+
# flavor --> Determines the VM size/resources (e.g., b1.small, b1.large, m1.mac)
12+
# standalone --> Specifies the build target platform (e.g., StandaloneLinux64, Android, IOS)
13+
# model --> Defines specific hardware model requirements (e.g., rtx2080, iPhone model 13). Notice that trunk currently (19.08.2025) has 13.0 as minimal iOS version which devices below this are not supporting
14+
# base --> Indicates the base operating system for build operations (e.g., win, mac)
15+
# architecture --> Specifies the target CPU architecture (e.g., armv7, arm64)
1616

1717

1818
# SMALL AGENT CONFIGURATION---------------------------------------------------------------------------------------------------
@@ -89,7 +89,7 @@ test_platforms:
8989
type: Unity::mobile::iPhone
9090
image: package-ci/macos-13-arm64:v4
9191
flavor: m1.mac
92-
model: SE
92+
model: 13
9393
standalone: IOS
9494
base: mac
9595
architecture: arm64

0 commit comments

Comments
 (0)