Skip to content

Commit a3562e4

Browse files
committed
merge branch 'develop' into feat/ownernetworkvariable
2 parents d174d40 + e53cbf9 commit a3562e4

File tree

69 files changed

+3107
-1407
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+3107
-1407
lines changed

.yamato/_run-all.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ run_all_tests:
1414
- .yamato/package-tests.yml#test_{{ project.name}}_{{ package.name }}_{{ editor }}_{{ platform.name }}
1515
{% endfor -%}
1616
- .yamato/project-tests.yml#test_{{ project.name }}_{{ editor }}_{{ platform.name }}
17-
- .yamato/project-tests.yml#multiprocess_test_testproject_{{ editor }}_{{ platform.name }}
1817
{% endfor -%}
1918
{% endfor -%}
2019
{% endfor -%}
@@ -45,4 +44,18 @@ all_package_tests:
4544
{% endfor -%}
4645
{% endfor -%}
4746
{% endfor -%}
48-
{% endfor -%}
47+
{% endfor -%}
48+
49+
all_singlenode_multiprocess_tests:
50+
name: Run All Multiprocess Tests - Single Node
51+
dependencies:
52+
# Pull in package and validate jobs through the badges job
53+
{% for platform in test_platforms -%}
54+
{% for project in projects -%}
55+
{% for editor in project.test_editors -%}
56+
{% if editor != "trunk" %}
57+
- .yamato/multiprocess-project-tests.yml#singlenode_multiprocess_test_testproject_{{ editor }}_{{ platform.name }}
58+
{% endif %}
59+
{% endfor -%}
60+
{% endfor -%}
61+
{% endfor -%}

.yamato/_triggers.yml

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{% metadata_file .yamato/project.metafile %}
22
---
3-
# `develop` trigger
4-
develop_nightly_trigger:
5-
name: Develop Branch Nightly Trigger
3+
develop_nightly:
4+
name: "[Nightly] Run All Tests"
65
triggers:
76
recurring:
87
- branch: develop
@@ -13,21 +12,16 @@ develop_nightly_trigger:
1312
{% for project in projects -%}
1413
- .yamato/code-coverage.yml#code_coverage_win_{{ project.name }}
1514
{% endfor -%}
16-
17-
# Legacy job that matches the name with branch protections as of 8/11
18-
# Can be removed once branch protections are updated to the new name
19-
pull_request_trigger_legacy:
20-
name: Pull Request Trigger on 2021.1 (master, develop, & release branches)
21-
dependencies:
22-
- .yamato/_triggers.yml#pull_request_trigger
15+
16+
multiprocess_nightly:
17+
name: "[Nightly] Run Multiprocess Tests"
2318
triggers:
24-
cancel_old_ci: true
25-
pull_requests:
26-
- targets:
27-
only:
28-
- "master"
29-
- "develop"
30-
- "/release\/.*/"
19+
recurring:
20+
- branch: develop
21+
frequency: daily
22+
rerun: always
23+
dependencies:
24+
- .yamato/_run-all.yml#all_singlenode_multiprocess_tests
3125

3226
# Run all relevant tasks when a pull request targeting the develop
3327
# branch is created or updated. Currently only netcode package tests are
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{% metadata_file .yamato/project.metafile %}
2+
---
3+
4+
{% for project in projects -%}
5+
{% if project.name == "testproject" %}
6+
{% for editor in project.test_editors -%}
7+
{% for platform in test_platforms -%}
8+
singlenode_multiprocess_test_testproject_{{ editor }}_{{ platform.name }}:
9+
name : Multiprocess Tests - {{ editor }} on {{ platform.name }}
10+
agent:
11+
type: {{ platform.type }}
12+
image: {{ platform.image }}
13+
flavor: {{ platform.flavor}}
14+
commands:
15+
- pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
16+
{% if editor != "trunk" %}
17+
- unity-downloader-cli -u {{ editor }} -c editor -w --fast
18+
- curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr{% if platform.name == "win" %}.bat --output utr.bat{% endif %}{% if platform.name != "win" %} --output utr && chmod +x ./utr{% endif %}
19+
- {{ platform.editorpath }} -projectpath testproject -batchmode -nographics -quit -logfile BuildMultiprocessTestPlayer.log -executeMethod Unity.Netcode.MultiprocessRuntimeTests.BuildMultiprocessTestPlayer.BuildRelease
20+
{% if platform.name == "mac" %} - sudo codesign --force --deep --sign - ./testproject/Builds/MultiprocessTests/MultiprocessTestPlayer.app{% endif %}
21+
- {{ platform.utr }} --suite=playmode --testproject=testproject --editor-location=.Editor --testfilter=Unity.Netcode.MultiprocessRuntimeTests --extra-editor-arg=-bypassIgnoreUTR
22+
{% endif %}
23+
after:
24+
- echo "After block"
25+
{% if editor != "trunk" %}
26+
{% if platform.name == "win" %} - copy %USERPROFILE%\.multiprocess\logfile* .{% endif %}
27+
{% if platform.name != "win" %} - cp $HOME/.multiprocess/logfile* .{% endif %}
28+
{% endif %}
29+
artifacts:
30+
logs:
31+
paths:
32+
- "upm-ci~/test-results/**/*"
33+
- BuildMultiprocessTestPlayer.log
34+
- "logfile*"
35+
- "*.log"
36+
- "*.txt"
37+
dependencies:
38+
- .yamato/project-pack.yml#pack_{{ project.name }}
39+
{% endfor -%}
40+
{% endfor -%}
41+
{% endif -%}
42+
{% endfor -%}

.yamato/project-tests.yml

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -55,37 +55,3 @@ test_{{ project.name }}_{{ editor }}_{{ platform.name }}:
5555
{% endfor -%}
5656
{% endfor -%}
5757

