Skip to content

Share explicit Game Session identity test fixtures - #3293

Merged
benhook1013 merged 2 commits into
developfrom
codex/gameplay-actor-fixture-published-parent-20261024
Oct 24, 2026
Merged

benhook1013 merged 2 commits into
developfrom
codex/gameplay-actor-fixture-published-parent-20261024

Conversation

@benhook1013

@benhook1013 benhook1013 commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Game Session tests repeat gameplay identity setup across command dispatch, presence, history, output, and websocket scenarios. This change provides explicit shared test fixtures and migrates those scenarios while preserving each test’s account, character, session, and runtime distinctions.

This is a test-only prerequisite after #2967 and before the corrected #2972 receiver. The comparison is exactly 36 paths against #2967 at a008da127312e075d0cd9f3d5787c02224384254; production APIs and identity representations are unchanged. It adds no compatibility constructors or UUID bridge. The subsequent UUID runtime and owner-protection implementation remains local and is outside this PR.

Validation at fd51b178273b056a7b0c7f89be854d75aaef1ef2: canonical formatting and full formatting checks passed; 231 focused unit cases, 6 PostgreSQL history cases, and 22 Communication cross-service cases passed, with zero failures, errors, or skips. This proves the fixture refactor on the actual published parent; it does not claim a new image or end-to-end creation-path proof.

FireMUD LOC impact

Compared f1bca597b8ef → 88363a38df9a (PR merge-base → head).
PR scope: 36 changed files · 606 added textual lines / 348 deleted textual lines.

Section Base LOC Head LOC Δ LOC Change
Overall 1,257,132 1,257,329 +197 +<0.1%
 Source 1,164,686 1,164,883 +197 +<0.1%
  ↳ Code 521,242 521,242 0 0.0%
  ↳ Tests 643,444 643,641 +197 +<0.1%
 Markdown 61,340 61,340 0 0.0%
 Design 64,295 64,295 0 0.0%
  ↳ Architecture 45,686 45,686 0 0.0%
  ↳ Project management 5,974 5,974 0 0.0%
  ↳ Observability 2,147 2,147 0 0.0%
  ↳ Operator runbooks 579 579 0 0.0%
  ↳ gRPC API documentation 8,433 8,433 0 0.0%
  ↳ Product requirements and user journeys 926 926 0 0.0%
  ↳ Developer workflows 471 471 0 0.0%
  ↳ Other design 79 79 0 0.0%

Rows are hierarchical and overlapping views; do not add them together.
LOC means cloc code lines; blank and comment-only lines are excluded.

@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
📥 Commits

Reviewing files that changed from the base of the PR and between a008da1 and fd51b17.

📒 Files selected for processing: 36
  • services/game-session-service/src/test/java/crossservice/net/firedevops/firemud/gamesession/CommunicationWebSocketCrossServiceTest.java
  • services/game-session-service/src/test/java/integration/net/firedevops/firemud/gamesession/repository/PlayerCommandHistoryRepositoryIntegrationTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/command/text/ActionStateCommandHandlerTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/command/text/AuthoredActionTextCommandDispatchHandlerTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/command/text/ContainerCommandHandlerTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/command/text/EquipmentCommandHandlerTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/command/text/HelpCommandHandlerTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/command/text/HelpTextCommandDispatchHandlerTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/command/text/HistoryCommandHandlerTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/command/text/HistoryTextCommandDispatchHandlerTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/command/text/InventoryCommandHandlerTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/command/text/ItemCommandHandlerTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/command/text/StatusCommandHandlerTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/command/text/TextCommandInterpreterCapabilityTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/command/text/WhoCommandHandlerTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/command/text/WorldsCommandHandlerTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/command/text/WorldsTextCommandDispatchHandlerTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/config/EffectiveCommandHistorySettingsResolverTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/config/EffectiveReconnectionSettingsResolverTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/config/EffectiveSettingsResolverTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/controller/EffectiveSettingsControllerTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/service/CommunicationRecipientDeliveryServiceTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/service/GameplayPresenceActivityResolverTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/service/PlayerCommandHistoryRetentionSweepJobTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/service/PlayerCommandHistoryStorageServiceTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/service/PlayerOutputDeliveryServiceTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/service/impl/DefaultDurableGameplayCommandExecutionServiceTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/service/impl/GameAuthoredHelpReaderImplTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/test/ChatTestFixturesTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/test/GameplayCommandTestFixturesTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/websocket/GameSessionWebSocketHandlerTest.java
  • services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/websocket/WebSocketOutputProjectorTest.java
  • services/game-session-service/src/testFixtures/java/net/firedevops/firemud/gamesession/test/ChatTestFixtures.java
  • services/game-session-service/src/testFixtures/java/net/firedevops/firemud/gamesession/test/GameplayCommandTestFixtures.java
  • services/game-session-service/src/testFixtures/java/net/firedevops/firemud/gamesession/test/GameplayHistoryTestFixtures.java
  • services/game-session-service/src/testFixtures/java/net/firedevops/firemud/gamesession/test/GameplayPresenceTestFixtures.java

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Summary

