Skip to content

Commit 1f846cb

Browse files
committed
add instabilities runner to all test jobs
1 parent 3e3e48b commit 1f846cb

File tree

2 files changed

+33
-4
lines changed

2 files changed

+33
-4
lines changed

.yamato/config.metadata

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,31 +36,37 @@ platforms_nix:
3636
type: Unity::VM::osx
3737
image: package-ci/macos-13:default
3838
flavor: m1.mac
39+
instabilities_run: sh ./run_standalone_instability_detection-latest.sh macos 0.5.1 || exit 0
3940
- name: mac_standalone
4041
type: Unity::VM::osx
4142
image: package-ci/macos-13:default
4243
flavor: m1.mac
44+
instabilities_run: sh ./run_standalone_instability_detection-latest.sh macos 0.5.1 || exit 0
4345
runtime: StandaloneOSX
4446
- name: mac_standalone_il2cpp
4547
type: Unity::VM::osx
4648
image: package-ci/macos-13:default
4749
flavor: m1.mac
50+
instabilities_run: sh ./run_standalone_instability_detection-latest.sh macos 0.5.1 || exit 0
4851
runtime: StandaloneOSX
4952
scripting-backend: Il2Cpp
5053
installscript: unity-downloader-cli -c editor -c StandaloneSupport-IL2CPP --wait --fast -u
5154
- name: linux
5255
type: Unity::VM
5356
image: package-ci/ubuntu-20.04:v4.50.0
5457
flavor: b1.large
58+
instabilities_run: sh ./run_standalone_instability_detection-latest.sh ubuntu 0.5.1 || exit 0
5559
- name: linux_standalone
5660
type: Unity::VM
5761
image: package-ci/ubuntu-20.04:v4.50.0
5862
flavor: b1.large
63+
instabilities_run: sh ./run_standalone_instability_detection-latest.sh ubuntu 0.5.1 || exit 0
5964
runtime: StandaloneLinux64
6065
- name: linux_standalone_il2cpp
6166
type: Unity::VM
6267
image: package-ci/ubuntu-20.04:v4.50.0
6368
flavor: b1.large
69+
instabilities_run: sh ./run_standalone_instability_detection-latest.sh ubuntu 0.5.1 || exit 0
6470
runtime: StandaloneLinux64
6571
scripting-backend: Il2Cpp
6672
installscript: unity-downloader-cli -c editor -c StandaloneSupport-IL2CPP --wait --fast -u
@@ -74,5 +80,7 @@ test_category:
7480
- name: performance
7581
- name: all
7682

77-
instabilies_install_win: curl -s https://artifactory.prd.it.unity3d.com/artifactory/automation-and-tooling/infrastructure-instability-detection/standalone/setup/run_standalone_instability_detection-latest.bat --output run_standalone_instability_detection-latest.bat --retry 5 || exit 0
78-
instabilies_run_win: run_standalone_instability_detection-latest.bat 0.5.1 || exit 0
83+
instabilities_install_win: curl -s https://artifactory.prd.it.unity3d.com/artifactory/automation-and-tooling/infrastructure-instability-detection/standalone/setup/run_standalone_instability_detection-latest.bat --output run_standalone_instability_detection-latest.bat --retry 5 || exit 0
84+
instabilities_run_win: run_standalone_instability_detection-latest.bat 0.5.1 || exit 0
85+
86+
instabilities_install_nix: curl -s https://artifactory.prd.it.unity3d.com/artifactory/automation-and-tooling/infrastructure-instability-detection/standalone/setup/run_standalone_instability_detection-latest.sh --output run_standalone_instability_detection-latest.sh --retry 5 || exit 0

