Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
b817087
first try, windows only
stefanunity Aug 29, 2024
6fec927
Update upm-ci.yml
stefanunity Aug 29, 2024
ea44c5e
try performance %if% again
stefanunity Aug 29, 2024
c498801
Update upm-ci.yml
stefanunity Aug 29, 2024
90320b6
Update upm-ci.yml
stefanunity Aug 29, 2024
8e9ebf9
redo config variable
stefanunity Aug 29, 2024
61c3967
Update upm-ci.yml
stefanunity Aug 29, 2024
5bddef3
Update config.metadata
stefanunity Aug 29, 2024
4458930
change job definition to use variable
stefanunity Aug 30, 2024
4e134d3
Update config.metadata
stefanunity Aug 30, 2024
fb8d5cd
update
stefanunity Aug 30, 2024
fefc424
Update upm-ci.yml
stefanunity Aug 30, 2024
477dd42
Update upm-ci.yml
stefanunity Aug 30, 2024
ce2ba0b
Update upm-ci.yml
stefanunity Aug 30, 2024
9f044b3
Update upm-ci.yml
stefanunity Aug 30, 2024
a4fab32
asd
stefanunity Aug 30, 2024
a4440da
lower case
stefanunity Aug 30, 2024
e4425b4
Update upm-ci.yml
stefanunity Aug 30, 2024
95aaaef
enable for all performance platforms
stefanunity Aug 30, 2024
c571910
Update upm-ci.yml
stefanunity Aug 30, 2024
18eb2f6
dependency fix
stefanunity Aug 30, 2024
4090e9c
fix All Test job
stefanunity Aug 30, 2024
f707d6a
daily run test
stefanunity Sep 2, 2024
8950a1e
shorter names for yamato
stefanunity Sep 2, 2024
d9c98d2
update package to latest, increase performance runs
stefanunity Sep 3, 2024
95d3eec
Update upm-ci.yml
stefanunity Sep 3, 2024
ec6d4e0
lowering some runs again
stefanunity Sep 3, 2024
c18c692
more lowering
stefanunity Sep 3, 2024
34dc09f
back to 0 and reevalute
stefanunity Sep 3, 2024
51f7c57
remove unneeded words from names
stefanunity Sep 3, 2024
2396c21
update framework to latest, change branches to live
stefanunity Sep 5, 2024
90dc432
comment improvements
stefanunity Sep 5, 2024
a2775cc
Merge branch 'develop' into input/performance-testing-changes
stefanunity Sep 5, 2024
9d814b1
formatting
stefanunity Sep 5, 2024
3f56cd9
wrong branch name
stefanunity Sep 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .yamato/config.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,8 @@ scripting_backends:
- name: mono
- name: il2cpp

ios_and_tvos_macos_bokken_image: package-ci/macos-13:v4.50.0
ios_and_tvos_macos_bokken_image: package-ci/macos-13:v4.50.0

test_category:
- name: performance
- name: all
99 changes: 66 additions & 33 deletions .yamato/upm-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@

{% for editor in editors %}
{% for platform in platforms_win %}
{{ platform.name }}_{{ editor.version }}:
name : Build and Test version {{ editor.version }} on {{ platform.name }}
{% for category in test_category %}
{{ platform.name }}_{{ editor.version }}_{{ category.name }}:
name : Build & Run {{ editor.version }} - {{ platform.name }}, {{ category.name }} tests
agent:
type: {{ platform.type }}
image: {{ platform.image }}
Expand Down Expand Up @@ -32,15 +33,18 @@
- move /Y .\Packages\com.unity.inputsystem\Samples .\Assets
- move /Y .\Packages\com.unity.inputsystem\Samples.meta .\Assets
# Now run our full test suite that sits in Assets/Tests by running UTR on our project.
- ./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 %} --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
- ./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 %} --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
artifacts:
UTR_Output.zip:
paths:
- "upm-ci~/test-results/**/*"
{% endfor %}
{% endfor %} # test_category
{% endfor %} # platforms_win

