test: pin the confirmed_reads resolution to peer-SDK parity #90
No reviewers
Labels
No labels
area:defold
area:docs
area:infra
area:protocol
area:testing
kind:bug
kind:chore
phase:breadth
phase:core
phase:hardening
phase:slice
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
yuris/spacetimedb-defold!90
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "flip-confirmed"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Test-only. Gate 2 of #89.
stdb/init.luaalready resolvesconfirmed_readsthe way every official SpacetimeDB SDK does:nilomits theconfirmedparameter so the server's own default applies (false on v1, true on v2),falseis the explicit low-latency opt-out,trueasks for it outright. No production change here.What was missing is the pin. Nothing failed today if someone "helpfully" started writing the default out as
confirmed=false, which would silently diverge from TS/C#/Rust/Unreal. Now three assertions cover the tri-state, and the message on each names the peer-parity decision it defends, so a future regression fails a test that explains itself.The nil case was already pinned byte-for-byte and is the assertion the runner reaches first, so its message was strengthened rather than duplicated.
Proof the pin bites: patching
init.luato sendconfirmed=falsefor a nil on v2 fails withexpected …?compression=None, got …?compression=None&confirmed=false; reverted, 11 passed 0 failed.Touches only
dev/test/**, which is not in&conformance_paths— ci.yml only, no conformance run expected.