Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
14 changes: 13 additions & 1 deletion .yamato/config.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -36,31 +36,37 @@ platforms_nix:
type: Unity::VM::osx
image: package-ci/macos-13:default
flavor: m1.mac
instabilities_run: sh ./run_standalone_instability_detection-latest.sh macos 0.5.1 || exit 0
- name: mac_standalone
type: Unity::VM::osx
image: package-ci/macos-13:default
flavor: m1.mac
instabilities_run: sh ./run_standalone_instability_detection-latest.sh macos 0.5.1 || exit 0
runtime: StandaloneOSX
- name: mac_standalone_il2cpp
type: Unity::VM::osx
image: package-ci/macos-13:default
flavor: m1.mac
instabilities_run: sh ./run_standalone_instability_detection-latest.sh macos 0.5.1 || exit 0
runtime: StandaloneOSX
scripting-backend: Il2Cpp
installscript: unity-downloader-cli -c editor -c StandaloneSupport-IL2CPP --wait --fast -u
- name: linux
type: Unity::VM
image: package-ci/ubuntu-20.04:v4.50.0
flavor: b1.large
instabilities_run: sh ./run_standalone_instability_detection-latest.sh ubuntu 0.5.1 || exit 0
- name: linux_standalone
type: Unity::VM
image: package-ci/ubuntu-20.04:v4.50.0
flavor: b1.large
instabilities_run: sh ./run_standalone_instability_detection-latest.sh ubuntu 0.5.1 || exit 0
runtime: StandaloneLinux64
- name: linux_standalone_il2cpp
type: Unity::VM
image: package-ci/ubuntu-20.04:v4.50.0
flavor: b1.large
instabilities_run: sh ./run_standalone_instability_detection-latest.sh ubuntu 0.5.1 || exit 0
runtime: StandaloneLinux64
scripting-backend: Il2Cpp
installscript: unity-downloader-cli -c editor -c StandaloneSupport-IL2CPP --wait --fast -u
Expand All @@ -72,4 +78,10 @@ ios_and_tvos_macos_bokken_image: package-ci/macos-13:v4.50.0

test_category:
- name: performance
- name: all
- name: all

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
instabilities_run_win: run_standalone_instability_detection-latest.bat 0.5.1 || exit 0

instabilities_install_nix: curl -s https://artifactory.prd.it.unity3d.com/artifactory/automation-and-tooling/infrastructure-instability-detection/standalone/setup/run_standalone_instability_detection-latest.sh --output run_standalone_instability_detection-latest.sh --retry 5 || exit 0
instabilities_run_mac: sh ./run_standalone_instability_detection-latest.sh macos 0.5.1 || exit 0
27 changes: 25 additions & 2 deletions .yamato/upm-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
- 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 %} {% 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
after:
- {{ instabilities_install_win }}
- {{ instabilities_run_win }}
artifacts:
UTR_Output.zip:
paths:
Expand Down Expand Up @@ -72,6 +75,9 @@
- 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 %} {% 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
after:
- {{ instabilities_install_nix }}
- {{ platform.instabilities_run }}
artifacts:
UTR_Output.zip:
paths:
Expand All @@ -93,6 +99,9 @@ build_ios_{{ editor.version }}_{{ category.name }}:
- {{ unity_downloader_install }}
- unity-downloader-cli -c Editor -c iOS -u {{ editor.version }} --fast --wait
- ./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
after:
- {{ instabilities_install_nix }}
- {{ instabilities_run_mac }}
artifacts:
players:
paths:
Expand All @@ -113,7 +122,10 @@ run_ios_{{ editor.version }}_{{ category.name }}:
- .yamato/upm-ci.yml#build_ios_{{ editor.version }}_{{ category.name }}
commands:
- {{ utr_install_nix }}
- ./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
- ./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
after:
- {{ instabilities_install_nix }}
- {{ instabilities_run_mac }}
artifacts:
logs:
paths:
Expand All @@ -131,6 +143,9 @@ build_tvos_{{ editor.version }}:
- {{ unity_downloader_install }}
- unity-downloader-cli -c Editor -c AppleTV -u {{ editor.version }} --fast --wait
- ./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
after:
- {{ instabilities_install_nix }}
- {{ instabilities_run_mac }}
artifacts:
players:
paths:
Expand All @@ -151,6 +166,9 @@ run_tvos_{{ editor.version }}:
commands:
- {{ utr_install_nix }}
- ./utr --suite=playmode --platform=tvOS --player-load-path=build/players --artifacts_path=build/test-results --report-performance-data --performance-project-id=InputSystem
after:
- {{ instabilities_install_nix }}
- {{ instabilities_run_mac }}
artifacts:
logs:
paths:
Expand All @@ -169,6 +187,9 @@ build_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
- {{ unity_downloader_install }}
- unity-downloader-cli -c Editor -c Android -u {{ editor.version }} --fast --wait
- ./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
after:
- {{ instabilities_install_win }}
- {{ instabilities_run_win }}
artifacts:
players:
paths:
Expand Down Expand Up @@ -201,7 +222,9 @@ run_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
after:
- start %ANDROID_SDK_ROOT%\platform-tools\adb.exe connect %BOKKEN_DEVICE_IP%
- if not exist build\test-results mkdir build\test-results
- powershell %ANDROID_SDK_ROOT%\platform-tools\adb.exe logcat -d > build/test-results/device_log.txt
- powershell %ANDROID_SDK_ROOT%\platform-tools\adb.exe logcat -d > build/test-results/device_log.txt
- {{ instabilities_install_win }}
- {{ instabilities_run_win }}
# Set uploadable artifact paths
artifacts:
logs:
Expand Down