-
Notifications
You must be signed in to change notification settings - Fork 461
Expand file tree
/
Copy pathperformance-tests.yml
More file actions
47 lines (41 loc) · 3.11 KB
/
performance-tests.yml
File metadata and controls
47 lines (41 loc) · 3.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{% metadata_file .yamato/project.metafile %} # All configuration that is used to create different configurations (used in for loops) is taken from this file.
---
# DESCRIPTION--------------------------------------------------------------------------
# This job is responsible for executing performance tests for NGO package.
# Its configuration is set to not report any data but just to give results (at least in current state since we don't have any tests to run).
# Currently, because of lack of performance tests this job will always return "no tests have been selected" and because oif that it's not included in any trigger jobs.
# CONFIGURATION STRUCTURE--------------------------------------------------------------
# Jobs configurations are generated using nested loops through:
# 1. For all desktop platforms (Windows, Ubuntu, macOS)
# 2. For all supported Unity Editor versions (For NGOv1.X it means 2022.3+)
# 3. For the default project (project is used only as a context for the build). TODO-comment: if performance tests would be included in projects then we should make an appropriate split.
# TECHNICAL CONSIDERATIONS---------------------------------------------------------------
# Tests are run in Editor context only
# No performance metrics are reported to monitoring systems
# QUALITY CONSIDERATIONS--------------------------------------------------------------------
# TODO: Currently NGO don't have any performance tests so this job is a placeholder for the future. We should discuss how to approach the topic of performance testing
# To see where this job is included (in trigger job definitions) look into _triggers.yml file
#------------------------------------------------------------------------------------
{% for platform in test_platforms.desktop -%}
{% for editor in validation_editors.all -%}
{% for project in projects.default -%}
performance_editor_tests_-_NGO_{{ platform.name }}_{{ editor }}_no_data_reporting:
name : Performance editor Tests - NGO {{ project.name }} [{{ platform.name }}, {{ editor }}] (No Data Reporting)
agent:
type: {{ platform.type }}
image: {{ platform.image }}
flavor: {{ platform.flavor }}
{% if platform.model %}
model: {{ platform.model }} # This is set only in platforms where we want non-default model to use (more information in project.metafile)
{% endif %}
commands:
- unity-downloader-cli -u {{ editor }} -c Editor --wait {% if platform.name == "mac" %} --arch arm64 {% endif %} # For macOS we use ARM64 models. Installing basic editor
- UnifiedTestRunner --suite=editor --suite=playmode --testproject={{ project.path }} --editor-location=.Editor --timeout=3600 --artifacts-path=artifacts --extra-editor-arg=-assemblyNames --extra-editor-arg=Unity.NetCode.* --extra-editor-arg=-testCategory --extra-editor-arg=Performance --extra-editor-arg=-enablePackageManagerTraces --reruncount=1 --clean-library-on-rerun --dontreportperformancedata
# TODO: when performance tests will be present we need to add actuall execution of this test
artifacts:
logs:
paths:
- "artifacts/**/*"
{% endfor -%}
{% endfor -%}
{% endfor -%}