Skip to content

fix: run the Pose cases of the RPC serialization tests - #4220

Open
NoelStephensUnity wants to merge 6 commits into
develop-3.x.xfrom
fix/rpc-pose-test-yield
Open

NoelStephensUnity wants to merge 6 commits into
develop-3.x.xfrom
fix/rpc-pose-test-yield

Conversation

@NoelStephensUnity

Copy link
Copy Markdown
Member

Purpose of this PR

The Pose cases of RpcTypeSerializationTests passed without running. Their branches called the coroutine helpers without yield return, so the RPCs were never sent or checked, and the NativeArray/NativeList cases never disposed their collections. Those collections are the 6 allocations left after #4219 in the unified suite's leak report.

PR Scope:

  • Adds the missing yield return to all four Pose branches: single value, managed array, NativeArray and NativeList.

Jira ticket

None.

Documentation

  • No documentation changes or additions were necessary.

Testing & QA (How your changes can be verified during release Playtest)

Functional Testing

Manual testing :

  • Manual testing done

Automated tests:

  • Covered by existing automated tests
  • Covered by new automated tests

RpcTypeSerializationTests: Server 132/132 and UnifiedServer 132/132 passed, with all Pose cases now running.

Does the change require QA team to:

  • Review automated tests?
  • Execute manual tests?
  • Provide feedback about the PR?

Up-port

Not needed: targets develop-3.x.x. The same Pose branches exist on develop-2.0.0 if a port is wanted.

Backports

None.

The Pose branches called the coroutine helpers without yield return, so the
Pose cases passed without running and their native collections were never
disposed.
@NoelStephensUnity
NoelStephensUnity requested a review from a team as a code owner October 27, 2026 14:02

@u-pr u-pr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 Harness Review

Ship it

The four added yields correctly execute the existing Pose RPC test coroutines. I examined all changed branches, matching RPC methods, assertions, native collection disposal, and compilation guards; no actionable issues were found.

Reviewed commit a1a4505

🤖 Helpful? 👍/👎

@NoelStephensUnity
NoelStephensUnity enabled auto-merge (squash) October 27, 2026 17:45
@NoelStephensUnity
NoelStephensUnity marked this pull request as draft October 28, 2026 15:56
auto-merge was automatically disabled October 28, 2026 15:56

Pull request was converted to draft

@NoelStephensUnity
NoelStephensUnity marked this pull request as ready for review October 28, 2026 15:56

@u-pr u-pr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 Harness Review

Ship it

The four additions correctly run the previously skipped Pose coroutine tests. I examined the matching RPC methods, helper assertions, native collection disposal, and neighboring branches, and found no actionable issues.

Reviewed commit 12d8fe3

🤖 Helpful? 👍/👎

@codecov-github-com

codecov-github-com Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

@@                Coverage Diff                @@
##           develop-3.x.x    #4220      +/-   ##
=================================================
- Coverage          76.91%   76.85%   -0.06%     
=================================================
  Files                159      159              
  Lines              27603    27624      +21     
=================================================
  Hits               21230    21230              
- Misses              6373     6394      +21     
Flag Coverage Δ
NGOv2_project_testproject_ubuntu 75.92% <ø> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
com.unity.netcode.gameobjects 76.85% <0.00%> (-0.06%) ⬇️

ℹ️ Need help interpreting these results?

@NoelStephensUnity
NoelStephensUnity enabled auto-merge (squash) October 29, 2026 16:13

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants