Skip to content

Commit ac49aac

Browse files
committed
Added performance tests comments and modifications
1 parent ea8457c commit ac49aac

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

.yamato/performance-tests.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,27 @@
1-
{% metadata_file .yamato/project.metafile %}
1+
{% metadata_file .yamato/project.metafile %} # All configuration that is used to create different configurations (used in for loops) is taken from this file.
22
---
33

4-
# Performance tests for the `com.unity.netcode.gameobjects` package. No performance data will be reported.
5-
# Performance tests are executed within editor on desktop platforms in context of default project (testproject)
4+
# DESCRIPTION--------------------------------------------------------------------------
5+
# This job is responsible for executing performance tests for NGO package.
6+
# 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).
7+
# 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.
8+
9+
# CONFIGURATION STRUCTURE--------------------------------------------------------------
10+
# Jobs configurations are generated using nested loops through:
11+
# 1. For all desktop platforms (Windows, Ubuntu, macOS)
12+
# 2. For all supported Unity Editor versions (For NGOv1.X it means 2021.3+)
13+
# 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.
14+
15+
# TECHNICAL CONSIDERATIONS---------------------------------------------------------------
16+
# Tests are run in Editor context only
17+
# No performance metrics are reported to monitoring systems
18+
19+
# QUALITY CONSIDERATIONS--------------------------------------------------------------------
20+
# 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
21+
# To see where this job is included (in trigger job definitions) look into _triggers.yml file
22+
23+
#------------------------------------------------------------------------------------
24+
625
{% for platform in test_platforms.desktop -%}
726
{% for editor in validation_editors.all -%}
827
{% for project in projects.default -%}
@@ -13,32 +32,13 @@ performance_editor_tests_-_NGO_{{ platform.name }}_{{ editor }}_no_data_reportin
1332
image: {{ platform.image }}
1433
flavor: {{ platform.flavor }}
1534
commands:
16-
# Installing tools
17-
{% if platform.name == "ubuntu" %}
18-
- sudo apt-get update -q
19-
- sudo apt install -qy imagemagick
20-
{% endif %}
21-
22-
- npm install -g upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
23-
- pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
24-
25-
# Installing editor
26-
- unity-downloader-cli -u {{ editor }} -c Editor --fast --wait
27-
28-
# Build Player
29-
- 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
30-
35+
- unity-downloader-cli -u {{ editor }} -c Editor # Installing basic editor
36+
- 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
37+
# TODO: when performance tests will be present we need to add actual execution of this test
3138
artifacts:
3239
logs:
3340
paths:
34-
- '*.log'
35-
- '*.xml'
36-
- artifacts/**/*
37-
- {{ project.name }}/Logs/**
38-
- {{ project.name }}/Library/*.log
39-
- {{ project.name }}/*.log
40-
- {{ project.name }}/Builds/*.log
41-
- build/test-results/**
41+
- "artifacts/**/*"
4242
{% endfor -%}
4343
{% endfor -%}
4444
{% endfor -%}

0 commit comments

Comments
 (0)