Skip to content

Commit 8d4c2e1

Browse files
Merge branch 'develop' into fix/NetworkEndPoint-simplify-to-NetworkEndpoint-2021
2 parents 0119761 + 94160ec commit 8d4c2e1

27 files changed

+101
-43
lines changed

.yamato/_run-all.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,13 @@ run_all_project_tests_desktop_standalone:
130130
{% for platform in test_platforms.desktop -%}
131131
{% for editor in validation_editors.all -%}
132132
{% for backend in scripting_backends -%}
133+
# There is an error 'No usable version of libssl' when it comes to building with combination of ubuntu and 2021 editor. It's not really worth to address it since
134+
# 1) The 2021 editor will soon be out of support
135+
# 2) We still have the same coverage by using mac and ubuntu is used in a whole bunch of different tests, so I'm quite sure it won't lead to any bug leaks
136+
# 3) The solution could be to manually install libss1.1 (since image has libssl3 and this causes conflicts on 2021 editor related to dotnet versions and support). There were several threads on this topic which can be looked on
137+
{% if editor != "2021.3" or platform.name != "ubuntu" %}
133138
- .yamato/desktop-standalone-tests.yml#desktop_standalone_test_{{ project.name }}_{{ platform.name }}_{{ backend }}_{{ editor }}
139+
{% endif -%}
134140
{% endfor -%}
135141
{% endfor -%}
136142
{% endfor -%}
@@ -158,7 +164,13 @@ run_all_project_tests_desktop_standalone_2021:
158164
{% for project in projects.default -%}
159165
{% for platform in test_platforms.desktop -%}
160166
{% for backend in scripting_backends -%}
167+
# There is an error 'No usable version of libssl' when it comes to building with combination of ubuntu and 2021 editor. It's not really worth to address it since
168+
# 1) The 2021 editor will soon be out of support
169+
# 2) We still have the same coverage by using mac and ubuntu is used in a whole bunch of different tests, so I'm quite sure it won't lead to any bug leaks
170+
# 3) The solution could be to manually install libss1.1 (since image has libssl3 and this causes conflicts on 2021 editor related to dotnet versions and support). There were several threads on this topic which can be looked on
171+
{% if platform.name != "ubuntu" %}
161172
- .yamato/desktop-standalone-tests.yml#desktop_standalone_test_{{ project.name }}_{{ platform.name }}_{{ backend }}_2021.3
173+
{% endif -%}
162174
{% endfor -%}
163175
{% endfor -%}
164176
{% endfor -%}
@@ -206,7 +218,10 @@ run_all_project_tests_console_standalone:
206218
{% for project in projects.default -%}
207219
{% for platform in test_platforms.console_test -%}
208220
{% for editor in validation_editors.all -%}
221+
# When building consoles with 2023 editor there are errors related to SDK version or uninstalled components. I will disable those for now and will add to my investigation list
222+
{% if editor != "2023.3" %}
209223
- .yamato/console-standalone-test.yml#run_{{ project.name }}_tests_{{ platform.name }}_{{ editor }}
224+
{% endif -%}
210225
{% endfor -%}
211226
{% endfor -%}
212227
{% endfor -%}

.yamato/_triggers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ develop_nightly:
4242
dependencies:
4343
# Run project standards to verify package/default project
4444
- .yamato/project-standards.yml#standards_ubuntu_testproject_trunk
45-
- .yamato/project-standards.yml#standards_ubuntu_testproject_2021.3
45+
# - .yamato/project-standards.yml#standards_ubuntu_testproject_2021.3 # Tracked in MTT-11382
4646
# Run APV jobs to make sure the change won't break any dependants
4747
- .yamato/wrench/preview-a-p-v.yml#all_preview_apv_jobs
4848
# Run package EditMode and Playmode tests on desktop platforms on trunk and 2021.3

.yamato/code-coverage.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ code_coverage_{{ platform.name }}_{{ editor }}:
1616
commands:
1717
- npm install -g upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
1818
- unity-downloader-cli -u {{ editor }} -c Editor --fast --wait
19-
- {% if platform.name == "ubuntu" %}DISPLAY=:0 {% endif %} upm-ci package test -u {{ editor }} --package-path com.unity.netcode.gameobjects --enable-code-coverage --code-coverage-options 'generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.Netcode.Editor,+Unity.Netcode.Runtime' --extra-utr-arg="--extra-editor-arg=--burst-disable-compilation --extra-editor-arg=-testCategory --extra-editor-arg=!Performance --timeout=1800 --reruncount=1 --clean-library-on-rerun"
19+
- DISPLAY=:0 upm-ci package test -u {{ editor }} --package-path com.unity.netcode.gameobjects --enable-code-coverage --code-coverage-options 'generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.Netcode.Editor,+Unity.Netcode.Runtime' --extra-utr-arg="--extra-editor-arg=--burst-disable-compilation --extra-editor-arg=testCategory --extra-editor-arg=!Performance --timeout=1800 --reruncount=1 --clean-library-on-rerun"
2020
artifacts:
2121
logs:
2222
paths:
2323
- "upm-ci~/test-results/**/*"
24+
- "upm-ci~/test-results/CoverageResults/**/*"
2425
dependencies:
25-
- .yamato/package-pack.yml#package_pack_-_ngo_{{ platform.name }}
26+
- .yamato/package-pack.yml#package_pack_-_ngo_{{ platform.name }}_upmCI
2627
{% endfor -%}
2728
{% endfor -%}

