Skip to content

Fix 1771 complete#1774

Merged
oberstet merged 3 commits intocrossbario:masterfrom
oberstet:fix_1771_complete
Nov 24, 2025
Merged

Fix 1771 complete#1774
oberstet merged 3 commits intocrossbario:masterfrom
oberstet:fix_1771_complete

Conversation

@oberstet
Copy link
Copy Markdown
Contributor

Summary

This PR adds the missing commits from #1773 that were not included in the squash merge.

The original PR was merged before the final 2 commits were pushed to GitHub, resulting in incomplete FlatBuffers support.

What This Adds

Commit 1: Add FlatBuffers support for remaining WAMP messages

  • Category 3 (Forwarding Only): Cancel, Interrupt, EventReceived
  • Category 1 (Session Lifecycle): Hello, Welcome
  • Category 1 (RPC): Unregister
  • Enhanced test vector generator for EVENT_RECEIVED and roles handling

Commit 2: Bump .proto submodule

  • Updates to wamp-proto commit 2fcf809
  • Includes FlatBuffers test vectors for all remaining message types

Impact Without These Changes

Impact With These Changes

  • ✅ All 23 WAMP message types have complete FlatBuffers support
  • ✅ 529 tests passing, 0 skipped
  • ✅ 100% coverage as originally intended

Testing

just test-serdes cpy312
# 529 passed, 0 skipped, 12 warnings in 1.70s

Closes the gap left by the incomplete merge of #1773.

This commit completes FlatBuffers serialization support for the remaining
WAMP messages:

- Category 3 (Forwarding Only): Cancel, Interrupt, EventReceived
- Category 1 (Session Lifecycle): Hello, Welcome
- Category 1 (RPC): Unregister

Changes:
- Fixed Cancel, Interrupt build() methods to handle forward_for and remove
  non-existent session references
- Fixed EventReceived build() to wrap in Message union
- Added build() and cast() methods for Unregister
- Fixed Hello and Welcome build() methods to wrap in Message union
- Added MESSAGE_TYPE_MAP entries for Hello and Welcome
- Enhanced test vector generator to:
  - Support EVENT_RECEIVED message type
  - Convert dict roles to RoleFeatures instances for Hello/Welcome

Test results: 529 passed, 0 skipped, 12 warnings

Note: This work was completed with AI assistance (Claude Code).
Update wamp-proto submodule to commit 2fcf809 which includes FlatBuffers
test vectors for the remaining WAMP messages (Cancel, Interrupt,
EventReceived, Hello, Welcome, Unregister).

This completes FlatBuffers test coverage with 529 tests passing, 0 skipped.

Note: This work was completed with AI assistance (Claude Code).
@oberstet oberstet merged commit e70125b into crossbario:master Nov 24, 2025
33 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