.yamato/upm-ci.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
# Now run our full test suite that sits in Assets/Tests by running UTR on our project.
3636
- ./utr --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --suite=playmode {% if platform.name == "win" %} --suite=editor {% endif %} {% if category.name == "performance" %} --category=Performance {% endif %} --api-profile=NET_4_6 {% if platform.runtime %} --platform {{ platform.runtime }} {% endif %} {% if platform.scripting-backend %} --scripting-backend {{ platform.scripting-backend }} {% endif %} --report-performance-data --performance-project-id=InputSystem
3737
after:
38-
- {{ instabilies_install_win }}
39-
- {{ instabilies_run_win }}
38+
- {{ instabilities_install_win }}
39+
- {{ instabilities_run_win }}
4040
artifacts:
4141
UTR_Output.zip:
4242
paths:
@@ -75,6 +75,9 @@
7575
- mv ./Packages/com.unity.inputsystem/Samples.meta ./Assets
7676
# Now run our full test suite that sits in Assets/Tests by running UTR on our project.
7777
- ./utr --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --suite=playmode {% if platform.name == "mac" %} --suite=editor {% endif %} {% if platform.name == "linux" %} --suite=editor {% endif %} {% if category.name == "performance" %} --category=Performance {% endif %} --api-profile=NET_4_6 {% if platform.runtime %} --platform {{ platform.runtime }} {% endif %} {% if platform.scripting-backend %} --scripting-backend {{ platform.scripting-backend }} {% endif %} --report-performance-data --performance-project-id=InputSystem
78+
after:
79+
- {{ instabilities_install_nix }}
80+
- {{ platform.instabilities_run }}
7881
artifacts:
7982
UTR_Output.zip:
8083
paths:
@@ -96,6 +99,9 @@ build_ios_{{ editor.version }}_{{ category.name }}:
9699
- {{ unity_downloader_install }}
97100
- unity-downloader-cli -c Editor -c iOS -u {{ editor.version }} --fast --wait
98101
- ./utr --suite=playmode {% if category.name == "performance" %} --category=Performance {% endif %} --platform=iOS --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --build-only --report-performance-data --performance-project-id=InputSystem
102+
after:
103+
- {{ instabilities_install_nix }}
104+
- {{ platform.instabilities_run }}
99105
artifacts:
100106
players:
101107
paths:
@@ -117,6 +123,9 @@ run_ios_{{ editor.version }}_{{ category.name }}:
117123
commands:
118124
- {{ utr_install_nix }}
119125
- ./utr --suite=playmode {% if category.name == "performance" %} --category=Performance {% endif %} --platform=iOS --player-load-path=build/players --artifacts_path=build/test-results --report-performance-data --performance-project-id=InputSystem
126+
after:
127+
- {{ instabilities_install_nix }}
128+
- {{ platform.instabilities_run }}
120129
artifacts:
121130
logs:
122131
paths:
@@ -134,6 +143,9 @@ build_tvos_{{ editor.version }}:
134143
- {{ unity_downloader_install }}
135144
- unity-downloader-cli -c Editor -c AppleTV -u {{ editor.version }} --fast --wait
136145
- ./utr --suite=playmode --platform=tvOS --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --build-only --report-performance-data --performance-project-id=InputSystem
146+
after:
147+
- {{ instabilities_install_nix }}
148+
- {{ platform.instabilities_run }}
137149
artifacts:
138150
players:
139151
paths:
@@ -154,6 +166,9 @@ run_tvos_{{ editor.version }}:
154166
commands:
155167
- {{ utr_install_nix }}
156168
- ./utr --suite=playmode --platform=tvOS --player-load-path=build/players --artifacts_path=build/test-results --report-performance-data --performance-project-id=InputSystem
169+
after:
170+
- {{ instabilities_install_nix }}
171+
- {{ platform.instabilities_run }}
157172
artifacts:
158173
logs:
159174
paths:
@@ -172,6 +187,9 @@ build_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
172187
- {{ unity_downloader_install }}
173188
- unity-downloader-cli -c Editor -c Android -u {{ editor.version }} --fast --wait
174189
- ./utr --suite=playmode {% if category.name == "performance" %} --category=Performance {% endif %} --platform=Android --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --scripting-backend={{ backend.name }} --build-only --repository --performance-project-id=InputSystem
190+
after:
191+
- {{ instabilities_install_win }}
192+
- {{ instabilities_run_win }}
175193
artifacts:
176194
players:
177195
paths:
@@ -205,6 +223,9 @@ run_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
205223
- start %ANDROID_SDK_ROOT%\platform-tools\adb.exe connect %BOKKEN_DEVICE_IP%
206224
- if not exist build\test-results mkdir build\test-results
207225
- powershell %ANDROID_SDK_ROOT%\platform-tools\adb.exe logcat -d > build/test-results/device_log.txt
226+
after:
227+
- {{ instabilities_install_win }}
228+
- {{ instabilities_run_win }}
208229
# Set uploadable artifact paths
209230
artifacts:
210231
logs:

0 commit comments

Comments
 (0)