Skip to content

Commit 8d9ab49

Browse files
committed
Updated desktop standalone tests and overall tests order
1 parent d2ac9b8 commit 8d9ab49

File tree

6 files changed

+61
-44
lines changed

6 files changed

+61
-44
lines changed

.yamato/desktop-standalone-tests.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,21 @@
44
# Builds a player on desktop standalone platform and executes PlayMode tests of the NGO package in the Standalone build
55
# Only Package tests are being executed in the context of the default project
66
{% for project in projects.default -%}
7-
{% for editor in validation_editors.all -%}
87
{% for platform in test_platforms.desktop -%}
8+
{% for editor in validation_editors.all -%}
99
{% for backend in scripting_backends -%}
1010
desktop_standalone_tests_{{ project.name }}_{{ platform.name }}_{{ backend }}_{{ editor }}:
11-
name : Standalone Tests - NGO {{ project.name }} - [{{ platform.name }}, {{ backend }}, {{ editor }}]
11+
name : Standalone Tests - NGO {{ project.name }} - [{{ platform.name }}, {{ editor }}, {{ backend }}]
1212
agent:
1313
type: {% if platform.name == "mac" %} {{ platform.type }} {% else %} {{ platform.type }}::GPU {% endif %}
1414
image: {{ platform.image }}
1515
flavor: {{ platform.flavor }}
16+
{% if platform.model %}
17+
model: {{ platform.model }}
18+
{% endif %}
1619
commands:
1720
# Installing tools
18-
{% if platform.name == "Ubuntu" %}
21+
{% if platform.name == "ubuntu" %}
1922
- sudo apt-get update -q
2023
- sudo apt install -qy imagemagick
2124
{% endif %}
@@ -24,7 +27,7 @@ desktop_standalone_tests_{{ project.name }}_{{ platform.name }}_{{ backend }}_{{
2427

2528
# Platform specific UTR setup
2629
- |
27-
{% if platform.name == "Win" %}
30+
{% if platform.name == "win" %}
2831
curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr.bat --output utr.bat
2932
{% else %}
3033
curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr --output utr && chmod +x utr
@@ -35,16 +38,16 @@ desktop_standalone_tests_{{ project.name }}_{{ platform.name }}_{{ backend }}_{{
3538

3639
# Build Player
3740
- |
38-
{% if platform.name == "Win" %}
39-
utr.bat --suite=playmode --platform={{ platform.standalone }} --editor-location=.Editor --testproject={{ project.path }} --player-save-path=build/players --artifacts_path=build/logs --scripting-backend={{ backend }} --build-only --testfilter=Unity.Netcode.RuntimeTests --extra-editor-arg=-batchmode --extra-editor-arg=-nographics
41+
{% if platform.name == "win" %}
42+
utr --suite=playmode --platform={{ platform.standalone }} --editor-location=.Editor --testproject={{ project.path }} --player-save-path=build/players --artifacts_path=build/logs --scripting-backend={{ backend }} --build-only --testfilter=Unity.Netcode.RuntimeTests --extra-editor-arg=-batchmode --extra-editor-arg=-nographics
4043
{% else %}
4144
./utr --suite=playmode --platform={{ platform.standalone }} --editor-location=.Editor --testproject={{ project.path }} --player-save-path=build/players --artifacts_path=build/logs --scripting-backend={{ backend }} --build-only --testfilter=Unity.Netcode.RuntimeTests --extra-editor-arg=-batchmode --extra-editor-arg=-nographics
4245
{% endif %}
4346

4447
# Run Standalone tests
4548
- |
46-
{% if platform.name == "Win" %}
47-
utr.bat --suite=playmode --platform={{ platform.standalone }} --player-load-path=build/players --artifacts_path=build/test-results --scripting-backend={{ backend }} --testfilter=Unity.Netcode.RuntimeTests --playergraphicsapi=Null
49+
{% if platform.name == "win" %}
50+
utr --suite=playmode --platform={{ platform.standalone }} --player-load-path=build/players --artifacts_path=build/test-results --scripting-backend={{ backend }} --testfilter=Unity.Netcode.RuntimeTests --playergraphicsapi=Null
4851
{% else %}
4952
./utr --suite=playmode --platform={{ platform.standalone }} --player-load-path=build/players --artifacts_path=build/test-results --scripting-backend={{ backend }} --testfilter=Unity.Netcode.RuntimeTests --playergraphicsapi=Null
5053
{% endif %}

.yamato/package-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
---
33

44
# Executes PlayMode and EditMode tests of the NGO package in the Editor context
5-
{% for editor in validation_editors.all -%}
65
{% for platform in test_platforms.desktop -%}
6+
{% for editor in validation_editors.all -%}
77
package_test_-_ngo_{{ editor }}_{{ platform.name }}:
88
name : Package Test - NGO [{{ platform.name }}, {{ editor }}]
99
agent:

.yamato/project-standards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# Project standards are being checked for package (in project context)
55
# It should be enough to perform the test on default project
66
{% for platform in test_platforms.default -%}
7+
{% for project in projects.all -%}
78
{% for editor in validation_editors.default -%}
8-
{% for project in projects.default -%}
99
standards_{{ platform.name }}:
1010
name: Standards Check - NGO [{{ platform.name }}, {{ project.name }}]
1111
agent:

.yamato/project-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
# Executes PlayMode and EditMode tests of the given project in the Editor context
55
# Those tests don't include NGO package tests since they are handled on their respective jobs.
66
{% for project in projects.all -%}
7-
{% for editor in validation_editors.all -%}
7+
{% if project.has_tests=="true" -%}
88
{% for platform in test_platforms.desktop -%}
9+
{% for editor in validation_editors.all -%}
910
test_{{ project.name }}_{{ editor }}_{{ platform.name }}:
1011
name : Project Test - NGO {{ project.name }} [{{ platform.name }}, {{ editor }}]
1112
agent:
@@ -23,4 +24,5 @@ test_{{ project.name }}_{{ editor }}_{{ platform.name }}:
2324
- .yamato/project-pack.yml#project_pack_-_{{ project.name }}
2425
{% endfor -%}
2526
{% endfor -%}
27+
{% endif -%}
2628
{% endfor -%}

.yamato/project.metafile

Lines changed: 43 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# It uses ubuntu since Linux VMs are faster and cheaper to provision than Mac or Windows Virtual Machines (VMs).
33
# The b1.small flavour is nearly always sufficient for jobs that don’t involve running Unity.
44
small_agent:
5-
- name: Ubuntu
5+
- name: ubuntu
66
type: Unity::VM
77
image: package-ci/ubuntu-22.04:v4
88
flavor: b1.small
@@ -11,89 +11,101 @@ small_agent:
1111
test_platforms:
1212
# Default platform is used for all basic jobs. Ubuntu was chosen since it's fastest and most available
1313
default:
14-
- name: Ubuntu
14+
- name: ubuntu
1515
type: Unity::VM
1616
image: package-ci/ubuntu-22.04:v4
1717
flavor: b1.large
1818
standalone: StandaloneLinux64
1919
# Desktop platforms cover all main desktop platforms
2020
desktop:
21-
- name: Ubuntu
21+
- name: ubuntu
2222
type: Unity::VM
2323
image: package-ci/ubuntu-22.04:v4
2424
flavor: b1.large
2525
standalone: StandaloneLinux64
26-
- name: Win
26+
- name: win
2727
type: Unity::VM
2828
image: package-ci/win10:v4
2929
flavor: b1.large
3030
standalone: StandaloneWindows64
31-
- name: Mac
31+
- name: mac
3232
type: Unity::VM::osx
3333
image: package-ci/macos-13:v4
3434
flavor: m1.mac
3535
standalone: StandaloneOSX
36+
model: default
37+
- name: mac-arm64
38+
type: Unity::VM::osx
39+
image: package-ci/macos-13-arm64:v4
40+
flavor: m1.mac
41+
standalone: StandaloneOSX
42+
model: M1
43+
- name: windows-arm64
44+
type: Unity::VM::Azure
45+
image: package-ci/win11-arm64:v4
46+
flavor: b1.large
47+
standalone: StandaloneWindows64
48+
model: arm
3649
# Mobile platforms cover all main mobile devices. There is a split between the build and run phase so there is a need of splitting specification for both (since its different)
3750
mobile_build:
3851
# It would be simpler to build android app with ubuntu but the option with windows was chosen since it covers more users
39-
- name: Android
52+
- name: android
4053
type: Unity::VM
4154
image: package-ci/win10:v4
4255
flavor: b1.large
4356
standalone: Android
44-
- name: iOS
57+
- name: ios
4558
type: Unity::VM::osx
4659
image: package-ci/macos-13:v4
4760
flavor: m1.mac
4861
standalone: IOS
4962
mobile_test:
50-
- name: Android
63+
- name: android
5164
type: Unity::mobile::shield
52-
image: package-ci/win10:v4
65+
image: package-ci/ubuntu-22.04:v4
5366
flavor: b1.large
5467
model: ShieldPro
5568
standalone: Android
56-
- name: iOS
69+
- name: ios
5770
type: Unity::mobile::iPhone
5871
image: package-ci/macos-13:v4
5972
flavor: m1.mac
6073
model: SE
6174
standalone: IOS
6275
# We should test on at least one more "exotic" platform. Nintendo Switch was chosen as it represents broadly console platforms
63-
console:
64-
- name: NintendoSwitch
76+
console_no_split:
77+
- name: nintendoSwitch
6578
type: Unity::console::switch
6679
image: package-ci/win10-switch:v4
6780
flavor: b1.large
6881
standalone: Switch
69-
# Requires splitting
70-
- name: XboxOne
71-
type: Unity::console::xbox
72-
image: package-ci/win10-xbox
73-
flavor: b1.large
74-
standalone: GameCoreXboxOne
75-
- name: Ps4
82+
- name: ps4
7683
type: Unity::console::ps4
7784
image: package-ci/win10-ps4
7885
flavor: b1.large
7986
standalone: PS4
80-
# PS5 requires splitting like Android and IOS
81-
- name: Ps5
87+
console_build:
88+
- name: xboxOne
89+
type: Unity::console::xbox
90+
image: package-ci/win10-xbox
91+
flavor: b1.large
92+
standalone: GameCoreXboxOne
93+
- name: ps5
8294
type: Unity::console::ps5
8395
image: package-ci/win10-ps5
8496
flavor: b1.large
8597
standalone: PS5
86-
Arm64:
87-
- name: Mac-arm64
88-
type: Unity::VM::osx
89-
image: package-ci/macos-13-arm64:v4
90-
flavor: m1.mac
91-
model: M1
92-
- name: Android-arm64
93-
type: Unity::VM::Azure
94-
image: package-ci/win11-arm64:v4
98+
console_test:
99+
- name: xboxOne
100+
type: Unity::console::xbox
101+
image: package-ci/win10-xbox
95102
flavor: b1.large
96-
model: arm
103+
standalone: GameCoreXboxOne
104+
- name: ps5
105+
type: Unity::console::ps5
106+
image: package-ci/win10-ps5
107+
flavor: b1.large
108+
standalone: PS5
97109

98110
# Editors to be used for testing.
99111
# Since NGOv2 official support started from U6 it means that only those editors should be used for testing

.yamato/webgl-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
# Default project in this case is used as a context.
88
# WebGL requires Il2cpp scripting backend
99
{% for project in projects.default -%}
10+
{% for platform in test_platforms.all -%}
1011
{% for editor in validation_editors.all -%}
11-
{% for platform in test_platforms.default -%}
1212
webgl_build_{{ project.name }}_{{ editor }}:
13-
name: WebGl Build - [{{ project.name }}, {{ editor }}, il2cpp]
13+
name: WebGl Build - {{ project.name }} [{{ platform.name }}, {{ editor }}, il2cpp]
1414
agent:
1515
type: {{ platform.type }}
1616
image: {{ platform.image }}

0 commit comments

Comments
 (0)