Skip to content

Commit 9a69a78

Browse files
ci: Fixes to few test failures (#3773)
* regenerated recipes * fix Moving the mid-test #endif and moving it to the bottom. * corrected typo in code coverage --------- Co-authored-by: Noel Stephens <[email protected]>
1 parent 2931218 commit 9a69a78

File tree

4 files changed

+2
-363
lines changed

4 files changed

+2
-363
lines changed

.yamato/code-coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ code_coverage_{{ platform.name }}_{{ editor }}:
3939
commands:
4040
- unity-downloader-cli --fast --wait -u {{ editor }} -c Editor {% if platform.name == "mac" %} --arch arm64 {% endif %} # For macOS we use ARM64 models
4141
- upm-pvp create-test-project test-project --packages "upm-ci~/packages/*.tgz" --unity .Editor
42-
- UnifiedTestRunner --suite=editor --suite=playmode --editor-location=.Editor --testproject=test-project --enable-code-coverage coverage-upload-options="reportsDir:$PWD/test-results/CoverageResults;name:NGOv2_{{ platform.name }}_{{ editor }};flags:NGOv2_{{ platform.name }}_{{ editor }};verbose" --coverage-results-path=$PWD/test-results/CoverageResults --coverage-options="generateHtmlReport;generateAdditionalMetrics;assemblyFilters:+Unity.Netcode.Editor,+Unity.Netcode.Runtime" --extra-editor-arg=--burst-disable-compilation --timeout={ test_timeout }} --rerun-strategy=Test --retry={{ num_test_retries }} --clean-library-on-rerun --artifacts-path=test-results
42+
- UnifiedTestRunner --suite=editor --suite=playmode --editor-location=.Editor --testproject=test-project --enable-code-coverage coverage-upload-options="reportsDir:$PWD/test-results/CoverageResults;name:NGOv2_{{ platform.name }}_{{ editor }};flags:NGOv2_{{ platform.name }}_{{ editor }};verbose" --coverage-results-path=$PWD/test-results/CoverageResults --coverage-options="generateHtmlReport;generateAdditionalMetrics;assemblyFilters:+Unity.Netcode.Editor,+Unity.Netcode.Runtime" --extra-editor-arg=--burst-disable-compilation --timeout={{ test_timeout }} --rerun-strategy=Test --retry={{ num_test_retries }} --clean-library-on-rerun --artifacts-path=test-results
4343
artifacts:
4444
logs:
4545
paths:

.yamato/wrench/preview-a-p-v.yml

Lines changed: 0 additions & 163 deletions
Original file line numberDiff line numberDiff line change
@@ -839,166 +839,3 @@ preview_apv_-_6000_5_-_windows:
839839
Job Maintainers: '#rm-packageworks'
840840
Wrench: 1.3.0.0
841841