.yamato/console-standalone-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
{% for project in projects.default -%}
1616
{% for platform in test_platforms.console_build -%}
1717
{% for editor in validation_editors.all -%}
18+
# When building consoles with 2023 editor there are errors related to SDK version or uninstalled components. I will disable those for now and will add to my investigation list
19+
{% if editor != "2023.3" %}
1820
build_{{ project.name }}_{{ platform.name }}_{{ editor }}:
1921
name: Build {{ project.name }} - [{{ platform.name }}, {{ editor }}, il2cpp{% if platform.name == "switch" %}, arm64{% endif %}]
2022
agent:
@@ -47,6 +49,7 @@ build_{{ project.name }}_{{ platform.name }}_{{ editor }}:
4749
logs:
4850
paths:
4951
- "artifacts/**/*"
52+
{% endif -%}
5053
{% endfor -%}
5154
{% endfor -%}
5255
{% endfor -%}
@@ -57,6 +60,8 @@ build_{{ project.name }}_{{ platform.name }}_{{ editor }}:
5760
{% for project in projects.default -%}
5861
{% for platform in test_platforms.console_test -%}
5962
{% for editor in validation_editors.all -%}
63+
# When building consoles with 2023 editor there are errors related to SDK version or uninstalled components. I will disable those for now and will add to my investigation list
64+
{% if editor != "2023.3" %}
6065
run_{{ project.name }}_tests_{{ platform.name }}_{{ editor }}:
6166
name: Run {{ project.name }} Tests - [{{ platform.name }}, {{ editor }}, il2cpp]
6267
agent:
@@ -91,6 +96,7 @@ run_{{ project.name }}_tests_{{ platform.name }}_{{ editor }}:
9196
- "test-results/**/*"
9297
dependencies:
9398
- .yamato/console-standalone-test.yml#build_{{ project.name }}_{{ platform.name }}_{{ editor }}
99+
{% endif -%}
94100
{% endfor -%}
95101
{% endfor -%}
96102
{% endfor -%}

