test: make omitted cluster comments optional - #6022
Conversation
📝 WalkthroughWalkthroughThe cluster simulator now tracks whether ChangesOptional cluster-simulator comments
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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. Comment |
Code Review ✅ ApprovedMakes omitted cluster-simulator comments optional by treating them as wildcards while preserving exact comparison for explicitly provided comments. No issues found. OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## v3.0 #6022 +/- ##
==========================================
- Coverage 53.06% 53.04% -0.02%
==========================================
Files 478 478
Lines 143736 143736
Branches 36348 36348
==========================================
- Hits 76267 76244 -23
- Misses 50559 50584 +25
+ Partials 16910 16908 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|



Summary
commentin expected cluster-simulator states as a wildcardcommentis explicitly present, including an empty stringRoot cause
The Galera simulator payloads intentionally omit optional server comments. Runtime rows can retain generated comments such as
node_127.1.1.x, but the parser previously converted an omitted expected comment to an empty string and the matcher compared it unconditionally. This made the first Galera payload depend on startup state and produced a checksum mismatch even though every asserted field matched.This failure was observed while investigating PR #6017, but that PR does not modify the simulator. This fix is intentionally isolated.
Semantics
Validation
-j32common_utils_unit-t: 9/9cluster_sim_galera-g1: 5/5, repeated in two fresh isolated environmentscluster_sim_read_only-g1: 9/9shellcheck test/infra/control/cluster-simulator-ci.bashgit diff --checkSummary by CodeRabbit
New Features
Documentation
Tests