Skip to content

fix: suggested fixes for #3514 #3538

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
30cf113
ci: [NGOv2.X]Updated Wrench and added project dependency (#3512)
michalChrobot Jun 24, 2025
b87dae7
feat: Expose methods for ClientId to TransportId mappings (#3516)
EmandM Jun 24, 2025
1be4c4a
Merge branch 'develop-2.0.0' of https://github.com/Unity-Technologies…
EmandM Jun 25, 2025
27bae93
fix
NoelStephensUnity Jun 26, 2025
3a64ab0
chore: Add tech writer to codeowners 2.x (#3525)
jabbacakes Jun 26, 2025
3632713
Merge develop-2.0.0 into fix/destroy-in-scene-placed-objects
netcode-ci-service Jun 26, 2025
c8fb89e
chore: merge v2.4.3 back into develop-2.0.0 (#3523)
NoelStephensUnity Jun 27, 2025
728eb24
Merge develop-2.0.0 into fix/destroy-in-scene-placed-objects
netcode-ci-service Jun 27, 2025
098e68e
ci: Integrating CodeCov with NGO repo [develop-2.0.0] (#3474)
michalChrobot Jun 27, 2025
88b3a07
ci: [NGOv2.X] Fixing WebGL timeout and reenabling macOS job (#3507)
michalChrobot Jun 28, 2025
ff571bc
chore(deps): update dependency recipeengine.modules.wrench to 0.12.2 …
unity-renovate[bot] Jul 1, 2025
a06c9d8
docs: Adding docs to the 2.4 version of the package (#3521)
jabbacakes Jul 4, 2025
9e2e880
Ensure all clients can re-parent objects in DA mode
EmandM Jul 8, 2025
424fbeb
rename test network objects
EmandM Jul 8, 2025
10f2a51
fix/mttb-1377/synchronize-despawn-to-client
EmandM Jun 18, 2025
33bcbcc
Update changelog
EmandM Jun 18, 2025
ba62b90
dotnet-fix
EmandM Jun 23, 2025
48bb41b
InScenePlacedNetworkObjectTests rework
EmandM Jun 23, 2025
921707f
style
NoelStephensUnity Jun 24, 2025
b609e69
fixes
EmandM Jun 25, 2025
147bf38
fix
NoelStephensUnity Jun 26, 2025
99d5043
Ensure all clients can re-parent objects in DA mode
EmandM Jul 8, 2025
0ea6a8e
rename test network objects
EmandM Jul 8, 2025
1e2a5c9
Update NetworkShowHideTests to work with cmb service
EmandM Jul 8, 2025
41fc2c8
Merge branch 'fix/destroy-in-scene-placed-objects' of https://github.…
EmandM Jul 8, 2025
56e1b6f
fix
NoelStephensUnity Jul 8, 2025
21d8fcf
Merge branch 'fix/destroy-in-scene-placed-objects' of https://github.…
NoelStephensUnity Jul 8, 2025
944087b
style
NoelStephensUnity Jul 8, 2025
340549c
fix
NoelStephensUnity Jul 9, 2025
8c67ce3
update
NoelStephensUnity Jul 9, 2025
452a9c4
Fix-PVP
NoelStephensUnity Jul 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ AssemblyInfo.cs @NoelStephensUnity @EmandM @Unity-Technologies/netcode-qa
.gitignore @NoelStephensUnity @EmandM @Unity-Technologies/netcode-qa
.github/ @NoelStephensUnity @EmandM @Unity-Technologies/netcode-qa
.yamato/ @NoelStephensUnity @EmandM @Unity-Technologies/netcode-qa
com.unity.netcode.gameobjects/Documentation*/ @jabbacakes
47 changes: 47 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
codecov:
require_ci_to_pass: false
notify:
wait_for_ci: true

coverage:
precision: 2
round: down
range: "50...70"
status:
patch:
default:
if_ci_failed: success
informational: true
default_rules:
flag_coverage_not_uploaded_behavior: exclude
project:
default:
target: auto
# Threshold used for the PR Check
threshold: 0.5%
base: auto
if_ci_failed: success
informational: true
only_pulls: true

# PR Comment configuration
comment:
layout: "diff, flags, files, components"
behavior: default
require_changes: false
require_base: false
require_head: false
# Set this to the number of coverage jobs run in the PR
after_n_builds: 1

flag_management:
default_rules:
carryforward: true

# Components configuration
component_management:
individual_components:
- component_id: "com.unity.netcode.gameobjects"
name: "com.unity.netcode.gameobjects"
paths:
- com.unity.netcode.gameobjects
6 changes: 0 additions & 6 deletions .yamato/_run-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,9 @@ run_all_webgl_builds:
dependencies:
{% for project in projects.default -%}
{% for platform in test_platforms.desktop -%}
{% if platform.name != "mac" -%} # There is an error about "Light baking could not be started because no valid OpenCL device could be found". Tracked in MTT-11726
{% for editor in validation_editors.all -%}
- .yamato/webgl-build.yml#webgl_build_{{ project.name }}_{{ platform.name }}_{{ editor }}
{% endfor -%}
{% endif -%}
{% endfor -%}
{% endfor -%}

Expand All @@ -125,11 +123,9 @@ run_all_webgl_builds_trunk:
dependencies:
{% for project in projects.default -%}
{% for platform in test_platforms.desktop -%}
{% if platform.name != "mac" -%} # There is an error about "Light baking could not be started because no valid OpenCL device could be found". Tracked in MTT-11726
{% for editor in validation_editors.default -%}
- .yamato/webgl-build.yml#webgl_build_{{ project.name }}_{{ platform.name }}_{{ editor }}
{% endfor -%}
{% endif -%}
{% endfor -%}
{% endfor -%}

Expand All @@ -139,9 +135,7 @@ run_all_webgl_builds_6000:
dependencies:
{% for project in projects.default -%}
{% for platform in test_platforms.desktop -%}
{% if platform.name != "mac" -%} # There is an error about "Light baking could not be started because no valid OpenCL device could be found". Tracked in MTT-11726
- .yamato/webgl-build.yml#webgl_build_{{ project.name }}_{{ platform.name }}_6000.0
{% endif -%}
{% endfor -%}
{% endfor -%}

Expand Down
1 change: 1 addition & 0 deletions .yamato/_triggers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ pull_request_trigger:
- "develop"
- "develop-2.0.0"
- "/release\/.*/"
- "/fix\/.*/"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why to add this automatically? My understanding is that we don't need to "waste resources" and enforce the test passing for PRs that are not "landing". So what I would do is to trigger those tests manually in Yamato if you want to ensure that it's passing.
Otherwise notice that if there is a PR targeting develop branch to which you are merging then after the merge the tests will automatically run on that branch

Also fix/ may be a bit general in a way that someone may be surprised by enforced tests (in my opinion)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why to add this automatically? My understanding is that we don't need to "waste resources" and enforce the test passing for PRs that are not "landing". So what I would do is to trigger those tests manually in Yamato if you want to ensure that it's passing.
Otherwise notice that if there is a PR targeting develop branch to which you are merging then after the merge the tests will automatically run on that branch

Adding /fix/. to the triggers should have zero impact on triggering anything on the develop branch.

Also fix/ may be a bit general in a way that someone may be surprised by enforced tests (in my opinion)

For fixes, using "fix/" as the prefix to a branch name is actually the standard.... fix/
Just like for chores, using "chore" as the prefix to a branch name is actually the standard.... chore/

But all of this is just my recommended updates/fixes and we can just as easily close the PR and delete the branch.

Copy link
Collaborator

@michalChrobot michalChrobot Jul 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding /fix/. to the triggers should have zero impact on triggering anything on the develop branch.

Maybe I actually described it a bit wrongly, but my point is just that this job will be triggered twice. Since the trigger definition will be

    pull_requests:
      - targets:
          only:
            - "develop"
            - "develop-2.0.0"
            - "/release\/.*/"
            - - "/fix\/.*/"

This mean that this entire set of jobs will run on ANY PR that targets fix/... branch. Assumption is that said fix/ branch will either target develop/develop-2.0.0 (in that case this set of jobs will run as per job trigger definition) or it will merge to some other branch that at some point in the future will target develop/develop-2.0.0 (since otherwise it will never be part of the package) and in that point this set of jobs will run

So that's why I'm more into "If your branch is not targeting develop/develop-2.0.0 then we don't force running those jobs in order for the PR to merge"

- drafts: false


Expand Down
3 changes: 1 addition & 2 deletions .yamato/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
# In order to properly use -coverage-results-path parameter we need to start it with $PWD (which means the absolute path). Otherwise coverage results will not be visible

# QUALITY CONSIDERATIONS--------------------------------------------------------------------
# TODO: somewhere in 2025 we will be able to upload resuls to CodeCov from public repos
# To see where this job is included (in trigger job definitions) look into _triggers.yml file


Expand All @@ -40,7 +39,7 @@ code_coverage_{{ platform.name }}_{{ editor }}:
commands:
- unity-downloader-cli --fast --wait -u {{ editor }} -c Editor {% if platform.name == "mac" %} --arch arm64 {% endif %} # For macOS we use ARM64 models
- upm-pvp create-test-project test-project --packages "upm-ci~/packages/*.tgz" --unity .Editor
- UnifiedTestRunner --suite=editor --suite=playmode --editor-location=.Editor --testproject=test-project --enable-code-coverage -coverage-results-path=$PWD/test-results/CodeCoverage --coverage-options="generateHtmlReport;generateAdditionalMetrics;assemblyFilters:+Unity.Netcode.Editor,+Unity.Netcode.Runtime" --extra-editor-arg=--burst-disable-compilation --timeout=1800 --reruncount=1 --clean-library-on-rerun --artifacts-path=test-results
- 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=1800 --reruncount=1 --clean-library-on-rerun --artifacts-path=test-results
artifacts:
logs:
paths:
Expand Down
4 changes: 2 additions & 2 deletions .yamato/project.metafile
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ test_platforms:
default:
- name: ubuntu
type: Unity::VM
image: package-ci/ubuntu-22.04:v4.71.0
image: package-ci/ubuntu-22.04:v4
flavor: b1.large
standalone: StandaloneLinux64
desktop:
- name: ubuntu
type: Unity::VM
image: package-ci/ubuntu-22.04:v4.71.0
image: package-ci/ubuntu-22.04:v4
flavor: b1.large
standalone: StandaloneLinux64
model: rtx2080
Expand Down
4 changes: 1 addition & 3 deletions .yamato/webgl-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,13 @@

{% for project in projects.default -%}
{% for platform in test_platforms.desktop -%}
{% if platform.name != "mac" -%} # There is an error about "Light baking could not be started because no valid OpenCL device could be found". Tracked in MTT-11726
{% for editor in validation_editors.all -%}
webgl_build_{{ project.name }}_{{ platform.name }}_{{ editor }}:
name: WebGl Build - {{ project.name }} [{{ platform.name }}, {{ editor }}, il2cpp]
agent:
type: {{ platform.type }}
image: {{ platform.image }}
flavor: {{ platform.flavor }}
flavor: b1.xlarge # We use b1.xlarge for WebGL builds since it requires more resources (otherwise it hangs and timeouts) especially on Ubuntu platform
{% if platform.model %}
model: {{ platform.model }} # This is set only in platforms where we want non-default model to use (more information in project.metafile)
{% endif %}
Expand All @@ -53,6 +52,5 @@ webgl_build_{{ project.name }}_{{ platform.name }}_{{ editor }}:
- "artifacts/**/*"
- "build/players/**/*"
{% endfor -%}
{% endif -%}
{% endfor -%}
{% endfor -%}
6 changes: 3 additions & 3 deletions .yamato/wrench/api-validation-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ api_validation_-_netcode_gameobjects_-_6000_0_-_windows:
- 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 6000.0/staging -c Editor --fast
- command: unity-downloader-cli -u 6000.0/staging -c editor --path .Editor --fast
timeout: 10
retries: 3
- command: python PythonScripts/PackageJsonCondersor.py
Expand Down Expand Up @@ -51,8 +51,8 @@ api_validation_-_netcode_gameobjects_-_6000_0_-_windows:
dependencies:
- path: .yamato/wrench/package-pack-jobs.yml#package_pack_-_netcode_gameobjects
variables:
UPMPVP_CONTEXT_WRENCH: 0.11.3.0
UPMPVP_CONTEXT_WRENCH: 0.12.2.0
metadata:
Job Maintainers: '#rm-packageworks'
Wrench: 0.11.3.0
Wrench: 0.12.2.0

2 changes: 1 addition & 1 deletion .yamato/wrench/package-pack-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ package_pack_-_netcode_gameobjects:
UPMCI_ACK_LARGE_PACKAGE: 1
metadata:
Job Maintainers: '#rm-packageworks'
Wrench: 0.11.3.0
Wrench: 0.12.2.0

Loading