diff --git a/.yamato/project.metafile b/.yamato/project.metafile
index f4802d6ff0..6db694d80c 100644
--- a/.yamato/project.metafile
+++ b/.yamato/project.metafile
@@ -24,7 +24,7 @@
small_agent_platform:
- name: ubuntu
type: Unity::VM
- image: package-ci/ubuntu-22.04:v4.85.0
+ image: package-ci/ubuntu-22.04:v4.86.0
flavor: b1.small
@@ -39,13 +39,13 @@ test_platforms:
default:
- name: ubuntu
type: Unity::VM
- image: package-ci/ubuntu-22.04:v4.85.0
+ image: package-ci/ubuntu-22.04:v4.86.0
flavor: b1.large
standalone: StandaloneLinux64
desktop:
- name: ubuntu
type: Unity::VM
- image: package-ci/ubuntu-22.04:v4.85.0
+ image: package-ci/ubuntu-22.04:v4.86.0
flavor: b1.large
smaller_flavor: b1.large
larger_flavor: b1.xlarge
@@ -178,8 +178,8 @@ validation_editors:
all:
- 6000.0
- 6000.3
- - 6000.4
- 6000.5
+ - 6000.6
- trunk
- f1298548e194f35ff7dfa6fee699d4464ab3919c
minimal:
diff --git a/.yamato/wrench/api-validation-jobs.yml b/.yamato/wrench/api-validation-jobs.yml
index 6976c10973..1b9106d777 100644
--- a/.yamato/wrench/api-validation-jobs.yml
+++ b/.yamato/wrench/api-validation-jobs.yml
@@ -60,8 +60,8 @@ api_validation_-_netcode_gameobjects_-_6000_0_-_win10:
UNITY_LICENSING_SERVER_DELETE_NUL: 0
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
diff --git a/.yamato/wrench/package-pack-jobs.yml b/.yamato/wrench/package-pack-jobs.yml
index 06c750a127..fec8ec8847 100644
--- a/.yamato/wrench/package-pack-jobs.yml
+++ b/.yamato/wrench/package-pack-jobs.yml
@@ -29,5 +29,5 @@ package_pack_-_netcode_gameobjects:
UPMCI_ACK_LARGE_PACKAGE: 1
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
diff --git a/.yamato/wrench/preview-a-p-v.yml b/.yamato/wrench/preview-a-p-v.yml
index 445f507a73..1029bfeb24 100644
--- a/.yamato/wrench/preview-a-p-v.yml
+++ b/.yamato/wrench/preview-a-p-v.yml
@@ -22,12 +22,15 @@ all_preview_apv_jobs:
- path: .yamato/wrench/preview-a-p-v.yml#preview_apv_-_6000_5_-_macos13
- path: .yamato/wrench/preview-a-p-v.yml#preview_apv_-_6000_5_-_ubuntu2204
- path: .yamato/wrench/preview-a-p-v.yml#preview_apv_-_6000_5_-_win10
- - path: .yamato/wrench/preview-a-p-v.yml#preview_apv_-_6000_6_-_macos13
+ - path: .yamato/wrench/preview-a-p-v.yml#preview_apv_-_6000_6_-_macos13arm
- path: .yamato/wrench/preview-a-p-v.yml#preview_apv_-_6000_6_-_ubuntu2204
- path: .yamato/wrench/preview-a-p-v.yml#preview_apv_-_6000_6_-_win10
+ - path: .yamato/wrench/preview-a-p-v.yml#preview_apv_-_6000_7_-_macos13arm
+ - path: .yamato/wrench/preview-a-p-v.yml#preview_apv_-_6000_7_-_ubuntu2204
+ - path: .yamato/wrench/preview-a-p-v.yml#preview_apv_-_6000_7_-_win10
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
# Functional tests for dependents found in the latest 6000.0 manifest (MacOS).
preview_apv_-_6000_0_-_macos13:
@@ -82,10 +85,10 @@ preview_apv_-_6000_0_-_macos13:
UNITY_LICENSING_SERVER_DELETE_NUL: 0
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
# Functional tests for dependents found in the latest 6000.0 manifest (Ubuntu).
preview_apv_-_6000_0_-_ubuntu2204:
@@ -140,10 +143,10 @@ preview_apv_-_6000_0_-_ubuntu2204:
UNITY_LICENSING_SERVER_DELETE_NUL: 0
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
# Functional tests for dependents found in the latest 6000.0 manifest (Windows).
preview_apv_-_6000_0_-_win10:
@@ -199,10 +202,10 @@ preview_apv_-_6000_0_-_win10:
UNITY_LICENSING_SERVER_DELETE_NUL: 0
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
# Functional tests for dependents found in the latest 6000.3 manifest (MacOS).
preview_apv_-_6000_3_-_macos13:
@@ -257,10 +260,10 @@ preview_apv_-_6000_3_-_macos13:
UNITY_LICENSING_SERVER_DELETE_NUL: 0
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
# Functional tests for dependents found in the latest 6000.3 manifest (Ubuntu).
preview_apv_-_6000_3_-_ubuntu2204:
@@ -315,10 +318,10 @@ preview_apv_-_6000_3_-_ubuntu2204:
UNITY_LICENSING_SERVER_DELETE_NUL: 0
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
# Functional tests for dependents found in the latest 6000.3 manifest (Windows).
preview_apv_-_6000_3_-_win10:
@@ -374,10 +377,10 @@ preview_apv_-_6000_3_-_win10:
UNITY_LICENSING_SERVER_DELETE_NUL: 0
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
# Functional tests for dependents found in the latest 6000.4 manifest (MacOS).
preview_apv_-_6000_4_-_macos13:
@@ -432,10 +435,10 @@ preview_apv_-_6000_4_-_macos13:
UNITY_LICENSING_SERVER_DELETE_NUL: 0
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
# Functional tests for dependents found in the latest 6000.4 manifest (Ubuntu).
preview_apv_-_6000_4_-_ubuntu2204:
@@ -490,10 +493,10 @@ preview_apv_-_6000_4_-_ubuntu2204:
UNITY_LICENSING_SERVER_DELETE_NUL: 0
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
# Functional tests for dependents found in the latest 6000.4 manifest (Windows).
preview_apv_-_6000_4_-_win10:
@@ -549,10 +552,10 @@ preview_apv_-_6000_4_-_win10:
UNITY_LICENSING_SERVER_DELETE_NUL: 0
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
# Functional tests for dependents found in the latest 6000.5 manifest (MacOS).
preview_apv_-_6000_5_-_macos13:
@@ -607,10 +610,10 @@ preview_apv_-_6000_5_-_macos13:
UNITY_LICENSING_SERVER_DELETE_NUL: 0
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
# Functional tests for dependents found in the latest 6000.5 manifest (Ubuntu).
preview_apv_-_6000_5_-_ubuntu2204:
@@ -665,10 +668,10 @@ preview_apv_-_6000_5_-_ubuntu2204:
UNITY_LICENSING_SERVER_DELETE_NUL: 0
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
# Functional tests for dependents found in the latest 6000.5 manifest (Windows).
preview_apv_-_6000_5_-_win10:
@@ -724,18 +727,19 @@ preview_apv_-_6000_5_-_win10:
UNITY_LICENSING_SERVER_DELETE_NUL: 0
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
# Functional tests for dependents found in the latest 6000.6 manifest (MacOS).
-preview_apv_-_6000_6_-_macos13:
- name: Preview APV - 6000.6 - macos13
+preview_apv_-_6000_6_-_macos13arm:
+ name: Preview APV - 6000.6 - macos13arm
agent:
- image: package-ci/macos-13:v4
+ image: package-ci/macos-13-arm64:v4
type: Unity::VM::osx
- flavor: b1.xlarge
+ flavor: m1.mac
+ model: M1
commands:
- command: curl https://artifactory.prd.it.unity3d.com/artifactory/stevedore-unity-internal/wrench-localapv/1-3-3_51b4e6affb4c10b90f92db9551b9dc80c5520794983600cff4fa925111db116d.zip -o wrench-localapv.zip
- command: 7z x -aoa wrench-localapv.zip
@@ -744,7 +748,7 @@ preview_apv_-_6000_6_-_macos13:
- command: npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
timeout: 20
retries: 10
- - command: unity-downloader-cli -u trunk -c editor --path .Editor --fast
+ - command: unity-downloader-cli -u 6000.6/staging -c editor --path .Editor --fast --arch arm64
timeout: 10
retries: 3
- command: python PythonScripts/preview_apv.py --wrench-config=.yamato/wrench/wrench_config.json --editor-version=6000.6 --testsuite=editor,playmode --artifacts-path=PreviewApvArtifacts~
@@ -782,10 +786,10 @@ preview_apv_-_6000_6_-_macos13:
UNITY_LICENSING_SERVER_DELETE_NUL: 0
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
# Functional tests for dependents found in the latest 6000.6 manifest (Ubuntu).
preview_apv_-_6000_6_-_ubuntu2204:
@@ -802,7 +806,7 @@ preview_apv_-_6000_6_-_ubuntu2204:
- command: npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
timeout: 20
retries: 10
- - command: unity-downloader-cli -u trunk -c editor --path .Editor --fast
+ - command: unity-downloader-cli -u 6000.6/staging -c editor --path .Editor --fast
timeout: 10
retries: 3
- command: python PythonScripts/preview_apv.py --wrench-config=.yamato/wrench/wrench_config.json --editor-version=6000.6 --testsuite=editor,playmode --artifacts-path=PreviewApvArtifacts~
@@ -840,10 +844,10 @@ preview_apv_-_6000_6_-_ubuntu2204:
UNITY_LICENSING_SERVER_DELETE_NUL: 0
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
# Functional tests for dependents found in the latest 6000.6 manifest (Windows).
preview_apv_-_6000_6_-_win10:
@@ -861,7 +865,7 @@ preview_apv_-_6000_6_-_win10:
- command: npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
timeout: 20
retries: 10
- - command: unity-downloader-cli -u trunk -c editor --path .Editor --fast
+ - command: unity-downloader-cli -u 6000.6/staging -c editor --path .Editor --fast
timeout: 10
retries: 3
- command: python PythonScripts/preview_apv.py --wrench-config=.yamato/wrench/wrench_config.json --editor-version=6000.6 --testsuite=editor,playmode --artifacts-path=PreviewApvArtifacts~
@@ -899,8 +903,184 @@ preview_apv_-_6000_6_-_win10:
UNITY_LICENSING_SERVER_DELETE_NUL: 0
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
+ metadata:
+ Job Maintainers: '#rm-packageworks'
+ Wrench: 3.2.0.0
+
+# Functional tests for dependents found in the latest 6000.7 manifest (MacOS).
+preview_apv_-_6000_7_-_macos13arm:
+ name: Preview APV - 6000.7 - macos13arm
+ agent:
+ image: package-ci/macos-13-arm64:v4
+ type: Unity::VM::osx
+ flavor: m1.mac
+ model: M1
+ commands:
+ - command: curl https://artifactory.prd.it.unity3d.com/artifactory/stevedore-unity-internal/wrench-localapv/1-3-3_51b4e6affb4c10b90f92db9551b9dc80c5520794983600cff4fa925111db116d.zip -o wrench-localapv.zip
+ - command: 7z x -aoa wrench-localapv.zip
+ - command: pip install semver requests --index-url https://artifactory-slo.bf.unity3d.com/artifactory/api/pypi/pypi/simple
+ - command: python PythonScripts/print_machine_info.py
+ - command: npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
+ timeout: 20
+ retries: 10
+ - command: unity-downloader-cli -u trunk -c editor --path .Editor --fast --arch arm64
+ timeout: 10
+ retries: 3
+ - command: python PythonScripts/preview_apv.py --wrench-config=.yamato/wrench/wrench_config.json --editor-version=6000.7 --testsuite=editor,playmode --artifacts-path=PreviewApvArtifacts~
+ - command: echo 'Skipping Editor Manifest Validator as it is only supported on Windows'
+ after:
+ - command: bash .yamato/generated-scripts/infrastructure-instability-detection-mac.sh
+ artifacts:
+ Crash Dumps:
+ paths:
+ - CrashDumps/**
+ logs:
+ paths:
+ - '*.log'
+ - '*.xml'
+ - upm-ci~/test-results/**/*
+ - upm-ci~/temp/*/Logs/**
+ - upm-ci~/temp/*/Library/*.log
+ - upm-ci~/temp/*/*.log
+ - upm-ci~/temp/Builds/*.log
+ packages:
+ paths:
+ - upm-ci~/packages/**/*
+ PreviewAPVResults:
+ paths:
+ - PreviewApvArtifacts~/**
+ - APVTest/**/manifest.json
+ pvp-results:
+ paths:
+ - upm-ci~/pvp/**/*
+ browsable: onDemand
+ dependencies:
+ - path: .yamato/wrench/package-pack-jobs.yml#package_pack_-_netcode_gameobjects
+ variables:
+ UNITY_LICENSING_SERVER_BASE_URL: http://unity-ci-licenses.hq.unity3d.com:8080/
+ UNITY_LICENSING_SERVER_DELETE_NUL: 0
+ UNITY_LICENSING_SERVER_DELETE_ULF: 0
+ UNITY_LICENSING_SERVER_TOOLSET: pro
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
+ metadata:
+ Job Maintainers: '#rm-packageworks'
+ Wrench: 3.2.0.0
+
+# Functional tests for dependents found in the latest 6000.7 manifest (Ubuntu).
+preview_apv_-_6000_7_-_ubuntu2204:
+ name: Preview APV - 6000.7 - ubuntu2204
+ agent:
+ image: package-ci/ubuntu-22.04:v4
+ type: Unity::VM
+ flavor: b1.large
+ commands:
+ - command: curl https://artifactory.prd.it.unity3d.com/artifactory/stevedore-unity-internal/wrench-localapv/1-3-3_51b4e6affb4c10b90f92db9551b9dc80c5520794983600cff4fa925111db116d.zip -o wrench-localapv.zip
+ - command: 7z x -aoa wrench-localapv.zip
+ - command: pip install semver requests --index-url https://artifactory-slo.bf.unity3d.com/artifactory/api/pypi/pypi/simple
+ - command: python PythonScripts/print_machine_info.py
+ - command: npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
+ timeout: 20
+ retries: 10
+ - command: unity-downloader-cli -u trunk -c editor --path .Editor --fast
+ timeout: 10
+ retries: 3
+ - command: python PythonScripts/preview_apv.py --wrench-config=.yamato/wrench/wrench_config.json --editor-version=6000.7 --testsuite=editor,playmode --artifacts-path=PreviewApvArtifacts~
+ - command: echo 'Skipping Editor Manifest Validator as it is only supported on Windows'
+ after:
+ - command: bash .yamato/generated-scripts/infrastructure-instability-detection-linux.sh
+ artifacts:
+ Crash Dumps:
+ paths:
+ - CrashDumps/**
+ logs:
+ paths:
+ - '*.log'
+ - '*.xml'
+ - upm-ci~/test-results/**/*
+ - upm-ci~/temp/*/Logs/**
+ - upm-ci~/temp/*/Library/*.log
+ - upm-ci~/temp/*/*.log
+ - upm-ci~/temp/Builds/*.log
+ packages:
+ paths:
+ - upm-ci~/packages/**/*
+ PreviewAPVResults:
+ paths:
+ - PreviewApvArtifacts~/**
+ - APVTest/**/manifest.json
+ pvp-results:
+ paths:
+ - upm-ci~/pvp/**/*
+ browsable: onDemand
+ dependencies:
+ - path: .yamato/wrench/package-pack-jobs.yml#package_pack_-_netcode_gameobjects
+ variables:
+ UNITY_LICENSING_SERVER_BASE_URL: http://unity-ci-licenses.hq.unity3d.com:8080/
+ UNITY_LICENSING_SERVER_DELETE_NUL: 0
+ UNITY_LICENSING_SERVER_DELETE_ULF: 0
+ UNITY_LICENSING_SERVER_TOOLSET: pro
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
+ metadata:
+ Job Maintainers: '#rm-packageworks'
+ Wrench: 3.2.0.0
+
+# Functional tests for dependents found in the latest 6000.7 manifest (Windows).
+preview_apv_-_6000_7_-_win10:
+ name: Preview APV - 6000.7 - win10
+ agent:
+ image: package-ci/win10:v4
+ type: Unity::VM
+ flavor: b1.large
+ commands:
+ - command: gsudo reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1 /f
+ - command: curl https://artifactory.prd.it.unity3d.com/artifactory/stevedore-unity-internal/wrench-localapv/1-3-3_51b4e6affb4c10b90f92db9551b9dc80c5520794983600cff4fa925111db116d.zip -o wrench-localapv.zip
+ - command: 7z x -aoa wrench-localapv.zip
+ - command: pip install semver requests --index-url https://artifactory-slo.bf.unity3d.com/artifactory/api/pypi/pypi/simple
+ - command: python PythonScripts/print_machine_info.py
+ - command: npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
+ timeout: 20
+ retries: 10
+ - command: unity-downloader-cli -u trunk -c editor --path .Editor --fast
+ timeout: 10
+ retries: 3
+ - command: python PythonScripts/preview_apv.py --wrench-config=.yamato/wrench/wrench_config.json --editor-version=6000.7 --testsuite=editor,playmode --artifacts-path=PreviewApvArtifacts~
+ - command: python PythonScripts/editor_manifest_validator.py --version=6000.7 --wrench-config=.yamato/wrench/wrench_config.json
+ after:
+ - command: .yamato\generated-scripts\infrastructure-instability-detection-win.cmd
+ artifacts:
+ Crash Dumps:
+ paths:
+ - CrashDumps/**
+ logs:
+ paths:
+ - '*.log'
+ - '*.xml'
+ - upm-ci~/test-results/**/*
+ - upm-ci~/temp/*/Logs/**
+ - upm-ci~/temp/*/Library/*.log
+ - upm-ci~/temp/*/*.log
+ - upm-ci~/temp/Builds/*.log
+ packages:
+ paths:
+ - upm-ci~/packages/**/*
+ PreviewAPVResults:
+ paths:
+ - PreviewApvArtifacts~/**
+ - APVTest/**/manifest.json
+ pvp-results:
+ paths:
+ - upm-ci~/pvp/**/*
+ browsable: onDemand
+ dependencies:
+ - path: .yamato/wrench/package-pack-jobs.yml#package_pack_-_netcode_gameobjects
+ variables:
+ UNITY_LICENSING_SERVER_BASE_URL: http://unity-ci-licenses.hq.unity3d.com:8080/
+ UNITY_LICENSING_SERVER_DELETE_NUL: 0
+ UNITY_LICENSING_SERVER_DELETE_ULF: 0
+ UNITY_LICENSING_SERVER_TOOLSET: pro
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
diff --git a/.yamato/wrench/promotion-jobs.yml b/.yamato/wrench/promotion-jobs.yml
index 7fd22a018d..929cce45a2 100644
--- a/.yamato/wrench/promotion-jobs.yml
+++ b/.yamato/wrench/promotion-jobs.yml
@@ -151,15 +151,15 @@ publish_dry_run_netcode_gameobjects:
UTR:
location: results/UTR/validate-netcode.gameobjects-6000.5-win10
unzip: true
- - path: .yamato/wrench/validation-jobs.yml#validate_-_netcode_gameobjects_-_6000_6_-_macos13
+ - path: .yamato/wrench/validation-jobs.yml#validate_-_netcode_gameobjects_-_6000_6_-_macos13arm
specific_options:
packages:
ignore_artifact: true
pvp-results:
- location: results/pvp/validate-netcode.gameobjects-6000.6-macos13
+ location: results/pvp/validate-netcode.gameobjects-6000.6-macos13arm
unzip: true
UTR:
- location: results/UTR/validate-netcode.gameobjects-6000.6-macos13
+ location: results/UTR/validate-netcode.gameobjects-6000.6-macos13arm
unzip: true
- path: .yamato/wrench/validation-jobs.yml#validate_-_netcode_gameobjects_-_6000_6_-_ubuntu2204
specific_options:
@@ -181,12 +181,42 @@ publish_dry_run_netcode_gameobjects:
UTR:
location: results/UTR/validate-netcode.gameobjects-6000.6-win10
unzip: true
+ - path: .yamato/wrench/validation-jobs.yml#validate_-_netcode_gameobjects_-_6000_7_-_macos13arm
+ specific_options:
+ packages:
+ ignore_artifact: true
+ pvp-results:
+ location: results/pvp/validate-netcode.gameobjects-6000.7-macos13arm
+ unzip: true
+ UTR:
+ location: results/UTR/validate-netcode.gameobjects-6000.7-macos13arm
+ unzip: true
+ - path: .yamato/wrench/validation-jobs.yml#validate_-_netcode_gameobjects_-_6000_7_-_ubuntu2204
+ specific_options:
+ packages:
+ ignore_artifact: true
+ pvp-results:
+ location: results/pvp/validate-netcode.gameobjects-6000.7-ubuntu2204
+ unzip: true
+ UTR:
+ location: results/UTR/validate-netcode.gameobjects-6000.7-ubuntu2204
+ unzip: true
+ - path: .yamato/wrench/validation-jobs.yml#validate_-_netcode_gameobjects_-_6000_7_-_win10
+ specific_options:
+ packages:
+ ignore_artifact: true
+ pvp-results:
+ location: results/pvp/validate-netcode.gameobjects-6000.7-win10
+ unzip: true
+ UTR:
+ location: results/UTR/validate-netcode.gameobjects-6000.7-win10
+ unzip: true
variables:
UPMPVP_ACK_UPMPVP_DOES_NO_API_VALIDATION: 1
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
# Publish for netcode.gameobjects to https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-npm
publish_netcode_gameobjects:
@@ -333,15 +363,15 @@ publish_netcode_gameobjects:
UTR:
location: results/UTR/validate-netcode.gameobjects-6000.5-win10
unzip: true
- - path: .yamato/wrench/validation-jobs.yml#validate_-_netcode_gameobjects_-_6000_6_-_macos13
+ - path: .yamato/wrench/validation-jobs.yml#validate_-_netcode_gameobjects_-_6000_6_-_macos13arm
specific_options:
packages:
ignore_artifact: true
pvp-results:
- location: results/pvp/validate-netcode.gameobjects-6000.6-macos13
+ location: results/pvp/validate-netcode.gameobjects-6000.6-macos13arm
unzip: true
UTR:
- location: results/UTR/validate-netcode.gameobjects-6000.6-macos13
+ location: results/UTR/validate-netcode.gameobjects-6000.6-macos13arm
unzip: true
- path: .yamato/wrench/validation-jobs.yml#validate_-_netcode_gameobjects_-_6000_6_-_ubuntu2204
specific_options:
@@ -363,11 +393,41 @@ publish_netcode_gameobjects:
UTR:
location: results/UTR/validate-netcode.gameobjects-6000.6-win10
unzip: true
+ - path: .yamato/wrench/validation-jobs.yml#validate_-_netcode_gameobjects_-_6000_7_-_macos13arm
+ specific_options:
+ packages:
+ ignore_artifact: true
+ pvp-results:
+ location: results/pvp/validate-netcode.gameobjects-6000.7-macos13arm
+ unzip: true
+ UTR:
+ location: results/UTR/validate-netcode.gameobjects-6000.7-macos13arm
+ unzip: true
+ - path: .yamato/wrench/validation-jobs.yml#validate_-_netcode_gameobjects_-_6000_7_-_ubuntu2204
+ specific_options:
+ packages:
+ ignore_artifact: true
+ pvp-results:
+ location: results/pvp/validate-netcode.gameobjects-6000.7-ubuntu2204
+ unzip: true
+ UTR:
+ location: results/UTR/validate-netcode.gameobjects-6000.7-ubuntu2204
+ unzip: true
+ - path: .yamato/wrench/validation-jobs.yml#validate_-_netcode_gameobjects_-_6000_7_-_win10
+ specific_options:
+ packages:
+ ignore_artifact: true
+ pvp-results:
+ location: results/pvp/validate-netcode.gameobjects-6000.7-win10
+ unzip: true
+ UTR:
+ location: results/UTR/validate-netcode.gameobjects-6000.7-win10
+ unzip: true
variables:
UPMPVP_ACK_UPMPVP_DOES_NO_API_VALIDATION: 1
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
allow_on: branch match "^release/.*"
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
diff --git a/.yamato/wrench/recipe-regeneration.yml b/.yamato/wrench/recipe-regeneration.yml
index b9eba06e54..34d5f02642 100644
--- a/.yamato/wrench/recipe-regeneration.yml
+++ b/.yamato/wrench/recipe-regeneration.yml
@@ -31,5 +31,5 @@ test_-_wrench_jobs_up_to_date:
cancel_old_ci: true
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
diff --git a/.yamato/wrench/validation-jobs.yml b/.yamato/wrench/validation-jobs.yml
index 84a92fcd75..9e05a163af 100644
--- a/.yamato/wrench/validation-jobs.yml
+++ b/.yamato/wrench/validation-jobs.yml
@@ -69,10 +69,10 @@ validate_-_netcode_gameobjects_-_6000_0_-_macos13:
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
UPMPVP_ACK_UPMPVP_DOES_NO_API_VALIDATION: 1
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
labels:
- Packages:netcode.gameobjects
@@ -139,10 +139,10 @@ validate_-_netcode_gameobjects_-_6000_0_-_ubuntu2204:
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
UPMPVP_ACK_UPMPVP_DOES_NO_API_VALIDATION: 1
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
labels:
- Packages:netcode.gameobjects
@@ -209,10 +209,10 @@ validate_-_netcode_gameobjects_-_6000_0_-_win10:
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
UPMPVP_ACK_UPMPVP_DOES_NO_API_VALIDATION: 1
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
labels:
- Packages:netcode.gameobjects
@@ -279,10 +279,10 @@ validate_-_netcode_gameobjects_-_6000_3_-_macos13:
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
UPMPVP_ACK_UPMPVP_DOES_NO_API_VALIDATION: 1
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
labels:
- Packages:netcode.gameobjects
@@ -349,10 +349,10 @@ validate_-_netcode_gameobjects_-_6000_3_-_ubuntu2204:
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
UPMPVP_ACK_UPMPVP_DOES_NO_API_VALIDATION: 1
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
labels:
- Packages:netcode.gameobjects
@@ -419,10 +419,10 @@ validate_-_netcode_gameobjects_-_6000_3_-_win10:
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
UPMPVP_ACK_UPMPVP_DOES_NO_API_VALIDATION: 1
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
labels:
- Packages:netcode.gameobjects
@@ -489,10 +489,10 @@ validate_-_netcode_gameobjects_-_6000_4_-_macos13:
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
UPMPVP_ACK_UPMPVP_DOES_NO_API_VALIDATION: 1
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
labels:
- Packages:netcode.gameobjects
@@ -559,10 +559,10 @@ validate_-_netcode_gameobjects_-_6000_4_-_ubuntu2204:
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
UPMPVP_ACK_UPMPVP_DOES_NO_API_VALIDATION: 1
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
labels:
- Packages:netcode.gameobjects
@@ -629,10 +629,10 @@ validate_-_netcode_gameobjects_-_6000_4_-_win10:
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
UPMPVP_ACK_UPMPVP_DOES_NO_API_VALIDATION: 1
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
labels:
- Packages:netcode.gameobjects
@@ -699,10 +699,10 @@ validate_-_netcode_gameobjects_-_6000_5_-_macos13:
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
UPMPVP_ACK_UPMPVP_DOES_NO_API_VALIDATION: 1
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
labels:
- Packages:netcode.gameobjects
@@ -769,10 +769,10 @@ validate_-_netcode_gameobjects_-_6000_5_-_ubuntu2204:
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
UPMPVP_ACK_UPMPVP_DOES_NO_API_VALIDATION: 1
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
labels:
- Packages:netcode.gameobjects
@@ -839,26 +839,27 @@ validate_-_netcode_gameobjects_-_6000_5_-_win10:
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
UPMPVP_ACK_UPMPVP_DOES_NO_API_VALIDATION: 1
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
labels:
- Packages:netcode.gameobjects
-# PVP Editor and Playmode tests for Validate - netcode.gameobjects - 6000.6 - macos13 (6000.6 - MacOS).
-validate_-_netcode_gameobjects_-_6000_6_-_macos13:
- name: Validate - netcode.gameobjects - 6000.6 - macos13
+# PVP Editor and Playmode tests for Validate - netcode.gameobjects - 6000.6 - macos13arm (6000.6 - MacOS).
+validate_-_netcode_gameobjects_-_6000_6_-_macos13arm:
+ name: Validate - netcode.gameobjects - 6000.6 - macos13arm
agent:
- image: package-ci/macos-13:v4
+ image: package-ci/macos-13-arm64:v4
type: Unity::VM::osx
- flavor: b1.xlarge
+ flavor: m1.mac
+ model: M1
commands:
- command: curl https://artifactory.prd.it.unity3d.com/artifactory/stevedore-unity-internal/wrench-localapv/1-3-3_51b4e6affb4c10b90f92db9551b9dc80c5520794983600cff4fa925111db116d.zip -o wrench-localapv.zip
- command: 7z x -aoa wrench-localapv.zip
- command: pip install semver requests --index-url https://artifactory-slo.bf.unity3d.com/artifactory/api/pypi/pypi/simple
- command: python PythonScripts/print_machine_info.py
- - command: unity-downloader-cli -u trunk -c editor --path .Editor --fast
+ - command: unity-downloader-cli -u 6000.6/staging -c editor --path .Editor --fast --arch arm64
timeout: 20
retries: 3
- command: upm-pvp create-test-project testproject --packages "upm-ci~/packages/*.tgz" --filter "com.unity.netcode.gameobjects com.unity.netcode.gameobjects.tests" --unity .Editor
@@ -909,10 +910,10 @@ validate_-_netcode_gameobjects_-_6000_6_-_macos13:
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
UPMPVP_ACK_UPMPVP_DOES_NO_API_VALIDATION: 1
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
labels:
- Packages:netcode.gameobjects
@@ -928,7 +929,7 @@ validate_-_netcode_gameobjects_-_6000_6_-_ubuntu2204:
- command: 7z x -aoa wrench-localapv.zip
- command: pip install semver requests --index-url https://artifactory-slo.bf.unity3d.com/artifactory/api/pypi/pypi/simple
- command: python PythonScripts/print_machine_info.py
- - command: unity-downloader-cli -u trunk -c editor --path .Editor --fast
+ - command: unity-downloader-cli -u 6000.6/staging -c editor --path .Editor --fast
timeout: 20
retries: 3
- command: upm-pvp create-test-project testproject --packages "upm-ci~/packages/*.tgz" --filter "com.unity.netcode.gameobjects com.unity.netcode.gameobjects.tests" --unity .Editor
@@ -979,10 +980,10 @@ validate_-_netcode_gameobjects_-_6000_6_-_ubuntu2204:
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
UPMPVP_ACK_UPMPVP_DOES_NO_API_VALIDATION: 1
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
labels:
- Packages:netcode.gameobjects
@@ -998,6 +999,217 @@ validate_-_netcode_gameobjects_-_6000_6_-_win10:
- command: 7z x -aoa wrench-localapv.zip
- command: pip install semver requests --index-url https://artifactory-slo.bf.unity3d.com/artifactory/api/pypi/pypi/simple
- command: python PythonScripts/print_machine_info.py
+ - command: unity-downloader-cli -u 6000.6/staging -c editor --path .Editor --fast
+ timeout: 20
+ retries: 3
+ - command: upm-pvp create-test-project testproject --packages "upm-ci~/packages/*.tgz" --filter "com.unity.netcode.gameobjects com.unity.netcode.gameobjects.tests" --unity .Editor
+ timeout: 10
+ retries: 1
+ - command: echo No internal packages to add.
+ - command: upm-pvp test --unity .Editor --packages "upm-ci~/packages/*.tgz" --results upm-ci~/pvp
+ timeout: 40
+ retries: 0
+ - command: upm-pvp require "pkgprom-promote -PVP-29-2 rme" --results upm-ci~/pvp --exemptions upm-ci~/pvp/failures.json
+ timeout: 5
+ retries: 0
+ - command: upm-pvp require "rme PVP-160-1 supported" --results upm-ci~/pvp --exemptions upm-ci~/pvp/failures.json
+ timeout: 10
+ retries: 0
+ - 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}" '
+ timeout: 40
+ retries: 1
+ after:
+ - command: .yamato\generated-scripts\infrastructure-instability-detection-win.cmd
+ artifacts:
+ Crash Dumps:
+ paths:
+ - CrashDumps/**
+ packages:
+ paths:
+ - upm-ci~/packages/**/*
+ pvp-results:
+ paths:
+ - upm-ci~/pvp/**/*
+ browsable: onDemand
+ UTR:
+ paths:
+ - '*.log'
+ - '*.xml'
+ - artifacts/**/*
+ - testproject/Logs/**
+ - testproject/Library/*.log
+ - testproject/*.log
+ - testproject/Builds/*.log
+ - build/test-results/**
+ browsable: onDemand
+ dependencies:
+ - path: .yamato/wrench/package-pack-jobs.yml#package_pack_-_netcode_gameobjects
+ variables:
+ UNITY_LICENSING_SERVER_BASE_URL: http://unity-ci-licenses.hq.unity3d.com:8080/
+ UNITY_LICENSING_SERVER_DELETE_NUL: 0
+ UNITY_LICENSING_SERVER_DELETE_ULF: 0
+ UNITY_LICENSING_SERVER_TOOLSET: pro
+ UPMPVP_ACK_UPMPVP_DOES_NO_API_VALIDATION: 1
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
+ metadata:
+ Job Maintainers: '#rm-packageworks'
+ Wrench: 3.2.0.0
+ labels:
+ - Packages:netcode.gameobjects
+
+# PVP Editor and Playmode tests for Validate - netcode.gameobjects - 6000.7 - macos13arm (6000.7 - MacOS).
+validate_-_netcode_gameobjects_-_6000_7_-_macos13arm:
+ name: Validate - netcode.gameobjects - 6000.7 - macos13arm
+ agent:
+ image: package-ci/macos-13-arm64:v4
+ type: Unity::VM::osx
+ flavor: m1.mac
+ model: M1
+ commands:
+ - command: curl https://artifactory.prd.it.unity3d.com/artifactory/stevedore-unity-internal/wrench-localapv/1-3-3_51b4e6affb4c10b90f92db9551b9dc80c5520794983600cff4fa925111db116d.zip -o wrench-localapv.zip
+ - command: 7z x -aoa wrench-localapv.zip
+ - command: pip install semver requests --index-url https://artifactory-slo.bf.unity3d.com/artifactory/api/pypi/pypi/simple
+ - command: python PythonScripts/print_machine_info.py
+ - command: unity-downloader-cli -u trunk -c editor --path .Editor --fast --arch arm64
+ timeout: 20
+ retries: 3
+ - command: upm-pvp create-test-project testproject --packages "upm-ci~/packages/*.tgz" --filter "com.unity.netcode.gameobjects com.unity.netcode.gameobjects.tests" --unity .Editor
+ timeout: 10
+ retries: 1
+ - command: echo No internal packages to add.
+ - command: upm-pvp test --unity .Editor --packages "upm-ci~/packages/*.tgz" --results upm-ci~/pvp
+ timeout: 40
+ retries: 0
+ - command: upm-pvp require "pkgprom-promote -PVP-29-2 rme" --results upm-ci~/pvp --exemptions upm-ci~/pvp/failures.json
+ timeout: 5
+ retries: 0
+ - command: upm-pvp require "rme PVP-160-1 supported" --results upm-ci~/pvp --exemptions upm-ci~/pvp/failures.json
+ timeout: 10
+ retries: 0
+ - 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}" '
+ timeout: 40
+ retries: 1
+ after:
+ - command: bash .yamato/generated-scripts/infrastructure-instability-detection-mac.sh
+ artifacts:
+ Crash Dumps:
+ paths:
+ - CrashDumps/**
+ packages:
+ paths:
+ - upm-ci~/packages/**/*
+ pvp-results:
+ paths:
+ - upm-ci~/pvp/**/*
+ browsable: onDemand
+ UTR:
+ paths:
+ - '*.log'
+ - '*.xml'
+ - artifacts/**/*
+ - testproject/Logs/**
+ - testproject/Library/*.log
+ - testproject/*.log
+ - testproject/Builds/*.log
+ - build/test-results/**
+ browsable: onDemand
+ dependencies:
+ - path: .yamato/wrench/package-pack-jobs.yml#package_pack_-_netcode_gameobjects
+ variables:
+ UNITY_LICENSING_SERVER_BASE_URL: http://unity-ci-licenses.hq.unity3d.com:8080/
+ UNITY_LICENSING_SERVER_DELETE_NUL: 0
+ UNITY_LICENSING_SERVER_DELETE_ULF: 0
+ UNITY_LICENSING_SERVER_TOOLSET: pro
+ UPMPVP_ACK_UPMPVP_DOES_NO_API_VALIDATION: 1
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
+ metadata:
+ Job Maintainers: '#rm-packageworks'
+ Wrench: 3.2.0.0
+ labels:
+ - Packages:netcode.gameobjects
+
+# PVP Editor and Playmode tests for Validate - netcode.gameobjects - 6000.7 - ubuntu2204 (6000.7 - Ubuntu).
+validate_-_netcode_gameobjects_-_6000_7_-_ubuntu2204:
+ name: Validate - netcode.gameobjects - 6000.7 - ubuntu2204
+ agent:
+ image: package-ci/ubuntu-22.04:v4
+ type: Unity::VM
+ flavor: b1.large
+ commands:
+ - command: curl https://artifactory.prd.it.unity3d.com/artifactory/stevedore-unity-internal/wrench-localapv/1-3-3_51b4e6affb4c10b90f92db9551b9dc80c5520794983600cff4fa925111db116d.zip -o wrench-localapv.zip
+ - command: 7z x -aoa wrench-localapv.zip
+ - command: pip install semver requests --index-url https://artifactory-slo.bf.unity3d.com/artifactory/api/pypi/pypi/simple
+ - command: python PythonScripts/print_machine_info.py
+ - command: unity-downloader-cli -u trunk -c editor --path .Editor --fast
+ timeout: 20
+ retries: 3
+ - command: upm-pvp create-test-project testproject --packages "upm-ci~/packages/*.tgz" --filter "com.unity.netcode.gameobjects com.unity.netcode.gameobjects.tests" --unity .Editor
+ timeout: 10
+ retries: 1
+ - command: echo No internal packages to add.
+ - command: upm-pvp test --unity .Editor --packages "upm-ci~/packages/*.tgz" --results upm-ci~/pvp
+ timeout: 40
+ retries: 0
+ - command: upm-pvp require "pkgprom-promote -PVP-29-2 rme" --results upm-ci~/pvp --exemptions upm-ci~/pvp/failures.json
+ timeout: 5
+ retries: 0
+ - command: upm-pvp require "rme PVP-160-1 supported" --results upm-ci~/pvp --exemptions upm-ci~/pvp/failures.json
+ timeout: 10
+ retries: 0
+ - 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}" '
+ timeout: 40
+ retries: 1
+ after:
+ - command: bash .yamato/generated-scripts/infrastructure-instability-detection-linux.sh
+ artifacts:
+ Crash Dumps:
+ paths:
+ - CrashDumps/**
+ packages:
+ paths:
+ - upm-ci~/packages/**/*
+ pvp-results:
+ paths:
+ - upm-ci~/pvp/**/*
+ browsable: onDemand
+ UTR:
+ paths:
+ - '*.log'
+ - '*.xml'
+ - artifacts/**/*
+ - testproject/Logs/**
+ - testproject/Library/*.log
+ - testproject/*.log
+ - testproject/Builds/*.log
+ - build/test-results/**
+ browsable: onDemand
+ dependencies:
+ - path: .yamato/wrench/package-pack-jobs.yml#package_pack_-_netcode_gameobjects
+ variables:
+ UNITY_LICENSING_SERVER_BASE_URL: http://unity-ci-licenses.hq.unity3d.com:8080/
+ UNITY_LICENSING_SERVER_DELETE_NUL: 0
+ UNITY_LICENSING_SERVER_DELETE_ULF: 0
+ UNITY_LICENSING_SERVER_TOOLSET: pro
+ UPMPVP_ACK_UPMPVP_DOES_NO_API_VALIDATION: 1
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
+ metadata:
+ Job Maintainers: '#rm-packageworks'
+ Wrench: 3.2.0.0
+ labels:
+ - Packages:netcode.gameobjects
+
+# PVP Editor and Playmode tests for Validate - netcode.gameobjects - 6000.7 - win10 (6000.7 - Windows).
+validate_-_netcode_gameobjects_-_6000_7_-_win10:
+ name: Validate - netcode.gameobjects - 6000.7 - win10
+ agent:
+ image: package-ci/win10:v4
+ type: Unity::VM
+ flavor: b1.large
+ commands:
+ - command: curl https://artifactory.prd.it.unity3d.com/artifactory/stevedore-unity-internal/wrench-localapv/1-3-3_51b4e6affb4c10b90f92db9551b9dc80c5520794983600cff4fa925111db116d.zip -o wrench-localapv.zip
+ - command: 7z x -aoa wrench-localapv.zip
+ - command: pip install semver requests --index-url https://artifactory-slo.bf.unity3d.com/artifactory/api/pypi/pypi/simple
+ - command: python PythonScripts/print_machine_info.py
- command: unity-downloader-cli -u trunk -c editor --path .Editor --fast
timeout: 20
retries: 3
@@ -1049,10 +1261,10 @@ validate_-_netcode_gameobjects_-_6000_6_-_win10:
UNITY_LICENSING_SERVER_DELETE_ULF: 0
UNITY_LICENSING_SERVER_TOOLSET: pro
UPMPVP_ACK_UPMPVP_DOES_NO_API_VALIDATION: 1
- UPMPVP_CONTEXT_WRENCH: 2.9.0.0
+ UPMPVP_CONTEXT_WRENCH: 3.2.0.0
metadata:
Job Maintainers: '#rm-packageworks'
- Wrench: 2.9.0.0
+ Wrench: 3.2.0.0
labels:
- Packages:netcode.gameobjects
diff --git a/.yamato/wrench/wrench_config.json b/.yamato/wrench/wrench_config.json
index 9aa8ecfde1..585d0dfb22 100644
--- a/.yamato/wrench/wrench_config.json
+++ b/.yamato/wrench/wrench_config.json
@@ -39,7 +39,7 @@
},
"publishing_job": ".yamato/wrench/promotion-jobs.yml#publish_netcode_gameobjects",
"branch_pattern": "ReleaseSlash",
- "wrench_version": "2.9.0.0",
+ "wrench_version": "3.2.0.0",
"pvp_exemption_path": ".yamato/wrench/pvp-exemptions.json",
"cs_project_path": "Tools/CI/NGO.Cookbook.csproj"
}
\ No newline at end of file
diff --git a/Tools/CI/NGO.Cookbook.csproj b/Tools/CI/NGO.Cookbook.csproj
index 452a22131a..ef0ba3d3bc 100644
--- a/Tools/CI/NGO.Cookbook.csproj
+++ b/Tools/CI/NGO.Cookbook.csproj
@@ -8,11 +8,11 @@
-
-
-
-
-
+
+
+
+
+
diff --git a/com.unity.netcode.gameobjects/CHANGELOG.md b/com.unity.netcode.gameobjects/CHANGELOG.md
index 1f7af6d540..3f6df83f11 100644
--- a/com.unity.netcode.gameobjects/CHANGELOG.md
+++ b/com.unity.netcode.gameobjects/CHANGELOG.md
@@ -21,7 +21,8 @@ Additional documentation and release notes are available at [Multiplayer Documen
### Fixed
-
+- Issue where NetworkRigidbodyBase was not applying rotation correctly when using Rigidbody2D. (#4012)
+- Issue where NetworkRigidbodyBase was always checking the 3D rigid body's interpolation mode when determining if it is kinematic and needs to put the rigid body to sleep and then switch to interpolation. (#4012)
### Security
@@ -34,6 +35,7 @@ Additional documentation and release notes are available at [Multiplayer Documen
### Added
- Added support for Unity's Fast Enter Play Mode with domain reload disabled. (#3956)
+- RPC messages now log any time they are not processed. (#3994)
### Changed
diff --git a/com.unity.netcode.gameobjects/Editor/CodeGen/NetworkBehaviourILPP.cs b/com.unity.netcode.gameobjects/Editor/CodeGen/NetworkBehaviourILPP.cs
index 04a72d7c9e..797197ec86 100644
--- a/com.unity.netcode.gameobjects/Editor/CodeGen/NetworkBehaviourILPP.cs
+++ b/com.unity.netcode.gameobjects/Editor/CodeGen/NetworkBehaviourILPP.cs
@@ -2152,14 +2152,14 @@ private bool GetReadMethodForParameter(TypeReference paramType, out MethodRefere
}
else
#endif
- if (paramType.Resolve().FullName == "Unity.Collections.NativeArray`1")
- {
- typeMethod = GetFastBufferReaderReadMethod(k_ReadValueTempMethodName, paramType);
- }
- else
- {
- typeMethod = GetFastBufferReaderReadMethod(k_ReadValueMethodName, paramType);
- }
+ if (paramType.Resolve().FullName == "Unity.Collections.NativeArray`1")
+ {
+ typeMethod = GetFastBufferReaderReadMethod(k_ReadValueTempMethodName, paramType);
+ }
+ else
+ {
+ typeMethod = GetFastBufferReaderReadMethod(k_ReadValueMethodName, paramType);
+ }
if (typeMethod != null)
{
methodRef = m_MainModule.ImportReference(typeMethod);
diff --git a/com.unity.netcode.gameobjects/Editor/NetworkManagerHelper.cs b/com.unity.netcode.gameobjects/Editor/NetworkManagerHelper.cs
index 5c7e554baf..a3224e6471 100644
--- a/com.unity.netcode.gameobjects/Editor/NetworkManagerHelper.cs
+++ b/com.unity.netcode.gameobjects/Editor/NetworkManagerHelper.cs
@@ -196,10 +196,10 @@ public bool NotifyUserOfNestedNetworkManager(NetworkManager networkManager, bool
return isParented;
}
else // If we are no longer a child, then we can remove ourself from this list
- if (transform.root == gameObject.transform)
- {
- s_LastKnownNetworkManagerParents.Remove(networkManager);
- }
+ if (transform.root == gameObject.transform)
+ {
+ s_LastKnownNetworkManagerParents.Remove(networkManager);
+ }
}
if (!EditorApplication.isUpdating && isParented)
{
diff --git a/com.unity.netcode.gameobjects/Runtime/Components/Interpolator/BufferedLinearInterpolator.cs b/com.unity.netcode.gameobjects/Runtime/Components/Interpolator/BufferedLinearInterpolator.cs
index 24eb580402..294cd9989f 100644
--- a/com.unity.netcode.gameobjects/Runtime/Components/Interpolator/BufferedLinearInterpolator.cs
+++ b/com.unity.netcode.gameobjects/Runtime/Components/Interpolator/BufferedLinearInterpolator.cs
@@ -468,19 +468,19 @@ internal T Update(float deltaTime, double tickLatencyAsTime, double minDeltaTime
}
}
else // If the target is reached and we have no more state updates, we want to check to see if we need to reset.
- if (m_BufferQueue.Count == 0)
- {
- // When the delta between the time sent and the current tick latency time-window is greater than the max delta time
- // plus the minimum delta time (a rough estimate of time to wait before we consider rate of change equal to zero),
- // we will want to reset the interpolator with the current known value. This prevents the next received state update's
- // time to be calculated against the last calculated time which if there is an extended period of time between the two
- // it would cause a large delta time period between the two states (i.e. it stops moving for a second or two and then
- // starts moving again).
- if ((tickLatencyAsTime - InterpolateState.Target.Value.TimeSent) > InterpolateState.MaxDeltaTime + minDeltaTime)
+ if (m_BufferQueue.Count == 0)
{
- InterpolateState.Reset(InterpolateState.CurrentValue);
+ // When the delta between the time sent and the current tick latency time-window is greater than the max delta time
+ // plus the minimum delta time (a rough estimate of time to wait before we consider rate of change equal to zero),
+ // we will want to reset the interpolator with the current known value. This prevents the next received state update's
+ // time to be calculated against the last calculated time which if there is an extended period of time between the two
+ // it would cause a large delta time period between the two states (i.e. it stops moving for a second or two and then
+ // starts moving again).
+ if ((tickLatencyAsTime - InterpolateState.Target.Value.TimeSent) > InterpolateState.MaxDeltaTime + minDeltaTime)
+ {
+ InterpolateState.Reset(InterpolateState.CurrentValue);
+ }
}
- }
}
m_NbItemsReceivedThisFrame = 0;
return InterpolateState.CurrentValue;
@@ -594,19 +594,19 @@ public T Update(float deltaTime, double renderTime, double serverTime)
InterpolateState.TargetReached = IsApproximately(InterpolateState.CurrentValue, InterpolateState.Target.Value.Item, GetPrecision());
}
else // If the target is reached and we have no more state updates, we want to check to see if we need to reset.
- if (InterpolateState.TargetReached && m_BufferQueue.Count == 0)
- {
- // When the delta between the time sent and the current tick latency time-window is greater than the max delta time
- // plus the minimum delta time (a rough estimate of time to wait before we consider rate of change equal to zero),
- // we will want to reset the interpolator with the current known value. This prevents the next received state update's
- // time to be calculated against the last calculated time which if there is an extended period of time between the two
- // it would cause a large delta time period between the two states (i.e. it stops moving for a second or two and then
- // starts moving again).
- if ((renderTime - InterpolateState.Target.Value.TimeSent) > 0.3f) // If we haven't recevied anything within 300ms, assume we stopped motion.
+ if (InterpolateState.TargetReached && m_BufferQueue.Count == 0)
{
- InterpolateState.Reset(InterpolateState.CurrentValue);
+ // When the delta between the time sent and the current tick latency time-window is greater than the max delta time
+ // plus the minimum delta time (a rough estimate of time to wait before we consider rate of change equal to zero),
+ // we will want to reset the interpolator with the current known value. This prevents the next received state update's
+ // time to be calculated against the last calculated time which if there is an extended period of time between the two
+ // it would cause a large delta time period between the two states (i.e. it stops moving for a second or two and then
+ // starts moving again).
+ if ((renderTime - InterpolateState.Target.Value.TimeSent) > 0.3f) // If we haven't recevied anything within 300ms, assume we stopped motion.
+ {
+ InterpolateState.Reset(InterpolateState.CurrentValue);
+ }
}
- }
m_NbItemsReceivedThisFrame = 0;
return InterpolateState.CurrentValue;
}
diff --git a/com.unity.netcode.gameobjects/Runtime/Components/NetworkAnimator.cs b/com.unity.netcode.gameobjects/Runtime/Components/NetworkAnimator.cs
index 246d6b8484..f87eee73ab 100644
--- a/com.unity.netcode.gameobjects/Runtime/Components/NetworkAnimator.cs
+++ b/com.unity.netcode.gameobjects/Runtime/Components/NetworkAnimator.cs
@@ -1181,25 +1181,25 @@ internal void CheckForAnimatorChanges()
SendAnimStateRpc(m_AnimationMessage);
}
else
- if (!IsServer && IsOwner)
- {
- SendServerAnimStateRpc(m_AnimationMessage);
- }
- else
- {
- // Just notify all remote clients and not the local server
- m_TargetGroup.Clear();
- foreach (var clientId in LocalNetworkManager.ConnectionManager.ConnectedClientIds)
+ if (!IsServer && IsOwner)
+ {
+ SendServerAnimStateRpc(m_AnimationMessage);
+ }
+ else
{
- if (clientId == LocalNetworkManager.LocalClientId || !NetworkObject.Observers.Contains(clientId))
+ // Just notify all remote clients and not the local server
+ m_TargetGroup.Clear();
+ foreach (var clientId in LocalNetworkManager.ConnectionManager.ConnectedClientIds)
{
- continue;
+ if (clientId == LocalNetworkManager.LocalClientId || !NetworkObject.Observers.Contains(clientId))
+ {
+ continue;
+ }
+ m_TargetGroup.Add(clientId);
}
- m_TargetGroup.Add(clientId);
+ m_RpcParams.Send.Target = m_TargetGroup.Target;
+ SendClientAnimStateRpc(m_AnimationMessage, m_RpcParams);
}
- m_RpcParams.Send.Target = m_TargetGroup.Target;
- SendClientAnimStateRpc(m_AnimationMessage, m_RpcParams);
- }
}
}
@@ -1347,24 +1347,24 @@ private unsafe void WriteParameters(ref FastBufferWriter writer)
}
}
else
- if (cacheValue.Type == AnimationParamEnumWrapper.AnimatorControllerParameterBool)
- {
- var valueBool = m_Animator.GetBool(hash);
- fixed (void* value = cacheValue.Value)
+ if (cacheValue.Type == AnimationParamEnumWrapper.AnimatorControllerParameterBool)
{
- UnsafeUtility.WriteArrayElement(value, 0, valueBool);
- BytePacker.WriteValuePacked(writer, valueBool);
+ var valueBool = m_Animator.GetBool(hash);
+ fixed (void* value = cacheValue.Value)
+ {
+ UnsafeUtility.WriteArrayElement(value, 0, valueBool);
+ BytePacker.WriteValuePacked(writer, valueBool);
+ }
}
- }
- else if (cacheValue.Type == AnimationParamEnumWrapper.AnimatorControllerParameterFloat)
- {
- var valueFloat = m_Animator.GetFloat(hash);
- fixed (void* value = cacheValue.Value)
+ else if (cacheValue.Type == AnimationParamEnumWrapper.AnimatorControllerParameterFloat)
{
- UnsafeUtility.WriteArrayElement(value, 0, valueFloat);
- BytePacker.WriteValuePacked(writer, valueFloat);
+ var valueFloat = m_Animator.GetFloat(hash);
+ fixed (void* value = cacheValue.Value)
+ {
+ UnsafeUtility.WriteArrayElement(value, 0, valueFloat);
+ BytePacker.WriteValuePacked(writer, valueFloat);
+ }
}
- }
}
}
diff --git a/com.unity.netcode.gameobjects/Runtime/Components/NetworkTransform.cs b/com.unity.netcode.gameobjects/Runtime/Components/NetworkTransform.cs
index 18fd9cd88f..63b43544bd 100644
--- a/com.unity.netcode.gameobjects/Runtime/Components/NetworkTransform.cs
+++ b/com.unity.netcode.gameobjects/Runtime/Components/NetworkTransform.cs
@@ -2516,23 +2516,23 @@ private bool CheckForStateChange(ref NetworkTransformState networkState, bool is
}
}
else // Just apply the full local scale when synchronizing
- if (SynchronizeScale)
- {
- var localScale = CachedTransform.localScale;
- if (!UseHalfFloatPrecision)
+ if (SynchronizeScale)
{
+ var localScale = CachedTransform.localScale;
+ if (!UseHalfFloatPrecision)
+ {
- networkState.ScaleX = localScale.x;
- networkState.ScaleY = localScale.y;
- networkState.ScaleZ = localScale.z;
- }
- else
- {
- networkState.Scale = localScale;
+ networkState.ScaleX = localScale.x;
+ networkState.ScaleY = localScale.y;
+ networkState.ScaleZ = localScale.z;
+ }
+ else
+ {
+ networkState.Scale = localScale;
+ }
+ flagStates.MarkChanged(AxialType.Scale, true);
+ isScaleDirty = true;
}
- flagStates.MarkChanged(AxialType.Scale, true);
- isScaleDirty = true;
- }
isDirty |= isPositionDirty || isRotationDirty || isScaleDirty;
if (isDirty)
@@ -3489,11 +3489,11 @@ private void NonAuthorityFinalizeSynchronization()
}
}
else // Otherwise, just run through standard synchronization of this instance
- if (!CanCommitToTransform)
- {
- ApplySynchronization();
- InternalInitialization();
- }
+ if (!CanCommitToTransform)
+ {
+ ApplySynchronization();
+ InternalInitialization();
+ }
}
}
diff --git a/com.unity.netcode.gameobjects/Runtime/Connection/NetworkConnectionManager.cs b/com.unity.netcode.gameobjects/Runtime/Connection/NetworkConnectionManager.cs
index 5a8724374c..cc44bd8783 100644
--- a/com.unity.netcode.gameobjects/Runtime/Connection/NetworkConnectionManager.cs
+++ b/com.unity.netcode.gameobjects/Runtime/Connection/NetworkConnectionManager.cs
@@ -968,18 +968,18 @@ internal void ProcessClientsToDisconnect()
return (true, playerPrefabHash.Value);
}
else
- if (NetworkManager.NetworkConfig.PlayerPrefab != null)
- {
- var networkObject = NetworkManager.NetworkConfig.PlayerPrefab.GetComponent();
- if (networkObject != null)
+ if (NetworkManager.NetworkConfig.PlayerPrefab != null)
{
- return (true, networkObject.GlobalObjectIdHash);
- }
- else
- {
- NetworkManager.Log.Error(new Logging.Context(LogLevel.Error, $"Player prefab {NetworkManager.NetworkConfig.PlayerPrefab.name} has no {nameof(NetworkObject)}!"));
+ var networkObject = NetworkManager.NetworkConfig.PlayerPrefab.GetComponent();
+ if (networkObject != null)
+ {
+ return (true, networkObject.GlobalObjectIdHash);
+ }
+ else
+ {
+ NetworkManager.Log.Error(new Logging.Context(LogLevel.Error, $"Player prefab {NetworkManager.NetworkConfig.PlayerPrefab.name} has no {nameof(NetworkObject)}!"));
+ }
}
- }
return (false, 0);
}
diff --git a/com.unity.netcode.gameobjects/Runtime/Core/NetworkObject.cs b/com.unity.netcode.gameobjects/Runtime/Core/NetworkObject.cs
index 73cc6c7e2d..5008ee6075 100644
--- a/com.unity.netcode.gameobjects/Runtime/Core/NetworkObject.cs
+++ b/com.unity.netcode.gameobjects/Runtime/Core/NetworkObject.cs
@@ -2564,25 +2564,25 @@ internal bool ApplyNetworkParenting(bool removeParent = false, bool ignoreNotSpa
return true;
}
else // If the parent still isn't spawned add this to the orphaned children and return false
- if (!parentNetworkObject.IsSpawned)
- {
- OrphanChildren.Add(this);
- return false;
- }
- else
- {
- // If we made it this far, go ahead and set the network parenting values
- // with the WorldPoisitonSays value set to false
- // Note: Since in-scene placed NetworkObjects are parented in the scene
- // the default "assumption" is that children are parenting local space
- // relative.
- SetNetworkParenting(parentNetworkObject.NetworkObjectId, false);
+ if (!parentNetworkObject.IsSpawned)
+ {
+ OrphanChildren.Add(this);
+ return false;
+ }
+ else
+ {
+ // If we made it this far, go ahead and set the network parenting values
+ // with the WorldPoisitonSays value set to false
+ // Note: Since in-scene placed NetworkObjects are parented in the scene
+ // the default "assumption" is that children are parenting local space
+ // relative.
+ SetNetworkParenting(parentNetworkObject.NetworkObjectId, false);
- // Set the cached parent
- SetCachedParent(parentNetworkObject.transform);
+ // Set the cached parent
+ SetCachedParent(parentNetworkObject.transform);
- return true;
- }
+ return true;
+ }
}
// If we are removing the parent or our latest parent is not set, then remove the parent.
@@ -3548,16 +3548,16 @@ internal void SceneChangedUpdate(Scene scene, bool notify = false)
}
}
else // Otherwise, the client did not find the client to server scene handle
- if (NetworkManagerOwner.LogLevel <= LogLevel.Developer)
- {
- // There could be a scenario where a user has some client-local scene loaded that they migrate the NetworkObject
- // into, but that scenario seemed very edge case and under most instances a user should be notified that this
- // server - client scene handle mismatch has occurred. It also seemed pertinent to make the message replicate to
- // the server-side too.
- NetworkLog.LogWarningServer($"[Client-{NetworkManagerOwner.LocalClientId}][{name}] Server - " +
- $"client scene mismatch detected! Client-side scene handle ({SceneOriginHandle}) for scene ({gameObject.scene.name})" +
- $"has no associated server side (network) scene handle!");
- }
+ if (NetworkManagerOwner.LogLevel <= LogLevel.Developer)
+ {
+ // There could be a scenario where a user has some client-local scene loaded that they migrate the NetworkObject
+ // into, but that scenario seemed very edge case and under most instances a user should be notified that this
+ // server - client scene handle mismatch has occurred. It also seemed pertinent to make the message replicate to
+ // the server-side too.
+ NetworkLog.LogWarningServer($"[Client-{NetworkManagerOwner.LocalClientId}][{name}] Server - " +
+ $"client scene mismatch detected! Client-side scene handle ({SceneOriginHandle}) for scene ({gameObject.scene.name})" +
+ $"has no associated server side (network) scene handle!");
+ }
OnMigratedToNewScene?.Invoke();
// Only the authority side will notify clients of non-parented NetworkObject scene changes
diff --git a/com.unity.netcode.gameobjects/Runtime/Messaging/Messages/CreateObjectMessage.cs b/com.unity.netcode.gameobjects/Runtime/Messaging/Messages/CreateObjectMessage.cs
index cf518a6216..b8f8af78fb 100644
--- a/com.unity.netcode.gameobjects/Runtime/Messaging/Messages/CreateObjectMessage.cs
+++ b/com.unity.netcode.gameobjects/Runtime/Messaging/Messages/CreateObjectMessage.cs
@@ -190,10 +190,10 @@ internal static void CreateObject(ref NetworkManager networkManager, ulong sende
NetworkLog.LogErrorServer($"[{nameof(CreateObjectMessage)}][Duplicate-Broadcast] Detected duplicated object creation for {serializedObject.NetworkObjectId}!");
}
else // Trap to make sure the owner is not receiving any messages it sent
- if (networkManager.CMBServiceConnection && networkManager.LocalClientId == networkObject.OwnerClientId)
- {
- NetworkLog.LogWarning($"[{nameof(CreateObjectMessage)}][Client-{networkManager.LocalClientId}][Duplicate-CreateObjectMessage][Client Is Owner] Detected duplicated object creation for {networkObject.name}-{serializedObject.NetworkObjectId}!");
- }
+ if (networkManager.CMBServiceConnection && networkManager.LocalClientId == networkObject.OwnerClientId)
+ {
+ NetworkLog.LogWarning($"[{nameof(CreateObjectMessage)}][Client-{networkManager.LocalClientId}][Duplicate-CreateObjectMessage][Client Is Owner] Detected duplicated object creation for {networkObject.name}-{serializedObject.NetworkObjectId}!");
+ }
}
else
{
diff --git a/com.unity.netcode.gameobjects/Runtime/SceneManagement/DefaultSceneManagerHandler.cs b/com.unity.netcode.gameobjects/Runtime/SceneManagement/DefaultSceneManagerHandler.cs
index 76ea8feb04..dba918a679 100644
--- a/com.unity.netcode.gameobjects/Runtime/SceneManagement/DefaultSceneManagerHandler.cs
+++ b/com.unity.netcode.gameobjects/Runtime/SceneManagement/DefaultSceneManagerHandler.cs
@@ -360,13 +360,13 @@ public void SetClientSynchronizationMode(ref NetworkManager networkManager, Load
return;
}
else // Warn users if they are changing this after there are clients already connected and synchronized
- if (!networkManager.DistributedAuthorityMode && networkManager.ConnectedClientsIds.Count > (networkManager.IsHost ? 1 : 0) && sceneManager.ClientSynchronizationMode != mode)
- {
- if (NetworkLog.CurrentLogLevel <= LogLevel.Normal)
+ if (!networkManager.DistributedAuthorityMode && networkManager.ConnectedClientsIds.Count > (networkManager.IsHost ? 1 : 0) && sceneManager.ClientSynchronizationMode != mode)
{
- NetworkLog.LogWarning("Server is changing client synchronization mode after clients have been synchronized! It is recommended to do this before clients are connected!");
+ if (NetworkLog.CurrentLogLevel <= LogLevel.Normal)
+ {
+ NetworkLog.LogWarning("Server is changing client synchronization mode after clients have been synchronized! It is recommended to do this before clients are connected!");
+ }
}
- }
// For additive client synchronization, we take into consideration scenes
// already loaded.
diff --git a/com.unity.netcode.gameobjects/Runtime/Spawning/NetworkPrefabHandler.cs b/com.unity.netcode.gameobjects/Runtime/Spawning/NetworkPrefabHandler.cs
index c8aab939f4..ece7561161 100644
--- a/com.unity.netcode.gameobjects/Runtime/Spawning/NetworkPrefabHandler.cs
+++ b/com.unity.netcode.gameobjects/Runtime/Spawning/NetworkPrefabHandler.cs
@@ -342,10 +342,10 @@ internal void HandleNetworkPrefabDestroy(NetworkObject networkObjectInstance)
}
}
else // Otherwise the NetworkObject is the source NetworkPrefab
- if (m_PrefabAssetToPrefabHandler.TryGetValue(networkObjectInstanceHash, out var prefabInstanceHandler))
- {
- prefabInstanceHandler.Destroy(networkObjectInstance);
- }
+ if (m_PrefabAssetToPrefabHandler.TryGetValue(networkObjectInstanceHash, out var prefabInstanceHandler))
+ {
+ prefabInstanceHandler.Destroy(networkObjectInstance);
+ }
}
///
diff --git a/com.unity.netcode.gameobjects/Runtime/Spawning/NetworkSpawnManager.cs b/com.unity.netcode.gameobjects/Runtime/Spawning/NetworkSpawnManager.cs
index 46f52bc4f9..449ca04100 100644
--- a/com.unity.netcode.gameobjects/Runtime/Spawning/NetworkSpawnManager.cs
+++ b/com.unity.netcode.gameobjects/Runtime/Spawning/NetworkSpawnManager.cs
@@ -1820,10 +1820,10 @@ internal void OnDespawnObject([NotNull] NetworkObject networkObject, bool destro
}
}
else
- if (NetworkLog.CurrentLogLevel <= LogLevel.Developer)
- {
- NetworkLog.LogWarning($"{nameof(NetworkObject)} #{spawnedNetObj.NetworkObjectId} moved to the root because its parent {nameof(NetworkObject)} #{networkObject.NetworkObjectId} is destroyed");
- }
+ if (NetworkLog.CurrentLogLevel <= LogLevel.Developer)
+ {
+ NetworkLog.LogWarning($"{nameof(NetworkObject)} #{spawnedNetObj.NetworkObjectId} moved to the root because its parent {nameof(NetworkObject)} #{networkObject.NetworkObjectId} is destroyed");
+ }
}
}
diff --git a/com.unity.netcode.gameobjects/Tests/Runtime/DistributedAuthority/NetworkClientAndPlayerObjectTests.cs b/com.unity.netcode.gameobjects/Tests/Runtime/DistributedAuthority/NetworkClientAndPlayerObjectTests.cs
index 5697833bbc..461d85a757 100644
--- a/com.unity.netcode.gameobjects/Tests/Runtime/DistributedAuthority/NetworkClientAndPlayerObjectTests.cs
+++ b/com.unity.netcode.gameobjects/Tests/Runtime/DistributedAuthority/NetworkClientAndPlayerObjectTests.cs
@@ -247,11 +247,11 @@ private bool ValidateAllPlayerObjects()
success = false;
}
else
- if (!client.SpawnManager.PlayerObjects.Contains(client.LocalClient.PlayerObject))
- {
- m_ErrorLogLevel1.AppendLine($"[Client-{client.LocalClientId}] Local {nameof(NetworkSpawnManager.PlayerObjects)} does not contain {client.LocalClient.PlayerObject.name}!");
- success = false;
- }
+ if (!client.SpawnManager.PlayerObjects.Contains(client.LocalClient.PlayerObject))
+ {
+ m_ErrorLogLevel1.AppendLine($"[Client-{client.LocalClientId}] Local {nameof(NetworkSpawnManager.PlayerObjects)} does not contain {client.LocalClient.PlayerObject.name}!");
+ success = false;
+ }
}
return success;
diff --git a/com.unity.netcode.gameobjects/Tests/Runtime/NetworkShowHideTests.cs b/com.unity.netcode.gameobjects/Tests/Runtime/NetworkShowHideTests.cs
index 6c09212a18..43f6eac7de 100644
--- a/com.unity.netcode.gameobjects/Tests/Runtime/NetworkShowHideTests.cs
+++ b/com.unity.netcode.gameobjects/Tests/Runtime/NetworkShowHideTests.cs
@@ -489,10 +489,10 @@ private bool Object1IsNotVisibileToClient()
}
}
else
- if (client.SpawnManager.SpawnedObjects[m_NetSpawnedObject1.NetworkObjectId].IsNetworkVisibleTo(m_ClientWithoutVisibility))
- {
- m_ErrorLog.AppendLine($"Local instance of {m_NetSpawnedObject1.name} on Client-{client.LocalClientId} thinks Client-{m_ClientWithoutVisibility} still has visibility!");
- }
+ if (client.SpawnManager.SpawnedObjects[m_NetSpawnedObject1.NetworkObjectId].IsNetworkVisibleTo(m_ClientWithoutVisibility))
+ {
+ m_ErrorLog.AppendLine($"Local instance of {m_NetSpawnedObject1.name} on Client-{client.LocalClientId} thinks Client-{m_ClientWithoutVisibility} still has visibility!");
+ }
}
return m_ErrorLog.Length == 0;
}
diff --git a/com.unity.netcode.gameobjects/Tests/Runtime/NetworkTransform/NetworkTransformNonAuthorityTests.cs b/com.unity.netcode.gameobjects/Tests/Runtime/NetworkTransform/NetworkTransformNonAuthorityTests.cs
index e5fb5a4ba9..5705d21942 100644
--- a/com.unity.netcode.gameobjects/Tests/Runtime/NetworkTransform/NetworkTransformNonAuthorityTests.cs
+++ b/com.unity.netcode.gameobjects/Tests/Runtime/NetworkTransform/NetworkTransformNonAuthorityTests.cs
@@ -419,12 +419,12 @@ private bool ShouldSyncAxis(bool first, bool second, bool lastValue)
return false;
}
else
- if (!first && !second)
- {
- // If both are disabled, then make the
- // last one enabled.
- return true;
- }
+ if (!first && !second)
+ {
+ // If both are disabled, then make the
+ // last one enabled.
+ return true;
+ }
}
return Random.Range(start, 100) >= 50 ? false : true;
}
diff --git a/testproject/Assets/Tests/Manual/Scripts/NetworkPrefabPool.cs b/testproject/Assets/Tests/Manual/Scripts/NetworkPrefabPool.cs
index 7821d2af27..5b045b1855 100644
--- a/testproject/Assets/Tests/Manual/Scripts/NetworkPrefabPool.cs
+++ b/testproject/Assets/Tests/Manual/Scripts/NetworkPrefabPool.cs
@@ -497,11 +497,11 @@ public void UpdateSpawnsPerSecond()
StartSpawningBoxes();
}
else //Handle case where spawning coroutine is running but we set our spawn rate to zero
- if (SpawnsPerSecond == 0 && m_IsSpawningObjects)
- {
- m_IsSpawningObjects = false;
- StopCoroutine(SpawnObjects());
- }
+ if (SpawnsPerSecond == 0 && m_IsSpawningObjects)
+ {
+ m_IsSpawningObjects = false;
+ StopCoroutine(SpawnObjects());
+ }
}
}
diff --git a/testproject/Assets/Tests/Manual/Scripts/NetworkPrefabPoolAdditive.cs b/testproject/Assets/Tests/Manual/Scripts/NetworkPrefabPoolAdditive.cs
index f714d937de..0c4992cbd9 100644
--- a/testproject/Assets/Tests/Manual/Scripts/NetworkPrefabPoolAdditive.cs
+++ b/testproject/Assets/Tests/Manual/Scripts/NetworkPrefabPoolAdditive.cs
@@ -343,11 +343,11 @@ public void UpdateSpawnsPerSecond()
StartSpawningBoxes();
}
else //Handle case where spawning coroutine is running but we set our spawn rate to zero
- if (SpawnsPerSecond == 0 && m_IsSpawningObjects)
- {
- m_IsSpawningObjects = false;
- InternalStopCoroutine();
- }
+ if (SpawnsPerSecond == 0 && m_IsSpawningObjects)
+ {
+ m_IsSpawningObjects = false;
+ InternalStopCoroutine();
+ }
}
diff --git a/testproject/Assets/Tests/Runtime/Animation/NetworkAnimatorTests.cs b/testproject/Assets/Tests/Runtime/Animation/NetworkAnimatorTests.cs
index 474c9dabbe..dc2493ec28 100644
--- a/testproject/Assets/Tests/Runtime/Animation/NetworkAnimatorTests.cs
+++ b/testproject/Assets/Tests/Runtime/Animation/NetworkAnimatorTests.cs
@@ -528,10 +528,10 @@ private bool AllObserversSameLayerWeight(OwnerShipMode ownerShipMode, int layer,
}
}
else
- if (animatorTestHelper.Value.GetLayerWeight(layer) != targetWeight)
- {
- return false;
- }
+ if (animatorTestHelper.Value.GetLayerWeight(layer) != targetWeight)
+ {
+ return false;
+ }
}
return true;
}