Skip to content

Commit 5ee7f4c

Browse files
committed
Initial Performance tests file
1 parent 6525117 commit 5ee7f4c

File tree

4 files changed

+53
-18
lines changed

4 files changed

+53
-18
lines changed

.yamato/_run-all.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ run_all_package_tests:
66
name: Run All Package Tests
77
dependencies:
88
{% for platform in test_platforms.desktop -%}
9-
{% if platform.name != "win-arm64" -%} # Recommended to use only after builds
109
{% for editor in validation_editors.all -%}
1110
- .yamato/package-tests.yml#package_test_-_ngo_{{ editor }}_{{ platform.name }}
1211
{% endfor -%}
13-
{% endif -%}
1412
{% endfor -%}
1513

1614

@@ -21,13 +19,11 @@ run_all_project_tests:
2119
{% for project in projects.all -%}
2220
{% if project.has_tests == "true" -%}
2321
{% for platform in test_platforms.desktop -%}
24-
{% if platform.name != "win-arm64" -%} # Recommended to use only after builds
2522
{% for editor in validation_editors.all -%}
2623
- .yamato/project-tests.yml#test_{{ project.name }}_{{ platform.name }}_{{ editor }}
2724
{% endfor -%}
2825
{% endif -%}
2926
{% endfor -%}
30-
{% endif -%}
3127
{% endfor -%}
3228

3329

.yamato/package-tests.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,22 @@
33

44
# Executes PlayMode and EditMode tests of the NGO package in the Editor context
55
{% for platform in test_platforms.desktop -%}
6-
{% if platform.name != "win-arm64" -%} # Recommended to use only after builds
76
{% for editor in validation_editors.all -%}
87
package_test_-_ngo_{{ editor }}_{{ platform.name }}:
98
name : Package Test - NGO [{{ platform.name }}, {{ editor }}]
109
agent:
1110
type: {{ platform.type }}
1211
image: {{ platform.image }}
1312
flavor: {{ platform.flavor }}
14-
{% if platform.model %}
15-
model: {{ platform.model }}
16-
{% endif %}
1713
commands:
1814
- npm install -g upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
19-
- unity-downloader-cli {% if platform.extension == "arm64" %} --arch arm64 {% endif %} -u {{ editor }} -c Editor --fast --wait
20-
- {% if platform.name == "ubuntu" %}DISPLAY=:0 {% endif %}upm-ci package test -u {{ editor }} --package-path com.unity.netcode.gameobjects --type package-tests
15+
- unity-downloader-cli -u {{ editor }} -c Editor --fast --wait
16+
- {% if platform.name == "ubuntu" %}DISPLAY=:0 {% endif %}upm-ci package test -u {{ editor }} --package-path com.unity.netcode.gameobjects --type package-tests --extra-utr-arg="--extra-editor-arg=-testCategory --extra-editor-arg=!Performance --reruncount=1 --clean-library-on-rerun"
2117
artifacts:
2218
logs:
2319
paths:
2420
- "upm-ci~/test-results/**/*"
2521
dependencies:
2622
- .yamato/package-pack.yml#package_pack_-_ngo
2723
{% endfor -%}
28-
{% endif -%}
2924
{% endfor -%}