Summary

  • Added shared GameplayCommandTestFixtures, GameplayHistoryTestFixtures, and GameplayPresenceTestFixtures, and expanded ChatTestFixtures in the Game Session service’s test fixtures.
  • Migrated Game Session tests for command handling and dispatch, settings, presence, history, output delivery, communication, and WebSocket workflows to use named fixtures.
  • Added fixture tests for identity bindings, scope consistency, and mutation isolation.

Compatibility and deployment

  • No production API, identity representation, schema, migration, environment, or deployment changes are reported.

Validation

  • The author reports that formatting checks passed, along with 231 focused unit cases, 6 PostgreSQL history cases, and 22 Communication cross-service cases, with no failures, errors, or skips.
  • These results apply to the published parent commit. They do not establish validation of a new image or end-to-end creation path.

The pull request adds shared test fixtures for chat identities, gameplay contexts and commands, history scopes and entries, and presence data. It updates game-session-service tests to use those fixtures and adds checks for fixture values and isolation. The changes are limited to tests and test fixtures.

Changes: Shared game-session test fixtures

Layer / File(s) Summary
Fixture definitions and value checks
services/game-session-service/src/testFixtures/.../test/*TestFixtures.java, services/game-session-service/src/test/.../test/*Test.java
Adds named fixtures for chat, gameplay contexts and commands, history, and presence. Fixture tests check identifier bindings, related values, and isolation when a returned object is modified.
Command and settings test adoption
services/game-session-service/src/test/.../command/text/*, services/game-session-service/src/test/.../config/*, services/game-session-service/src/test/.../controller/*
Command, browsing, presence-listing, settings, and controller tests use shared fixtures instead of inline contexts or identifiers. The described test assertions remain unchanged.
Service and history test adoption
services/game-session-service/src/test/.../service/*, services/game-session-service/src/test/.../repository/*
Service, durable-command, presence, and history tests use shared contexts, scopes, entries, or presence records. The described scenarios and expectations remain unchanged.
WebSocket and chat test adoption
services/game-session-service/src/test/.../websocket/*, services/game-session-service/src/test/.../crossservice/*
WebSocket and cross-service chat tests use shared contexts and chat identity constants. The chat fixtures add a Sora recipient-session factory used by the cross-service test.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Refactor

Merge Risk: ⚪ Minimal · up to fd51b

No concrete issue is established that would prevent merging this test-fixture refactor after normal checks.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 143 functions across 36 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check Warning The description covers the purpose (test-only shared identity fixtures before the #2972 receiver), scope (36 paths against #2967), and validation results at a specific commit. It also includes a gener… Add the template sections: Summary (user/operator-visible outcome, related issue #2967/#2972 references, tracker or design doc links), What Changed (list of fixture classes added and the test classes migrated, with any contract or doc updat…
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title "Share explicit Game Session identity test fixtures" matches the main change. The PR adds shared test fixture classes (GameplayCommandTestFixtures, GameplayHistoryTestFixtures, GameplayPrese…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Share explicit Game Session identity test fixtures" matches the main change. The PR adds shared test fixture classes (GameplayCommandTestFixtures, GameplayHistoryTestFixtures, GameplayPresenceTestFixtures, and an extended ChatTestFixtures) and migrates many Game Session tests to use them. The title is concise, specific, and contains no noise.

Full details: Description check

Explanation

The description covers the purpose (test-only shared identity fixtures before the #2972 receiver), scope (36 paths against #2967), and validation results at a specific commit. It also includes a generated LOC report. It does not follow the repository template. The Summary section lacks a user or operator-visible outcome and has no tracker or design-doc references. The What Changed section has no list of main implementation areas. The Validation section lists results but not the exact commands run, and it does not mention spotlessApply, check, or linkCheck/lintMarkdown. The Notes section is missing. The Checklist is absent, including the CLA, tracker, and design-checklist items. Because the core purpose and validation are clear, the description is mostly complete in substance but not in template structure.

Resolution

Add the template sections: Summary (user/operator-visible outcome, related issue #2967/#2972 references, tracker or design doc links), What Changed (list of fixture classes added and the test classes migrated, with any contract or doc updates stated as none), Validation (exact commands run, such as ./gradlew spotlessApply, ./gradlew check, and the targeted test tasks, with their results; state whether linkCheck and lintMarkdown were run or not applicable), Notes (follow-ups such as the #2972 receiver and the local UUID runtime work, and the image-proof limitation), and the Checklist with each item checked or explicitly addressed, including the CLA item and the review-checklists item if applicable.

✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Smoke Summary

✅ Full-stack smoke completed with Smoke Gate: success

  • ✅ Changes detection: success
  • ✅ Smoke Gate: success
  • ✅ PR Full-Stack Smoke: success

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Static Analysis Summary

✅ Static analysis checks passed

  • ✅ CodeQL gate: success
  • ✅ License gate: success

CodeQL breakdown

  • ⏭️ CodeQL analysis (java): skipped
  • ⏭️ CodeQL analysis (javascript-typescript): skipped

@github-actions

Copy link
Copy Markdown
Contributor

Security Summary

✅ Security checks passed or were intentionally skipped

  • ✅ Security gate: success
  • ✅ Trivy filesystem scan: success
  • ✅ Secret compliance validation: success

@benhook1013

Copy link
Copy Markdown
Owner Author

@coderabbitai rate limit

@coderabbitai

coderabbitai Bot commented Oct 23, 2026

Copy link
Copy Markdown

Your plan includes PR reviews subject to rate limits. Reviews are available now.

@benhook1013

Copy link
Copy Markdown
Owner Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
✅ Action performed

Full review finished.

@benhook1013

benhook1013 commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner Author

CodeRabbit CLI — 0 Found, 0/0/0 Accepted (Major/Minor/Trivial), 0 Routed
36 files · 1m 02s · fd51b17

@codecov

codecov Bot commented Oct 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Validation Summary

✅ All validation checks passed

  • ✅ Validation gate: success
  • ✅ Buf generation: success
  • ✅ Dockerfile lint: success
  • ✅ ShellCheck: success
  • ✅ Python script validation: success
  • ✅ Dev tool contract checks: success
  • ⏭️ Dev Tools README contract: skipped
  • ✅ YAML lint: success
  • ✅ Metrics cardinality policy check: success
  • ✅ Flyway migration sanity checks: success
  • ✅ gRPC transport configuration sanity checks: success
  • ✅ GitHub workflow lint: success
  • ✅ Helm chart lint: success
  • ✅ Helm render validation: success
  • ✅ Helm transaction proof: success
  • ⏭️ Validate Documentation: skipped
  • ⏭️ Frontend checks: skipped
  • ✅ Service build/test matrix: success

Coverage reports and failure logs are available in the workflow artifacts.

@benhook1013

benhook1013 commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner Author

CodeRabbit Hosted — 0 Found, 0/0/0 Accepted (Major/Minor/Trivial), 0 Routed
7m 23s · fd51b17

@benhook1013

benhook1013 commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner Author

CodeRabbit CLI — 0 Found, 0/0/0 Accepted (Major/Minor/Trivial), 0 Routed
36 files · 1m 35s · fd51b17

@benhook1013

Copy link
Copy Markdown
Owner Author

@coderabbitai rate limit

@coderabbitai

coderabbitai Bot commented Oct 23, 2026

Copy link
Copy Markdown

Your plan includes PR reviews subject to rate limits. More reviews will be available in 46 minutes.

@benhook1013

benhook1013 commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner Author

CodeRabbit CLI — 0 Found, 0/0/0 Accepted (Major/Minor/Trivial), 0 Routed
36 files · 1m 42s · fd51b17

@benhook1013

Copy link
Copy Markdown
Owner Author

@coderabbitai rate limit

@coderabbitai

coderabbitai Bot commented Oct 23, 2026

Copy link
Copy Markdown

Your plan includes PR reviews subject to rate limits. Reviews are available now.

@benhook1013

Copy link
Copy Markdown
Owner Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
✅ Action performed

Full review finished.

@benhook1013

benhook1013 commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner Author

CodeRabbit Hosted — 0 Found, 0/0/0 Accepted (Major/Minor/Trivial), 0 Routed
6m 42s · fd51b17

@benhook1013
benhook1013 changed the base branch from codex/gameplay-entity-namespace-ownership-foundation to develop October 23, 2026 22:08
…meplay-actor-fixture-published-parent-20261024
@benhook1013
benhook1013 merged commit 101b28a into develop Oct 24, 2026
114 checks passed
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.

1 participant