test(integ-test): stabilize stream-order commands across shards - #5729
test(integ-test): stabilize stream-order commands across shards#5729mengweieric wants to merge 1 commit into
Conversation
Use deterministic streams for exact order-sensitive semantics and membership/cardinality assertions for representative selection. Preserve real multi-shard property coverage without changing production behavior. Signed-off-by: Eric Wei <menwe@amazon.com>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Summary
Several Streamstats, Reverse, Dedup, and Patterns tests relied on the incidental encounter order of a single-shard index. On multiple shards, the commands returned valid results for a different stream order and the tests asserted different row content.
This change uses deterministic
makeresultsstreams where exact order is part of the test, and membership/cardinality assertions where representative selection is not defined. Real multi-shard index coverage remains through order-independent property checks. Tests that require nullable numeric streams or expose known engine gaps are intentionally unchanged.No production behavior is modified.
Validation
spotlessCheck,compileTestJava, andgit diff --checkpass