Skip to content

Commit 6865ccc

Browse files
committed
split for all remaining tests
1 parent 51e01bd commit 6865ccc

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

.yamato/config.metadata

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ ios_and_tvos_macos_bokken_image: package-ci/macos-13:v4.50.0
8080

8181
test_category:
8282
- name: performance
83-
- name: all
83+
- name: functional
8484

8585
instabilities_install_win: curl -s https://artifactory.prd.it.unity3d.com/artifactory/automation-and-tooling/infrastructure-instability-detection/standalone/setup/run_standalone_instability_detection-latest.bat --output run_standalone_instability_detection-latest.bat --retry 5 || exit 0
8686
instabilities_run_win: run_standalone_instability_detection-latest.bat 0.5.1 || exit 0

.yamato/upm-ci.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
- upm-ci package pack --package-path ./Packages/com.unity.inputsystem/
2727
# Run upm-ci verification tests as well as tests contained in the package.
2828
- upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u %EDITOR_VERSION%
29-
{% if platform.name == "win" and category.name != "performance" %} --enable-code-coverage --code-coverage-options "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem;pathReplacePatterns:@*,,Library/PackageCache,Packages"
29+
{% if platform.name == "win" and category.name == "functional" %} --enable-code-coverage --code-coverage-options "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem;pathReplacePatterns:@*,,Library/PackageCache,Packages"
3030
--extra-utr-arg="--coverage-results-path={{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Package" {% endif %}
3131
{% if platform.installscript %}
3232
- {{ unity_downloader_install }}
@@ -37,9 +37,9 @@
3737
- move /Y .\Packages\com.unity.inputsystem\Samples .\Assets
3838
- move /Y .\Packages\com.unity.inputsystem\Samples.meta .\Assets
3939
# Now run our full test suite that sits in Assets/Tests by running UTR on our project.
40-
- ./utr --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --suite=playmode {% if platform.name == "win" %} --suite=editor {% endif %} {% if category.name == "performance" %} --category=Performance {% endif %} {% if category.name == "all" %} --category=!Performance {% endif %}--api-profile=NET_4_6 {% if platform.runtime %} --platform {{ platform.runtime }} {% endif %} {% if platform.scripting-backend %} --scripting-backend {{ platform.scripting-backend }} {% endif %} {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %} {% if platform.name == "win" and category.name != "performance" %}--enable-code-coverage --coverage-options="generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem" --coverage-results-path={{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Project {% endif %}
40+
- ./utr --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --suite=playmode {% if platform.name == "win" %} --suite=editor {% endif %} {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --api-profile=NET_4_6 {% if platform.runtime %} --platform {{ platform.runtime }} {% endif %} {% if platform.scripting-backend %} --scripting-backend {{ platform.scripting-backend }} {% endif %} {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %} {% if platform.name == "win" and category.name == "functional" %}--enable-code-coverage --coverage-options="generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem" --coverage-results-path={{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Project {% endif %}
4141
# Merge all the code coverage results into one report.
42-
{% if platform.name == "win" and category.name != "performance" %}
42+
{% if platform.name == "win" and category.name == "functional" %}
4343
- '{{ yamato_source_dir_win }}/.Editor/Unity.exe -projectPath {{ yamato_source_dir_win }} -batchmode -debugCodeOptimization -enableCodeCoverage -coverageResultsPath {{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/ -coverageOptions "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem;sourcePaths:{{ yamato_source_dir_win }}/Packages/com.unity.inputsystem/" -quit'
4444
#delete the reports from the two runs and only keep the final merged one
4545
- rmdir /s/q "{{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Package"
@@ -77,7 +77,7 @@
7777
- mv ./Assets/Samples.meta ./Packages/com.unity.inputsystem
7878
- upm-ci package pack --package-path ./Packages/com.unity.inputsystem/
7979
# Run upm-ci verification tests as well as tests contained in the package.
80-
- upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u $EDITOR_VERSION {% if platform.name == "mac" or platform.name == "linux" %} --enable-code-coverage --code-coverage-options "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem;pathReplacePatterns:@*,,Library/PackageCache,Packages" --extra-utr-arg="--coverage-results-path={{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Package" {% endif %}
80+
- upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u $EDITOR_VERSION {% if category.name == "functional" and platform.name == "mac" or platform.name == "linux" %} --enable-code-coverage --code-coverage-options "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem;pathReplacePatterns:@*,,Library/PackageCache,Packages" --extra-utr-arg="--coverage-results-path={{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Package" {% endif %}
8181
{% if platform.installscript %}
8282
- {{ unity_downloader_install }}
8383
- {{ platform.installscript }} $EDITOR_VERSION
@@ -87,12 +87,12 @@
8787
- mv ./Packages/com.unity.inputsystem/Samples ./Assets
8888
- mv ./Packages/com.unity.inputsystem/Samples.meta ./Assets
8989
# Now run our full test suite that sits in Assets/Tests by running UTR on our project.
90-
- ./utr --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --suite=playmode {% if platform.name == "mac" or platform.name == "linux"%} --suite=editor {% endif %} {% if category.name == "performance" %} --category=Performance {% endif %} --api-profile=NET_4_6 {% if platform.runtime %} --platform {{ platform.runtime }} {% endif %} {% if platform.scripting-backend %} --scripting-backend {{ platform.scripting-backend }} {% endif %} --report-performance-data --performance-project-id=InputSystem {% if platform.name == "mac" or platform.name == "linux" %} --enable-code-coverage --coverage-options="generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem" --coverage-results-path={{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Project {% endif %}
90+
- ./utr --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --suite=playmode {% if platform.name == "mac" or platform.name == "linux"%} --suite=editor {% endif %} {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --api-profile=NET_4_6 {% if platform.runtime %} --platform {{ platform.runtime }} {% endif %} {% if platform.scripting-backend %} --scripting-backend {{ platform.scripting-backend }} {% endif %} {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %} {% if category.name == "functional" and platform.name == "mac" or platform.name == "linux" %} --enable-code-coverage --coverage-options="generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem" --coverage-results-path={{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Project {% endif %}
9191
# Merge all the code coverage results into one report.
92-
{% if platform.name == "mac" %}
92+
{% if platform.name == "mac" and category.name == "functional %}
9393
- '{{ yamato_source_dir_nix }}/.Editor/Unity.app/Contents/MacOS/Unity -projectPath {{ yamato_source_dir_nix }} -batchmode -debugCodeOptimization -enableCodeCoverage -coverageResultsPath {{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/ -coverageOptions "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem;sourcePaths:{{ yamato_source_dir_nix }}/Packages/com.unity.inputsystem/" -quit'
9494
{% endif %}
95-
{% if platform.name == "linux" %}
95+
{% if platform.name == "linux" and category.name == "functional %}
9696
- '{{ yamato_source_dir_nix }}/.Editor/Unity -projectPath {{ yamato_source_dir_nix }} -batchmode -debugCodeOptimization -enableCodeCoverage -coverageResultsPath {{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/ -coverageOptions "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem;sourcePaths:{{ yamato_source_dir_nix }}/Packages/com.unity.inputsystem/" -quit'
9797
{% endif %}
9898
- rm -rf {{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Package
@@ -122,7 +122,7 @@ build_ios_{{ editor.version }}_{{ category.name }}:
122122
- {{ utr_install_nix }}
123123
- {{ unity_downloader_install }}
124124
- unity-downloader-cli -c Editor -c iOS -u $EDITOR_VERSION --fast --wait
125-
- ./utr --suite=playmode {% if category.name == "performance" %} --category=Performance {% endif %} --platform=iOS --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --build-only --report-performance-data --performance-project-id=InputSystem
125+
- ./utr --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=iOS --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --build-only {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %}
126126
after:
127127
- {{ instabilities_install_nix }}
128128
- {{ instabilities_run_mac }}
@@ -148,7 +148,7 @@ run_ios_{{ editor.version }}_{{ category.name }}:
148148
- .yamato/upm-ci.yml#build_ios_{{ editor.version }}_{{ category.name }}
149149
commands:
150150
- {{ utr_install_nix }}
151-
- ./utr --suite=playmode {% if category.name == "performance" %} --category=Performance {% endif %} --platform=iOS --player-load-path=build/players --artifacts_path=build/test-results --report-performance-data --performance-project-id=InputSystem
151+
- ./utr --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=iOS --player-load-path=build/players --artifacts_path=build/test-results {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %}
152152
after:
153153
- {{ instabilities_install_nix }}
154154
- {{ instabilities_run_mac }}
@@ -170,7 +170,7 @@ build_tvos_{{ editor.version }}:
170170
- {{ utr_install_nix }}
171171
- {{ unity_downloader_install }}
172172
- unity-downloader-cli -c Editor -c AppleTV -u $EDITOR_VERSION --fast --wait
173-
- ./utr --suite=playmode --platform=tvOS --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --build-only --report-performance-data --performance-project-id=InputSystem
173+
- ./utr --suite=playmode --platform=tvOS --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --build-only {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %}
174174
after:
175175
- {{ instabilities_install_nix }}
176176
- {{ instabilities_run_mac }}
@@ -195,7 +195,7 @@ run_tvos_{{ editor.version }}:
195195
- .yamato/upm-ci.yml#build_tvos_{{ editor.version }}
196196
commands:
197197
- {{ utr_install_nix }}
198-
- ./utr --suite=playmode --platform=tvOS --player-load-path=build/players --artifacts_path=build/test-results --report-performance-data --performance-project-id=InputSystem
198+
- ./utr --suite=playmode --platform=tvOS --player-load-path=build/players --artifacts_path=build/test-results {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %}
199199
after:
200200
- {{ instabilities_install_nix }}
201201
- {{ instabilities_run_mac }}
@@ -218,7 +218,7 @@ build_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
218218
- {{ utr_install_win }}
219219
- {{ unity_downloader_install }}
220220
- unity-downloader-cli -c Editor -c Android -u %EDITOR_VERSION% --fast --wait
221-
- ./utr --suite=playmode {% if category.name == "performance" %} --category=Performance {% endif %} --platform=Android --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --scripting-backend={{ backend.name }} --build-only --repository --performance-project-id=InputSystem
221+
- ./utr --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=Android --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --scripting-backend={{ backend.name }} --build-only --repository {% if category.name == "performance" %} --performance-project-id=InputSystem {% endif %}
222222
after:
223223
- {{ instabilities_install_win }}
224224
- {{ instabilities_run_win }}
@@ -252,7 +252,7 @@ run_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
252252
start %ANDROID_SDK_ROOT%\platform-tools\adb.exe connect %BOKKEN_DEVICE_IP%
253253
# List the connected devices
254254
start %ANDROID_SDK_ROOT%\platform-tools\adb.exe devices
255-
./utr --suite=playmode {% if category.name == "performance" %} --category=Performance {% endif %} --platform=android --player-load-path=build/players --artifacts_path=build/test-results --report-performance-data --performance-project-id=InputSystem
255+
./utr --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=android --player-load-path=build/players --artifacts_path=build/test-results {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %}
256256
after:
257257
- start %ANDROID_SDK_ROOT%\platform-tools\adb.exe connect %BOKKEN_DEVICE_IP%
258258
- if not exist build\test-results mkdir build\test-results
@@ -269,19 +269,19 @@ run_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
269269
{% endfor %} # editors
270270

271271
all_tests:
272-
name: All Tests
272+
name: Functional Tests
273273
dependencies:
274274
{% for editor in editors %}
275275
{% for platform in platforms_win %}
276-
- .yamato/upm-ci.yml#{{ platform.name }}_{{ editor.version }}_all
276+
- .yamato/upm-ci.yml#{{ platform.name }}_{{ editor.version }}_functional
277277
{% endfor %}
278278
{% for platform in platforms_nix %}
279-
- .yamato/upm-ci.yml#{{ platform.name }}_{{ editor.version }}_all
279+
- .yamato/upm-ci.yml#{{ platform.name }}_{{ editor.version }}_functional
280280
{% endfor %}
281281
{% for backend in scripting_backends %}
282-
- .yamato/upm-ci.yml#run_android_{{ editor.version }}_{{ backend.name }}_all
282+
- .yamato/upm-ci.yml#run_android_{{ editor.version }}_{{ backend.name }}_functional
283283
{% endfor %}
284-
- .yamato/upm-ci.yml#run_ios_{{ editor.version }}_all
284+
- .yamato/upm-ci.yml#run_ios_{{ editor.version }}_functional
285285
{% if editor.disable_tvos_run %}
286286
- .yamato/upm-ci.yml#build_tvos_{{ editor.version }}
287287
{% else %}

0 commit comments

Comments
 (0)