.yamato/performance-tests.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{% metadata_file .yamato/project.metafile %}
2+
---
3+
4+
# Performance tests for the `com.unity.netcode.gameobjects` package. No performance data will be reported.
5+
{% for platform in test_platforms.desktop -%}
6+
{% for editor in validation_editors.all -%}
7+
{% for project in projects.default -%}
8+
performance_editor_tests_-_netcode_macos_trunk_dots_monorepo__no_data_reporting:
9+
name : Performance editor Tests - NGO {{ project.name }} [{{ platform.name }}, {{ editor }}] (No Data Reporting)
10+
agent:
11+
type: {{ platform.type }}
12+
image: {{ platform.image }}
13+
flavor: {{ platform.flavor }}
14+
commands:
15+
# Installing tools
16+
{% if platform.name == "ubuntu" %}
17+
- sudo apt-get update -q
18+
- sudo apt install -qy imagemagick
19+
{% endif %}
20+
- npm install -g upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
21+
- pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
22+
23+
# Platform specific UTR setup
24+
- |
25+
{% if platform.name == "win" %}
26+
curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr.bat --output utr.bat
27+
{% else %}
28+
curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr --output utr && chmod +x utr
29+
{% endif %}
30+
31+
# Installing editor
32+
- unity-downloader-cli -u {{ editor }} -c Editor --fast --wait
33+
34+
# Build Player
35+
- |
36+
{% if platform.name == "win" %}
37+
utr --artifacts-path=artifacts --timeout=3600 --testproject={{ project.path }} --editor-location=.Editor --reruncount=1 --clean-library-on-rerun --suite=editor --dontreportperformancedata --extra-editor-arg=-assemblyNames --extra-editor-arg=Unity.NetCode.* --extra-editor-arg=-testCategory --extra-editor-arg=Performance --extra-editor-arg=-enablePackageManagerTraces
38+
{% else %}
39+
./utr --artifacts-path=artifacts --timeout=3600 --testproject={{ project.path }} --editor-location=.Editor --reruncount=1 --clean-library-on-rerun --suite=editor --dontreportperformancedata --extra-editor-arg=-assemblyNames --extra-editor-arg=Unity.NetCode.* --extra-editor-arg=-testCategory --extra-editor-arg=Performance --extra-editor-arg=-enablePackageManagerTraces
40+
{% endif %}
41+
artifacts:
42+
logs:
43+
paths:
44+
- "upm-ci~/test-results/**/*"
45+
dependencies:
46+
- .yamato/package-pack.yml#package_pack_-_ngo
47+
{% endfor -%}
48+
{% endfor -%}
49+
{% endfor -%}

.yamato/project-tests.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,24 @@
66
{% for project in projects.all -%}
77
{% if project.has_tests == "true" -%}
88
{% for platform in test_platforms.desktop -%}
9-
{% if platform.name != "win-arm64" -%} # Recommended to use only after builds
109
{% for editor in validation_editors.all -%}
1110
test_{{ project.name }}_{{ platform.name }}_{{ editor }}:
1211
name : Project Test - NGO {{ project.name }} [{{ platform.name }}, {{ editor }}]
1312
agent:
1413
type: {{ platform.type }}
1514
image: {{ platform.image }}
1615
flavor: {{ platform.flavor }}
17-
{% if platform.model %}
18-
model: {{ platform.model }}
19-
{% endif %}
2016
commands:
2117
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
22-
- unity-downloader-cli {% if platform.extension == "arm64" %} --arch arm64 {% endif %} -u {{ editor }} -c Editor --fast --wait
23-
- {% if platform.name == "Ubuntu" %}DISPLAY=:0 && {% endif %}upm-ci project test -u {{ editor }} --project-path {{ project.path }} --type project-tests
18+
- unity-downloader-cli -u {{ editor }} -c Editor --fast --wait
19+
- {% if platform.name == "Ubuntu" %}DISPLAY=:0 && {% endif %}upm-ci project test -u {{ editor }} --project-path {{ project.path }} --type project-tests --extra-utr-arg="--extra-editor-arg=-testCategory --extra-editor-arg=!Performance --reruncount=1 --clean-library-on-rerun"
2420
artifacts:
2521
logs:
2622
paths:
2723
- "upm-ci~/test-results/**/*"
2824
dependencies:
2925
- .yamato/project-pack.yml#project_pack_-_{{ project.name }}
3026
{% endfor -%}
31-
{% endif -%}
3227
{% endfor -%}
3328
{% endif -%}
3429
{% endfor -%}

0 commit comments

Comments
 (0)