Skip to content

Commit 2091e2a

Browse files
test: build multiprocesstestplayer and add it to project tests job (#1174)
* Refactor The base requirements to build and run multiprocess stuff. * style removing LF * Change yamato yaml files to build multiprocesstestplayer and add it to the project tests job * fix Adding back the multiprocess ignore capabilities with the ability to easily override this ignore for continued development work. * fix including the IgnorMultiprocessTests test check for the NetworkVariablePerformanceTests * changes for multiprocess test build and run tests * style fixing white space formatting issue due to indentation. * manage processes and arguments passed to test player * fix typo in YAML file * bash syntax was wrong, fix * respond to PR feedback Co-authored-by: NoelStephensUnity <[email protected]> Co-authored-by: Noel Stephens <[email protected]>
1 parent 16d9850 commit 2091e2a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.yamato/project-tests.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,16 @@ test_{{ project.name }}_{{ editor }}_{{ platform.name }}:
4141
flavor: {{ platform.flavor}}
4242
commands:
4343
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
44-
- {% if platform.name == "centos" %}DISPLAY=:0 {% endif %}upm-ci project test -u {{ editor }} --project-path {{ project.path }} --type project-tests
44+
- pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
45+
- unity-downloader-cli -u {{ editor }} -c editor -w --fast
46+
- {% if platform.name == "ubuntu" %}DISPLAY=:0 && {% endif %}{{ platform.editorpath }} -projectpath testproject -batchmode -nographics -quit -logfile BuildMultiprocessTestPlayer.log -executeMethod Unity.Netcode.MultiprocessRuntimeTests.BuildMultiprocessTestPlayer.BuildDebug
47+
{% if platform.name == "mac" %} - sudo codesign --force --deep --sign - ./testproject/Builds/MultiprocessTests/MultiprocessTestPlayer.app{% endif %}
48+
- {% if platform.name == "ubuntu" %}DISPLAY=:0 && {% endif %}upm-ci project test -u {{ editor }} --project-path {{ project.path }} --type project-tests
4549
artifacts:
4650
logs:
4751
paths:
4852
- "upm-ci~/test-results/**/*"
53+
- BuildMultiprocessTestPlayer.log
4954
dependencies:
5055
- .yamato/project-pack.yml#pack_{{ project.name }}
5156

.yamato/project.metafile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,17 @@ test_platforms:
77
type: Unity::VM
88
image: package-ci/win10:stable
99
flavor: b1.large
10+
editorpath: .Editor\Unity.exe
1011
- name: mac
1112
type: Unity::VM::osx
1213
image: package-ci/mac:stable
1314
flavor: m1.mac
15+
editorpath: .Editor/Unity.app/Contents/MacOS/Unity
1416
- name: ubuntu
1517
type: Unity::VM
1618
image: package-ci/ubuntu:stable
1719
flavor: b1.large
20+
editorpath: .Editor/Unity
1821

1922
# Projects within the repository that will be tested. Name will be used
2023
# for job ids, so it should not contain spaces/non-supported characters
@@ -38,4 +41,4 @@ projects:
3841
validate: false
3942
test_editors:
4043
- 2021.2
41-
- trunk
44+
- trunk

0 commit comments

Comments
 (0)