Skip to content

Commit ea8457c

Browse files
committed
Added package-pack comments and modifications
1 parent f0dde52 commit ea8457c

File tree

1 file changed

+28
-7
lines changed

1 file changed

+28
-7
lines changed

.yamato/package-tests.yml

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,29 @@
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-
# Executes PlayMode and EditMode tests of the NGO package in the Editor context
5-
# Those tests run in the editor so we don't need to consider different scripting backends or architectures
6-
# Tests are executed for all supported editors on each desktop platform as in project.metafile declaration
4+
# DESCRIPTION--------------------------------------------------------------------------
5+
# This job is responsible for execution of package-specific tests in Unity Editor context
6+
# Those tests cover both PlayMode and EditMode tests from package test assemblies
7+
# Additionally it combines Package Verification Pipeline (PVP) validation. This ensures that package is compatible with Unity standards
8+
9+
# CONFIGURATION STRUCTURE--------------------------------------------------------------
10+
# Jobs 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 this means 2021.3+ editors)
13+
14+
# TECHNICAL CONSIDERATIONS---------------------------------------------------------------
15+
# This job runs in Editor context only (no player builds required)
16+
# No scripting backend variations needed (Editor context)
17+
# Architecture variations not applicable (Editor context)
18+
# Requires project packaging as prerequisite (dependency job)
19+
# Uses PVP for package validation. Specifically it looks for supported profiles which we should conform to but takes ./pvpExceptions.json file into consideration where we note our known issues related to PVP checks
20+
21+
# QUALITY CONSIDERATIONS--------------------------------------------------------------------
22+
# To see where this job is included (in trigger job definitions) look into _triggers.yml file
23+
# TODO: we should aim to replace target PVP profile from supported to gold
24+
25+
#------------------------------------------------------------------------------------
26+
727
{% for platform in test_platforms.desktop -%}
828
{% for editor in validation_editors.all -%}
929
package_test_-_ngo_{{ editor }}_{{ platform.name }}:
@@ -17,13 +37,14 @@ package_test_-_ngo_{{ editor }}_{{ platform.name }}:
1737
UNITY_EXT_LOGGING: 1
1838
commands:
1939
- unity-downloader-cli -u {{ editor }} -c Editor --fast --wait
20-
21-
# Validate packages.
40+
41+
# Validate PVP checks for package.
2242
- upm-pvp test --unity .Editor --packages "upm-ci~/packages/*.tgz" --filter "com.unity.netcode.gameobjects" --results pvp-results
2343
- upm-pvp require {% if platform.name == "win" %}"%XRAY_PROFILE%"{% else %}"$XRAY_PROFILE"{% endif %} --results pvp-results
44+
2445
# Run UTR to test packages.
2546
- upm-pvp create-test-project test-project --packages "upm-ci~/packages/*.tgz" --filter "com.unity.netcode.gameobjects" --unity .Editor
26-
- {% if platform.name == "ubuntu" %}DISPLAY=:0 {% endif %} UnifiedTestRunner --suite=editor --suite=playmode --editor-location=.Editor --testproject=test-project --artifacts-path=test-results "--ff={ops.upmpvpevidence.enable=true}" --extra-editor-arg=-testCategory --extra-editor-arg=!Performance --reruncount=1 --clean-library-on-rerun
47+
- UnifiedTestRunner --suite=editor --suite=playmode --editor-location=.Editor --testproject=test-project --artifacts-path=test-results "--ff={ops.upmpvpevidence.enable=true}" --reruncount=1 --clean-library-on-rerun
2748
artifacts:
2849
logs:
2950
paths:

0 commit comments

Comments
 (0)