.yamato/desktop-standalone-tests.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
{% for platform in test_platforms.desktop -%}
1414
{% for editor in validation_editors.all -%}
1515
{% for backend in scripting_backends -%}
16+
# There is an error 'No usable version of libssl' when it comes to building with combination of ubuntu and 2021 editor. It's not really worth to address it since
17+
# 1) The 2021 editor will soon be out of support
18+
# 2) We still have the same coverage by using mac and ubuntu is used in a whole bunch of different tests, so I'm quite sure it won't lead to any bug leaks
19+
# 3) The solution could be to manually install libss1.1 (since image has libssl3 and this causes conflicts on 2021 editor related to dotnet versions and support). There were several threads on this topic which can be looked on
20+
{% if editor != "2021.3" or platform.name != "ubuntu" %}
1621
desktop_standalone_build_{{ project.name }}_{{ platform.name }}_{{ backend }}_{{ editor }}:
1722
name : Standalone Build - NGO {{ project.name }} - [{{ platform.name }}, {{ editor }}, {{ backend }}]
1823
agent:
@@ -57,6 +62,7 @@ desktop_standalone_build_{{ project.name }}_{{ platform.name }}_{{ backend }}_{{
5762

5863
dependencies:
5964
- .yamato/project-pack.yml#project_pack_-_{{ project.name }}_{{ platform.name }}
65+
{% endif %}
6066
{% endfor -%}
6167
{% endfor -%}
6268
{% endfor -%}
@@ -70,6 +76,11 @@ desktop_standalone_build_{{ project.name }}_{{ platform.name }}_{{ backend }}_{{
7076
{% for platform in test_platforms.desktop -%}
7177
{% for editor in validation_editors.all -%}
7278
{% for backend in scripting_backends -%}
79+
# There is an error 'No usable version of libssl' when it comes to building with combination of ubuntu and 2021 editor. It's not really worth to address it since
80+
# 1) The 2021 editor will soon be out of support
81+
# 2) We still have the same coverage by using mac and ubuntu is used in a whole bunch of different tests, so I'm quite sure it won't lead to any bug leaks
82+
# 3) The solution could be to manually install libss1.1 (since image has libssl3 and this causes conflicts on 2021 editor related to dotnet versions and support). There were several threads on this topic which can be looked on
83+
{% if editor != "2021.3" or platform.name != "ubuntu" %}
7384
desktop_standalone_test_{{ project.name }}_{{ platform.name }}_{{ backend }}_{{ editor }}:
7485
name : Standalone Test - NGO {{ project.name }} - [{{ platform.name }}, {{ editor }}, {{ backend }}]
7586
agent:
@@ -102,6 +113,7 @@ desktop_standalone_test_{{ project.name }}_{{ platform.name }}_{{ backend }}_{{
102113
- "test-results/**/*"
103114
dependencies:
104115
- .yamato/desktop-standalone-tests.yml#desktop_standalone_build_{{ project.name }}_{{ platform.name }}_{{ backend }}_{{ editor }}
116+
{% endif %}
105117
{% endfor -%}
106118
{% endfor -%}
107119
{% endfor -%}

.yamato/package-pack.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,27 @@ package_pack_-_ngo_{{ platform.name }}:
2525
packages:
2626
paths:
2727
- "upm-ci~/**"
28+
{% endfor -%}
29+
30+
# This is in essence the same job as the one above with the difference that upm-ci is used instead of upm-pvp
31+
# The reason for using it is that I had some problems with Code Coverage which in its current form uses upm-ci but if we would use the other pack job (the one above) we would need to use upm-pvp
32+
# I had some problems with getting it to work so as temporary solution I created this pack job which is used ONLY as a dependency of Code Coverage job (other jobs use the above definition of pack job)
33+
# TODO: remove this job and utilize the above one for Code Coverage job. This is tracked in MTT-11383
34+
{% for platform in test_platforms.default -%}
35+
{% for project in projects.default -%}
36+
package_pack_-_ngo_{{ platform.name }}_upmCI:
37+
name: Package Pack (legacy upm-ci) - NGO [{{ platform.name }}]
38+
agent:
39+
type: {{ platform.type }}
40+
image: {{ platform.image }}
41+
flavor: {{ platform.flavor }}
42+
timeout: 0.25
43+
commands:
44+
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
45+
- upm-ci project pack --project-path {{ project.path }}
46+
artifacts:
47+
packages:
48+
paths:
49+
- "upm-ci~/packages/**/*"
50+
{% endfor -%}
2851
{% endfor -%}

com.unity.netcode.gameobjects/TestHelpers/Runtime/Metrics/WaitForMetricValues.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public WaitForMetricValues(IMetricDispatcher dispatcher, DirectionalMetricInfo d
2121
dispatcher.RegisterObserver(this);
2222
}
2323

24-
abstract public void Observe(MetricCollection collection);
24+
public abstract void Observe(MetricCollection collection);
2525

2626
public void AssertMetricValuesHaveNotBeenFound()
2727
{

com.unity.netcode.gameobjects/Tests/Editor/InterpolatorTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public void OutOfOrderShouldStillWork()
105105
Assert.That(interpolator.GetInterpolatedValue(), Is.EqualTo(2f).Within(k_Precision));
106106
}
107107

108-
[Ignore("TODO: Fix this test to still handle testing message loss without extrapolation")]
108+
[Ignore("TODO: Fix this test to still handle testing message loss without extrapolation. This is tracked in MTT-11338")]
109109
[Test]
110110
public void MessageLoss()
111111
{
@@ -306,7 +306,7 @@ public void TestUpdatingInterpolatorWithNoData()
306306
Assert.Throws<InvalidOperationException>(() => interpolator.Update(1f, serverTime));
307307
}
308308

309-
[Ignore("TODO: Fix this test to still test duplicated values without extrapolation")]
309+
[Ignore("TODO: Fix this test to still test duplicated values without extrapolation. This is tracked in MTT-11338")]
310310
[Test]
311311
public void TestDuplicatedValues()
312312
{

com.unity.netcode.gameobjects/Tests/Editor/Metrics/NetworkMetricsRegistrationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class NetworkMetricsRegistrationTests
1616
.ToArray();
1717

1818
[TestCaseSource(nameof(s_MetricTypes))]
19-
[Ignore("Disable test while we reevaluate the assumption that INetworkMetricEvent interfaces must be reported from MLAPI.")]
19+
[Ignore("Disable test while we reevaluate the assumption that INetworkMetricEvent interfaces must be reported from MLAPI. This is tracked in MTT-11339")]
2020
public void ValidateThatAllMetricTypesAreRegistered(Type metricType)
2121
{
2222
var dispatcher = new NetworkMetrics().Dispatcher as MetricDispatcher;

com.unity.netcode.gameobjects/Tests/Runtime/DeferredMessagingTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,6 @@ public void WhenANetworkVariableDeltaMessageArrivesBeforeASpawnArrives_ItIsDefer
492492
}
493493

494494
[Test]
495-
//[Ignore("Disabling this temporarily until it is migrated into new integration test.")]
496495
public void WhenASpawnMessageArrivesBeforeThePrefabIsAvailable_ItIsDeferred()
497496
{
498497
m_SkipAddingPrefabsToClient = true;

0 commit comments

Comments
 (0)