842-
# Functional tests for dependents found in the latest 6000.5 manifest (MacOS).
843-
preview_apv_-_6000_5_-_macos:
844-
name: Preview APV - 6000.5 - macos
845-
agent:
846-
image: package-ci/macos-13:default
847-
type: Unity::VM::osx
848-
flavor: b1.xlarge
849-
commands:
850-
- command: curl https://artifactory.prd.it.unity3d.com/artifactory/stevedore-unity-internal/wrench-localapv/1-3-0_3978eda62a03e3dbc469ab77590d20f8832032d8e0b586550597b7f590baefec.zip -o wrench-localapv.zip
851-
- command: 7z x -aoa wrench-localapv.zip
852-
- command: pip install semver requests --index-url https://artifactory-slo.bf.unity3d.com/artifactory/api/pypi/pypi/simple
853-
- command: python PythonScripts/print_machine_info.py
854-
- command: npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
855-
timeout: 20
856-
retries: 10
857-
- command: unity-downloader-cli -u trunk -c editor --path .Editor --fast
858-
timeout: 10
859-
retries: 3
860-
- command: python PythonScripts/preview_apv.py --wrench-config=.yamato/wrench/wrench_config.json --editor-version=6000.5 --testsuite=editor,playmode --artifacts-path=PreviewApvArtifacts~
861-
- command: echo 'Skipping Editor Manifest Validator as it is only supported on Windows'
862-
after:
863-
- command: bash .yamato/generated-scripts/infrastructure-instability-detection-mac.sh
864-
artifacts:
865-
Crash Dumps:
866-
paths:
867-
- CrashDumps/**
868-
logs:
869-
paths:
870-
- '*.log'
871-
- '*.xml'
872-
- upm-ci~/test-results/**/*
873-
- upm-ci~/temp/*/Logs/**
874-
- upm-ci~/temp/*/Library/*.log
875-
- upm-ci~/temp/*/*.log
876-
- upm-ci~/temp/Builds/*.log
877-
packages:
878-
paths:
879-
- upm-ci~/packages/**/*
880-
PreviewAPVResults:
881-
paths:
882-
- PreviewApvArtifacts~/**
883-
- APVTest/**/manifest.json
884-
pvp-results:
885-
paths:
886-
- upm-ci~/pvp/**/*
887-
browsable: onDemand
888-
dependencies:
889-
- path: .yamato/wrench/package-pack-jobs.yml#package_pack_-_netcode_gameobjects
890-
variables:
891-
UPMPVP_CONTEXT_WRENCH: 1.2.0.0
892-
metadata:
893-
Job Maintainers: '#rm-packageworks'
894-
Wrench: 1.2.0.0
895-
896-
# Functional tests for dependents found in the latest 6000.5 manifest (Ubuntu).
897-
preview_apv_-_6000_5_-_ubuntu:
898-
name: Preview APV - 6000.5 - ubuntu
899-
agent:
900-
image: package-ci/ubuntu-22.04:v4
901-
type: Unity::VM
902-
flavor: b1.large
903-
commands:
904-
- command: curl https://artifactory.prd.it.unity3d.com/artifactory/stevedore-unity-internal/wrench-localapv/1-3-0_3978eda62a03e3dbc469ab77590d20f8832032d8e0b586550597b7f590baefec.zip -o wrench-localapv.zip
905-
- command: 7z x -aoa wrench-localapv.zip
906-
- command: pip install semver requests --index-url https://artifactory-slo.bf.unity3d.com/artifactory/api/pypi/pypi/simple
907-
- command: python PythonScripts/print_machine_info.py
908-
- command: npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
909-
timeout: 20
910-
retries: 10
911-
- command: unity-downloader-cli -u trunk -c editor --path .Editor --fast
912-
timeout: 10
913-
retries: 3
914-
- command: python PythonScripts/preview_apv.py --wrench-config=.yamato/wrench/wrench_config.json --editor-version=6000.5 --testsuite=editor,playmode --artifacts-path=PreviewApvArtifacts~
915-
- command: echo 'Skipping Editor Manifest Validator as it is only supported on Windows'
916-
after:
917-
- command: bash .yamato/generated-scripts/infrastructure-instability-detection-linux.sh
918-
artifacts:
919-
Crash Dumps:
920-
paths:
921-
- CrashDumps/**
922-
logs:
923-
paths:
924-
- '*.log'
925-
- '*.xml'
926-
- upm-ci~/test-results/**/*
927-
- upm-ci~/temp/*/Logs/**
928-
- upm-ci~/temp/*/Library/*.log
929-
- upm-ci~/temp/*/*.log
930-
- upm-ci~/temp/Builds/*.log
931-
packages:
932-
paths:
933-
- upm-ci~/packages/**/*
934-
PreviewAPVResults:
935-
paths:
936-
- PreviewApvArtifacts~/**
937-
- APVTest/**/manifest.json
938-
pvp-results:
939-
paths:
940-
- upm-ci~/pvp/**/*
941-
browsable: onDemand
942-
dependencies:
943-
- path: .yamato/wrench/package-pack-jobs.yml#package_pack_-_netcode_gameobjects
944-
variables:
945-
UPMPVP_CONTEXT_WRENCH: 1.2.0.0
946-
metadata:
947-
Job Maintainers: '#rm-packageworks'
948-
Wrench: 1.2.0.0
949-
950-
# Functional tests for dependents found in the latest 6000.5 manifest (Windows).
951-
preview_apv_-_6000_5_-_windows:
952-
name: Preview APV - 6000.5 - windows
953-
agent:
954-
image: package-ci/win10:default
955-
type: Unity::VM
956-
flavor: b1.large
957-
commands:
958-
- command: gsudo reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1 /f
959-
- command: curl https://artifactory.prd.it.unity3d.com/artifactory/stevedore-unity-internal/wrench-localapv/1-3-0_3978eda62a03e3dbc469ab77590d20f8832032d8e0b586550597b7f590baefec.zip -o wrench-localapv.zip
960-
- command: 7z x -aoa wrench-localapv.zip
961-
- command: pip install semver requests --index-url https://artifactory-slo.bf.unity3d.com/artifactory/api/pypi/pypi/simple
962-
- command: python PythonScripts/print_machine_info.py
963-
- command: npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
964-
timeout: 20
965-
retries: 10
966-
- command: unity-downloader-cli -u trunk -c editor --path .Editor --fast
967-
timeout: 10
968-
retries: 3
969-
- command: python PythonScripts/preview_apv.py --wrench-config=.yamato/wrench/wrench_config.json --editor-version=6000.5 --testsuite=editor,playmode --artifacts-path=PreviewApvArtifacts~
970-
- command: python PythonScripts/editor_manifest_validator.py --version=6000.5 --wrench-config=.yamato/wrench/wrench_config.json
971-
after:
972-
- command: .yamato\generated-scripts\infrastructure-instability-detection-win.cmd
973-
artifacts:
974-
Crash Dumps:
975-
paths:
976-
- CrashDumps/**
977-
logs:
978-
paths:
979-
- '*.log'
980-
- '*.xml'
981-
- upm-ci~/test-results/**/*
982-
- upm-ci~/temp/*/Logs/**
983-
- upm-ci~/temp/*/Library/*.log
984-
- upm-ci~/temp/*/*.log
985-
- upm-ci~/temp/Builds/*.log
986-
packages:
987-
paths:
988-
- upm-ci~/packages/**/*
989-
PreviewAPVResults:
990-
paths:
991-
- PreviewApvArtifacts~/**
992-
- APVTest/**/manifest.json
993-
pvp-results:
994-
paths:
995-
- upm-ci~/pvp/**/*
996-
browsable: onDemand
997-
dependencies:
998-
- path: .yamato/wrench/package-pack-jobs.yml#package_pack_-_netcode_gameobjects
999-
variables:
1000-
UPMPVP_CONTEXT_WRENCH: 1.2.0.0
1001-
metadata:
1002-
Job Maintainers: '#rm-packageworks'
1003-
Wrench: 1.2.0.0
1004-