58-
{% for project in projects -%}
59-
{% if project.name == "testproject" %}
60-
{% for editor in project.test_editors -%}
61-
{% for platform in test_platforms -%}
62-
multiprocess_test_testproject_{{ editor }}_{{ platform.name }}:
63-
name : multiprocess tests - {{ editor }} on {{ platform.name }}
64-
agent:
65-
type: {{ platform.type }}
66-
image: {{ platform.image }}
67-
flavor: {{ platform.flavor}}
68-
commands:
69-
- pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
70-
- unity-downloader-cli -u {{ editor }} -c editor -w --fast
71-
- curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr{% if platform.name == "win" %}.bat --output utr.bat{% endif %}{% if platform.name != "win" %} --output utr && chmod +x ./utr{% endif %}
72-
- {{ platform.editorpath }} -projectpath testproject -batchmode -nographics -quit -logfile BuildMultiprocessTestPlayer.log -executeMethod Unity.Netcode.MultiprocessRuntimeTests.BuildMultiprocessTestPlayer.BuildRelease
73-
{% if platform.name == "mac" %} - sudo codesign --force --deep --sign - ./testproject/Builds/MultiprocessTests/MultiprocessTestPlayer.app{% endif %}
74-
- {{ platform.utr }} --suite=playmode --testproject=testproject --editor-location=.Editor --testfilter=Unity.Netcode.MultiprocessRuntimeTests --extra-editor-arg=-bypassIgnoreUTR
75-
after:
76-
{% if platform.name == "win" %} - copy %USERPROFILE%\.multiprocess\logfile* .{% endif %}
77-
{% if platform.name != "win" %} - cp $HOME/.multiprocess/logfile* .{% endif %}
78-
artifacts:
79-
logs:
80-
paths:
81-
- "upm-ci~/test-results/**/*"
82-
- BuildMultiprocessTestPlayer.log
83-
- "logfile*"
84-
- "*.log"
85-
- "*.txt"
86-
dependencies:
87-
- .yamato/project-pack.yml#pack_{{ project.name }}
88-
{% endfor -%}
89-
{% endfor -%}
90-
{% endif -%}
91-
{% endfor -%}

.yamato/project.metafile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ projects:
4141
- name: com.unity.netcode.adapter.utp
4242
path: com.unity.netcode.adapter.utp
4343
test_editors:
44-
- 2021.1
4544
- 2021.2
4645
- 2020.3
4746
- trunk

com.unity.netcode.adapter.utp/CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
44

5-
## [Unreleased]
5+
## [1.0.0-pre.6] - 2022-03-02
66

77
### Added
88

@@ -11,7 +11,8 @@ All notable changes to this package will be documented in this file. The format
1111

1212
### Changed
1313

14-
- Updated Unity Transport package to 1.0.0-pre.13. (#1696)
14+
- Updated Unity Transport package to 1.0.0-pre.14. (#1760)
15+
- Updated Netcode for GameObjects dependency to 1.0.0-pre.6 (#1771)
1516
- Overflowing the reliable send queue of a connection will now result in the connection being closed, rather than spamming the log with errors about not being able to send a payload. It is deemed better to close the connection than to lose reliable traffic (which could cause all sorts of weird synchronization issues). (#1747)
1617

1718
### Fixed

com.unity.netcode.adapter.utp/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"name": "com.unity.netcode.adapter.utp",
33
"displayName": "Unity Transport for Netcode for GameObjects",
44
"description": "This package is plugging Unity Transport into Netcode for GameObjects, which is a network transport layer - the low-level interface for sending UDP data",
5-
"version": "1.0.0-pre.5",
5+
"version": "1.0.0-pre.6",
66
"unity": "2020.3",
77
"dependencies": {
8-
"com.unity.netcode.gameobjects": "1.0.0-pre.5",
9-
"com.unity.transport": "1.0.0-pre.13"
8+
"com.unity.netcode.gameobjects": "1.0.0-pre.6",
9+
"com.unity.transport": "1.0.0-pre.14"
1010
}
1111
}

com.unity.netcode.gameobjects/CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
77
Additional documentation and release notes are available at [Multiplayer Documentation](https://docs-multiplayer.unity3d.com).
88

99
## [Unreleased]
10-
1110
### Added
11+
### Changed
12+
### Fixed
13+
- Fixed issue when spawning new player if an already existing player exists it does not remove IsPlayer from the previous player (#1779)
14+
- Fixed lack of notification that NetworkManager and NetworkObject cannot be added to the same GameObject with in-editor notifications (#1777)
1215

13-
- Added first set of tests for NetworkAnimator - parameter syncing, trigger set / reset, override network animator (#7135)
16+
## [1.0.0-pre.6] - 2022-03-02
17+
18+
### Added
19+
- NetworkAnimator now properly synchrhonizes all animation layers as well as runtime-adjusted weighting between them (#1765)
20+
- Added first set of tests for NetworkAnimator - parameter syncing, trigger set / reset, override network animator (#1735)
1421

1522
### Changed
1623

@@ -33,6 +40,7 @@ Additional documentation and release notes are available at [Multiplayer Documen
3340
- Fixed OwnedObjects not being properly modified when using ChangeOwnership (#1731)
3441
- Improved performance in NetworkAnimator (#1735)
3542
- Removed the "always sync" network animator (aka "autosend") parameters (#1746)
43+
- Fixed in-scene placed NetworkObjects not respawning after shutting down the NetworkManager and then starting it back up again (#1769)
3644

3745
## [1.0.0-pre.5] - 2022-01-26
3846

0 commit comments

Comments
 (0)