{% for platform in platforms_nix %}
{{ platform.name }}_{{ editor.version }}:
name : Build and Test version {{ editor.version }} on {{ platform.name }}
{% for category in test_category %}
{{ platform.name }}_{{ editor.version }}_{{ category.name }}:
name : Build & Run {{ editor.version }} - {{ platform.name }}, {{ category.name }} tests
agent:
type: {{ platform.type }}
image: {{ platform.image }}
Expand All @@ -67,17 +71,19 @@
- mv ./Packages/com.unity.inputsystem/Samples ./Assets
- mv ./Packages/com.unity.inputsystem/Samples.meta ./Assets
# Now run our full test suite that sits in Assets/Tests by running UTR on our project.
- ./utr --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --suite=playmode {% if platform.name == "mac" %} --suite=editor {% endif %} {% if platform.name == "linux" %} --suite=editor {% 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
- ./utr --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --suite=playmode {% if platform.name == "mac" %} --suite=editor {% endif %} {% if 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
artifacts:
UTR_Output.zip:
paths:
- "upm-ci~/test-results/**/*"
{% endfor %}
{% endfor %}
{% endfor %} # test_category
{% endfor %} # platforms_nix
{% endfor %} # editors

{% for editor in editors %}
build_ios_{{ editor.version }}:
name: Build Tests on {{ editor.version }} on ios
{% for category in test_category %}
build_ios_{{ editor.version }}_{{ category.name }}:
name: Build - {{ editor.version }} - iOS, {{ category.name }} tests
agent:
type: Unity::VM::osx
image: {{ ios_and_tvos_macos_bokken_image }}
Expand All @@ -86,7 +92,7 @@ build_ios_{{ editor.version }}:
- {{ utr_install_nix }}
- {{ unity_downloader_install }}
- unity-downloader-cli -c Editor -c iOS -u {{ editor.version }} --fast --wait
- ./utr --suite=playmode --platform=iOS --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --build-only --report-performance-data --performance-project-id=InputSystem
- ./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
artifacts:
players:
paths:
Expand All @@ -95,26 +101,27 @@ build_ios_{{ editor.version }}:
paths:
- "build/logs/**"

run_ios_{{ editor.version }}:
name: Run Tests on {{ editor.version }} on ios
run_ios_{{ editor.version }}_{{ category.name }}:
name: Run - {{ editor.version }} - iOS, {{ category.name }} tests
agent:
type: Unity::mobile::iPhone
image: {{ ios_and_tvos_macos_bokken_image }}
model: SE
flavor: b1.medium
skip_checkout: true
dependencies:
- .yamato/upm-ci.yml#build_ios_{{ editor.version }}
- .yamato/upm-ci.yml#build_ios_{{ editor.version }}_{{ category.name }}
commands:
- {{ utr_install_nix }}
- ./utr --suite=playmode --platform=iOS --player-load-path=build/players --artifacts_path=build/test-results --report-performance-data --performance-project-id=InputSystem
- ./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
artifacts:
logs:
paths:
- "build/test-results/**"
{% endfor %} # test_category

build_tvos_{{ editor.version }}:
name: Build Tests on {{ editor.version }} on tvos
name: Build - {{ editor.version }} - tvOS
agent:
type: Unity::VM::osx
image: {{ ios_and_tvos_macos_bokken_image }}
Expand All @@ -133,7 +140,7 @@ build_tvos_{{ editor.version }}:
- "build/logs/**"

run_tvos_{{ editor.version }}:
name: Run Tests on {{ editor.version }} on tvos
name: Run - {{ editor.version }} - tvOS
agent:
type: Unity::mobile::appletv
image: {{ ios_and_tvos_macos_bokken_image }}
Expand All @@ -150,8 +157,9 @@ run_tvos_{{ editor.version }}:
- "build/test-results/**"

{% for backend in scripting_backends %}
build_android_{{ editor.version }}_{{ backend.name }}:
name: Build Tests on {{ editor.version }} on android {{ backend.name }}
{% for category in test_category %}
build_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
name: Build - {{ editor.version }} - Android {{ backend.name }}, {{ category.name }} tests
agent:
type: Unity::VM
image: package-ci/win10:default
Expand All @@ -160,7 +168,7 @@ build_android_{{ editor.version }}_{{ backend.name }}:
- {{ utr_install_win }}
- {{ unity_downloader_install }}
- unity-downloader-cli -c Editor -c Android -u {{ editor.version }} --fast --wait
- ./utr --suite=playmode --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
- ./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
artifacts:
players:
paths:
Expand All @@ -169,8 +177,8 @@ build_android_{{ editor.version }}_{{ backend.name }}:
paths:
- "build/logs/**"

run_android_{{ editor.version }}_{{ backend.name }}:
name: Run Tests on {{ editor.version }} on android {{ backend.name }}
run_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
name: Run - {{ editor.version }} - Android {{ backend.name }}, {{ category.name }} tests
agent:
type: Unity::mobile::shield
image: package-ci/win10:default
Expand All @@ -179,7 +187,7 @@ run_android_{{ editor.version }}_{{ backend.name }}:
skip_checkout: true
# Set a dependency on the build job
dependencies:
- .yamato/upm-ci.yml#build_android_{{ editor.version }}_{{ backend.name }}
- .yamato/upm-ci.yml#build_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}
commands:
- {{ utr_install_win }}
- |
Expand All @@ -189,7 +197,7 @@ run_android_{{ editor.version }}_{{ backend.name }}:
start %ANDROID_SDK_ROOT%\platform-tools\adb.exe connect %BOKKEN_DEVICE_IP%
# List the connected devices
start %ANDROID_SDK_ROOT%\platform-tools\adb.exe devices
./utr --suite=playmode --platform=android --player-load-path=build/players --artifacts_path=build/test-results --report-performance-data --performance-project-id=InputSystem
./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
after:
- start %ANDROID_SDK_ROOT%\platform-tools\adb.exe connect %BOKKEN_DEVICE_IP%
- if not exist build\test-results mkdir build\test-results
Expand All @@ -199,24 +207,24 @@ run_android_{{ editor.version }}_{{ backend.name }}:
logs:
paths:
- "build/test-results/**"
{% endfor %}

{% endfor %}
{% endfor %} # test_category
{% endfor %} # scripting_backends
{% endfor %} # editors

all_tests:
name: All Tests
name: All Tests
dependencies:
{% for editor in editors %}
{% for platform in platforms_win %}
- .yamato/upm-ci.yml#{{ platform.name }}_{{ editor.version }}
- .yamato/upm-ci.yml#{{ platform.name }}_{{ editor.version }}_all
{% endfor %}
{% for platform in platforms_nix %}
- .yamato/upm-ci.yml#{{ platform.name }}_{{ editor.version }}
- .yamato/upm-ci.yml#{{ platform.name }}_{{ editor.version }}_all
{% endfor %}
{% for backend in scripting_backends %}
- .yamato/upm-ci.yml#run_android_{{ editor.version }}_{{ backend.name }}
- .yamato/upm-ci.yml#run_android_{{ editor.version }}_{{ backend.name }}_all
{% endfor %}
- .yamato/upm-ci.yml#run_ios_{{ editor.version }}
- .yamato/upm-ci.yml#run_ios_{{ editor.version }}_all
{% if editor.disable_tvos_run %}
- .yamato/upm-ci.yml#build_tvos_{{ editor.version }}
{% else %}
Expand All @@ -230,6 +238,31 @@ all_tests:
- targets:
only:
- "develop"


performance_tests_only:
name: Performance Tests Only
dependencies:
{% for editor in editors %}
{% for platform in platforms_win %}
- .yamato/upm-ci.yml#{{ platform.name }}_{{ editor.version }}_performance
{% endfor %}
{% for platform in platforms_nix %}
- .yamato/upm-ci.yml#{{ platform.name }}_{{ editor.version }}_performance
{% endfor %}
{% for backend in scripting_backends %}
- .yamato/upm-ci.yml#run_android_{{ editor.version }}_{{ backend.name }}_performance
{% endfor %}
- .yamato/upm-ci.yml#run_ios_{{ editor.version }}_performance
{% endfor %}
triggers:
recurring:
- branch: develop
frequency: daily
rerun: on_new_revision
- branch: stable
frequency: weekly
rerun: on_new_revision

{% for run in (1..2) %}
publish{% cycle "", "_dryrun" %}:
Expand Down
4 changes: 2 additions & 2 deletions Packages/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"com.unity.ide.rider": "1.2.1",
"com.unity.ide.visualstudio": "2.0.15",
"com.unity.settings-manager": "1.0.3",
"com.unity.test-framework": "1.4.3",
"com.unity.test-framework": "1.4.5",
"com.unity.test-framework.build": "0.0.1-preview.12",
"com.unity.test-framework.performance": "3.0.2",
"com.unity.test-framework.performance": "3.0.3",
"com.unity.test-framework.utp-reporter": "1.1.0-preview",
"com.unity.textmeshpro": "2.1.4",
"com.unity.ugui": "1.0.0",
Expand Down