.yamato/wrench/validation-jobs.yml

Lines changed: 0 additions & 198 deletions
Original file line numberDiff line numberDiff line change
@@ -742,204 +742,6 @@ validate_-_netcode_gameobjects_-_6000_4_-_windows:
742742
- command: unity-downloader-cli -u 6000.4/staging -c editor --path .Editor --fast
743743
timeout: 10
744744
retries: 3
745-
- command: upm-pvp create-test-project testproject --packages "upm-ci~/packages/*.tgz" --filter "com.unity.netcode.gameobjects" --unity .Editor
746-
timeout: 10
747-
retries: 1
748-
- command: echo No internal packages to add.
749-
- command: upm-pvp test --unity .Editor --packages "upm-ci~/packages/*.tgz" --results upm-ci~/pvp
750-
timeout: 40
751-
retries: 0
752-
- command: upm-pvp require "pkgprom-promote -PVP-29-2 rme" --results upm-ci~/pvp --exemptions upm-ci~/pvp/failures.json
753-
timeout: 5
754-
retries: 0
755-
- command: upm-pvp require "rme PVP-160-1 supported" --results upm-ci~/pvp --exemptions upm-ci~/pvp/failures.json
756-
timeout: 10
757-
retries: 0
758-
- command: 'UnifiedTestRunner.exe --testproject=testproject --editor-location=.Editor --clean-library --reruncount=1 --clean-library-on-rerun --artifacts-path=artifacts --suite=Editor --suite=Playmode "--ff={ops.upmpvpevidence.enable=true}" '
759-
timeout: 40
760-
retries: 1
761-
after:
762-
- command: .yamato\generated-scripts\infrastructure-instability-detection-win.cmd
763-
artifacts:
764-
Crash Dumps:
765-
paths:
766-
- CrashDumps/**
767-
packages:
768-
paths:
769-
- upm-ci~/packages/**/*
770-
pvp-results:
771-
paths:
772-
- upm-ci~/pvp/**/*
773-
browsable: onDemand
774-
UTR:
775-
paths:
776-
- '*.log'
777-
- '*.xml'
778-
- artifacts/**/*
779-
- testproject/Logs/**
780-
- testproject/Library/*.log
781-
- testproject/*.log
782-
- testproject/Builds/*.log
783-
- build/test-results/**
784-
browsable: onDemand
785-
dependencies:
786-
- path: .yamato/wrench/package-pack-jobs.yml#package_pack_-_netcode_gameobjects
787-
variables:
788-
UPMPVP_ACK_UPMPVP_DOES_NO_API_VALIDATION: 1
789-
UPMPVP_CONTEXT_WRENCH: 1.2.0.0
790-
metadata:
791-
Job Maintainers: '#rm-packageworks'
792-
Wrench: 1.2.0.0
793-
labels:
794-
- Packages:netcode.gameobjects
795-
796-
# PVP Editor and Playmode tests for Validate - netcode.gameobjects - 6000.5 - macos (6000.5 - MacOS).
797-
validate_-_netcode_gameobjects_-_6000_5_-_macos:
798-
name: Validate - netcode.gameobjects - 6000.5 - macos
799-
agent:
800-
image: package-ci/macos-13:default
801-
type: Unity::VM::osx
802-
flavor: b1.xlarge
803-
commands:
804-
- command: curl https://artifactory.prd.it.unity3d.com/artifactory/stevedore-unity-internal/wrench-localapv/1-3-0_3978eda62a03e3dbc469ab77590d20f8832032d8e0b586550597b7f590baefec.zip -o wrench-localapv.zip
805-
- command: 7z x -aoa wrench-localapv.zip
806-
- command: pip install semver requests --index-url https://artifactory-slo.bf.unity3d.com/artifactory/api/pypi/pypi/simple
807-
- command: python PythonScripts/print_machine_info.py
808-
- command: unity-downloader-cli -u trunk -c editor --path .Editor --fast
809-
timeout: 10
810-
retries: 3
811-
- command: upm-pvp create-test-project testproject --packages "upm-ci~/packages/*.tgz" --filter "com.unity.netcode.gameobjects" --unity .Editor
812-
timeout: 10
813-
retries: 1
814-
- command: echo No internal packages to add.
815-
- command: upm-pvp test --unity .Editor --packages "upm-ci~/packages/*.tgz" --results upm-ci~/pvp
816-
timeout: 40
817-
retries: 0
818-
- command: upm-pvp require "pkgprom-promote -PVP-29-2 rme" --results upm-ci~/pvp --exemptions upm-ci~/pvp/failures.json
819-
timeout: 5
820-
retries: 0
821-
- command: upm-pvp require "rme PVP-160-1 supported" --results upm-ci~/pvp --exemptions upm-ci~/pvp/failures.json
822-
timeout: 10
823-
retries: 0
824-
- command: 'UnifiedTestRunner --testproject=testproject --editor-location=.Editor --clean-library --reruncount=1 --clean-library-on-rerun --artifacts-path=artifacts --suite=Editor --suite=Playmode "--ff={ops.upmpvpevidence.enable=true}" '
825-
timeout: 40
826-
retries: 1
827-
after:
828-
- command: bash .yamato/generated-scripts/infrastructure-instability-detection-mac.sh
829-
artifacts:
830-
Crash Dumps:
831-
paths:
832-
- CrashDumps/**
833-
packages:
834-
paths:
835-
- upm-ci~/packages/**/*
836-
pvp-results:
837-
paths:
838-
- upm-ci~/pvp/**/*
839-
browsable: onDemand
840-
UTR:
841-
paths:
842-
- '*.log'
843-
- '*.xml'
844-
- artifacts/**/*
845-
- testproject/Logs/**
846-
- testproject/Library/*.log
847-
- testproject/*.log
848-
- testproject/Builds/*.log
849-
- build/test-results/**
850-
browsable: onDemand
851-
dependencies:
852-
- path: .yamato/wrench/package-pack-jobs.yml#package_pack_-_netcode_gameobjects
853-
variables:
854-
UPMPVP_ACK_UPMPVP_DOES_NO_API_VALIDATION: 1
855-
UPMPVP_CONTEXT_WRENCH: 1.2.0.0
856-
metadata:
857-
Job Maintainers: '#rm-packageworks'
858-
Wrench: 1.2.0.0
859-
labels:
860-
- Packages:netcode.gameobjects
861-
862-
# PVP Editor and Playmode tests for Validate - netcode.gameobjects - 6000.5 - ubuntu (6000.5 - Ubuntu).
863-
validate_-_netcode_gameobjects_-_6000_5_-_ubuntu:
864-
name: Validate - netcode.gameobjects - 6000.5 - ubuntu
865-
agent:
866-
image: package-ci/ubuntu-22.04:v4
867-
type: Unity::VM
868-
flavor: b1.large
869-
commands:
870-
- command: curl https://artifactory.prd.it.unity3d.com/artifactory/stevedore-unity-internal/wrench-localapv/1-3-0_3978eda62a03e3dbc469ab77590d20f8832032d8e0b586550597b7f590baefec.zip -o wrench-localapv.zip
871-
- command: 7z x -aoa wrench-localapv.zip
872-
- command: pip install semver requests --index-url https://artifactory-slo.bf.unity3d.com/artifactory/api/pypi/pypi/simple
873-
- command: python PythonScripts/print_machine_info.py
874-
- command: unity-downloader-cli -u trunk -c editor --path .Editor --fast
875-
timeout: 10
876-
retries: 3
877-
- command: upm-pvp create-test-project testproject --packages "upm-ci~/packages/*.tgz" --filter "com.unity.netcode.gameobjects" --unity .Editor
878-
timeout: 10
879-
retries: 1
880-
- command: echo No internal packages to add.
881-
- command: upm-pvp test --unity .Editor --packages "upm-ci~/packages/*.tgz" --results upm-ci~/pvp
882-
timeout: 40
883-
retries: 0
884-
- command: upm-pvp require "pkgprom-promote -PVP-29-2 rme" --results upm-ci~/pvp --exemptions upm-ci~/pvp/failures.json
885-
timeout: 5
886-
retries: 0
887-
- command: upm-pvp require "rme PVP-160-1 supported" --results upm-ci~/pvp --exemptions upm-ci~/pvp/failures.json
888-
timeout: 10
889-
retries: 0
890-
- command: 'UnifiedTestRunner --testproject=testproject --editor-location=.Editor --clean-library --reruncount=1 --clean-library-on-rerun --artifacts-path=artifacts --suite=Editor --suite=Playmode "--ff={ops.upmpvpevidence.enable=true}" '
891-
timeout: 40
892-
retries: 1
893-
after:
894-
- command: bash .yamato/generated-scripts/infrastructure-instability-detection-linux.sh
895-
artifacts:
896-
Crash Dumps:
897-
paths:
898-
- CrashDumps/**
899-
packages:
900-
paths:
901-
- upm-ci~/packages/**/*
902-
pvp-results:
903-
paths:
904-
- upm-ci~/pvp/**/*
905-
browsable: onDemand
906-
UTR:
907-
paths:
908-
- '*.log'
909-
- '*.xml'
910-
- artifacts/**/*
911-
- testproject/Logs/**
912-
- testproject/Library/*.log
913-
- testproject/*.log
914-
- testproject/Builds/*.log
915-
- build/test-results/**
916-
browsable: onDemand
917-
dependencies:
918-
- path: .yamato/wrench/package-pack-jobs.yml#package_pack_-_netcode_gameobjects
919-
variables:
920-
UPMPVP_ACK_UPMPVP_DOES_NO_API_VALIDATION: 1
921-
UPMPVP_CONTEXT_WRENCH: 1.2.0.0
922-
metadata:
923-
Job Maintainers: '#rm-packageworks'
924-
Wrench: 1.2.0.0
925-
labels:
926-
- Packages:netcode.gameobjects
927-
928-
# PVP Editor and Playmode tests for Validate - netcode.gameobjects - 6000.5 - windows (6000.5 - Windows).
929-
validate_-_netcode_gameobjects_-_6000_5_-_windows:
930-
name: Validate - netcode.gameobjects - 6000.5 - windows
931-
agent:
932-
image: package-ci/win10:default
933-
type: Unity::VM
934-
flavor: b1.large
935-
commands:
936-
- command: curl https://artifactory.prd.it.unity3d.com/artifactory/stevedore-unity-internal/wrench-localapv/1-3-0_3978eda62a03e3dbc469ab77590d20f8832032d8e0b586550597b7f590baefec.zip -o wrench-localapv.zip
937-
- command: 7z x -aoa wrench-localapv.zip
938-
- command: pip install semver requests --index-url https://artifactory-slo.bf.unity3d.com/artifactory/api/pypi/pypi/simple
939-
- command: python PythonScripts/print_machine_info.py
940-
- command: unity-downloader-cli -u trunk -c editor --path .Editor --fast
941-
timeout: 10
942-
retries: 3
943745
- command: upm-pvp create-test-project testproject --packages "upm-ci~/packages/*.tgz" --filter "com.unity.netcode.gameobjects com.unity.netcode.gameobjects.tests" --unity .Editor
944746
timeout: 10
945747
retries: 1

com.unity.netcode.gameobjects/Tests/Runtime/NetworkVariable/NetworkVariableTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,6 @@ public void TestINetworkSerializableClassCallsNetworkSerialize([Values] HostOrSe
582582
// Wait for the client-side to notify it is finished initializing and spawning.
583583
Assert.True(WaitForConditionOrTimeOutWithTimeTravel(VerifyCallback));
584584
}
585-
#endif
586585

587586
[Test]
588587
public void TestINetworkSerializableStructCallsNetworkSerialize([Values] HostOrServer useHost)
@@ -4881,3 +4880,4 @@ protected override IEnumerator OnTearDown()
48814880
}
48824881
}
48834882
}
4883+
#endif

0 commit comments

Comments
 (0)