Repository navigation
Fix several test-harness issues that can cause flaky failures. - #4805
Conversation
…eading diagnostics: - Treat a replica LOADING reply as a pending result while waiting for a value to propagate, but re-raise every other command error instead of masking it. - Include the replica reply from the final propagation attempt in the timeout diagnostic. - Wait for the client passed to csvdump to finish loading before issuing commands through any of its accessors. - Expand list-form client commands correctly in wait_done_loading. - Reset the ready-message counter after a port collision so logs from the replacement server are checked from the beginning. - Correct the faster-failover retry predicate so it requires both expected replicas to become secondaries. Signed-off-by: artikell <[email protected]>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe changes update test helpers for busy-port startup retries, replica propagation and loading checks, and a cluster failover recovery condition. ChangesReplica Readiness
Server Startup Retry
Cluster Failover Test
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: Merge Risk: ⚪ Minimal · up to The reviewed test-helper and failover changes have no supported merge-blocking risk in the available evidence. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## unstable #4805 +/- ##
============================================
+ Coverage 80.68% 80.70% +0.02%
============================================
Files 194 194
Lines 101154 101154
============================================
+ Hits 81612 81641 +29
+ Misses 19542 19513 -29 🚀 New features to boost your workflow:
|
Fix several test-harness issues that can cause flaky failures or misleading diagnostics: - Treat a replica LOADING reply as a pending result while waiting for a value to propagate, but re-raise every other command error instead of masking it. - Include the replica reply from the final propagation attempt in the timeout diagnostic. - Wait for the client passed to csvdump to finish loading before issuing commands through any of its accessors. - Expand list-form client commands correctly in wait_done_loading. - Reset the ready-message counter after a port collision so logs from the replacement server are checked from the beginning. - Correct the faster-failover retry predicate so it requires both expected replicas to become secondaries. Signed-off-by: artikell <[email protected]> Backport-Source-PR: 4805
Fix several test-harness issues that can cause flaky failures or misleading diagnostics: - Treat a replica LOADING reply as a pending result while waiting for a value to propagate, but re-raise every other command error instead of masking it. - Include the replica reply from the final propagation attempt in the timeout diagnostic. - Wait for the client passed to csvdump to finish loading before issuing commands through any of its accessors. - Expand list-form client commands correctly in wait_done_loading. - Reset the ready-message counter after a port collision so logs from the replacement server are checked from the beginning. - Correct the faster-failover retry predicate so it requires both expected replicas to become secondaries. Signed-off-by: artikell <[email protected]> Backport-Source-PR: 4805
Backport only the port-collision fix from the merged test-harness PR. When a fixture reuses its log directory, start_server remembers the ready messages from earlier instances. A bind collision truncates that log before retrying, so the remembered count must also be reset. Otherwise a healthy replacement server can wait indefinitely for messages that were removed. The 9.1 Fedora Rawhide TLS-module Daily reproduced this in integration/aof. Keep the existing port retry, readiness checks and test assertions. This changes only the test harness; no server behavior or persistence code changes. Signed-off-by: artikell <[email protected]> Backport-Source-PR: 4805 Backport-Source-Commit: 8afe238 Backport-Adaptation: Only the ready-counter fix; other source PR fixes excluded. CI-Fix-Job: test-fedorarawhide-tls-module CI-Fix-Run: https://github.com/sarthakaggarwal97/valkey/actions/runs/44083901018
Backport only the port-collision fix from the merged test-harness PR. When a fixture reuses its log directory, start_server remembers the ready messages from earlier instances. A bind collision truncates that log before retrying, so the remembered count must also be reset. Otherwise a healthy replacement server can wait indefinitely for messages that were removed. The 9.1 Fedora Rawhide TLS-module Daily reproduced this in integration/aof. Keep the existing port retry, readiness checks and test assertions. This changes only the test harness; no server behavior or persistence code changes. Signed-off-by: artikell <[email protected]> Backport-Source-PR: 4805 Backport-Source-Commit: 8afe238 Backport-Adaptation: Only the ready-counter fix; other source PR fixes excluded. CI-Fix-Job: test-fedorarawhide-tls-module CI-Fix-Run: https://github.com/sarthakaggarwal97/valkey/actions/runs/44083901018
Backport only the port-collision fix from the merged test-harness PR. When a fixture reuses its log directory, start_server remembers the ready messages from earlier instances. A bind collision truncates that log before retrying, so the remembered count must also be reset. Otherwise a healthy replacement server can wait indefinitely for messages that were removed. The 9.1 Fedora Rawhide TLS-module Daily reproduced this in integration/aof. Keep the existing port retry, readiness checks and test assertions. This changes only the test harness; no server behavior or persistence code changes. Signed-off-by: artikell <[email protected]> Backport-Source-PR: 4805 Backport-Source-Commit: 8afe238 Backport-Adaptation: Only the ready-counter fix; other source PR fixes excluded. CI-Fix-Job: test-fedorarawhide-tls-module CI-Fix-Run: https://github.com/sarthakaggarwal97/valkey/actions/runs/44083901018
Backport only the port-collision fix from the merged test-harness PR. When a fixture reuses its log directory, start_server remembers the ready messages from earlier instances. A bind collision truncates that log before retrying, so the remembered count must also be reset. Otherwise a healthy replacement server can wait indefinitely for messages that were removed. The 9.1 Fedora Rawhide TLS-module Daily reproduced this in integration/aof. Keep the existing port retry, readiness checks and test assertions. This changes only the test harness; no server behavior or persistence code changes. Signed-off-by: artikell <[email protected]> Backport-Source-PR: 4805 Backport-Source-Commit: 8afe238 Backport-Adaptation: Only the ready-counter fix; other source PR fixes excluded. CI-Fix-Job: test-fedorarawhide-tls-module CI-Fix-Run: https://github.com/sarthakaggarwal97/valkey/actions/runs/44083901018
Backport only the port-collision fix from the merged test-harness PR. When a fixture reuses its log directory, start_server remembers the ready messages from earlier instances. A bind collision truncates that log before retrying, so the remembered count must also be reset. Otherwise a healthy replacement server can wait indefinitely for messages that were removed. The 9.1 Fedora Rawhide TLS-module Daily reproduced this in integration/aof. Keep the existing port retry, readiness checks and test assertions. This changes only the test harness; no server behavior or persistence code changes. Signed-off-by: artikell <[email protected]> Backport-Source-PR: 4805 Backport-Source-Commit: 8afe238 Backport-Adaptation: Only the ready-counter fix; other source PR fixes excluded. CI-Fix-Job: test-fedorarawhide-tls-module CI-Fix-Run: https://github.com/sarthakaggarwal97/valkey/actions/runs/44083901018
Backport only the port-collision fix from the merged test-harness PR. When a fixture reuses its log directory, start_server remembers the ready messages from earlier instances. A bind collision truncates that log before retrying, so the remembered count must also be reset. Otherwise a healthy replacement server can wait indefinitely for messages that were removed. The 9.1 Fedora Rawhide TLS-module Daily reproduced this in integration/aof. Keep the existing port retry, readiness checks and test assertions. This changes only the test harness; no server behavior or persistence code changes. Signed-off-by: artikell <[email protected]> Backport-Source-PR: 4805 Backport-Source-Commit: 8afe238 Backport-Adaptation: Only the ready-counter fix; other source PR fixes excluded. CI-Fix-Job: test-fedorarawhide-tls-module CI-Fix-Run: https://github.com/sarthakaggarwal97/valkey/actions/runs/44083901018
Backport only the port-collision fix from the merged test-harness PR. When a fixture reuses its log directory, start_server remembers the ready messages from earlier instances. A bind collision truncates that log before retrying, so the remembered count must also be reset. Otherwise a healthy replacement server can wait indefinitely for messages that were removed. The 9.1 Fedora Rawhide TLS-module Daily reproduced this in integration/aof. Keep the existing port retry, readiness checks and test assertions. This changes only the test harness; no server behavior or persistence code changes. Signed-off-by: artikell <[email protected]> Backport-Source-PR: 4805 Backport-Source-Commit: 8afe238 Backport-Adaptation: Only the ready-counter fix; other source PR fixes excluded. CI-Fix-Job: test-fedorarawhide-tls-module CI-Fix-Run: https://github.com/sarthakaggarwal97/valkey/actions/runs/44083901018
Backport only the port-collision fix from the merged test-harness PR. When a fixture reuses its log directory, start_server remembers the ready messages from earlier instances. A bind collision truncates that log before retrying, so the remembered count must also be reset. Otherwise a healthy replacement server can wait indefinitely for messages that were removed. The 9.1 Fedora Rawhide TLS-module Daily reproduced this in integration/aof. Keep the existing port retry, readiness checks and test assertions. This changes only the test harness; no server behavior or persistence code changes. Signed-off-by: artikell <[email protected]> Backport-Source-PR: 4805 Backport-Source-Commit: 8afe238 Backport-Adaptation: Only the ready-counter fix; other source PR fixes excluded. CI-Fix-Job: test-fedorarawhide-tls-module CI-Fix-Run: https://github.com/sarthakaggarwal97/valkey/actions/runs/44083901018
Backport only the port-collision fix from the merged test-harness PR. When a fixture reuses its log directory, start_server remembers the ready messages from earlier instances. A bind collision truncates that log before retrying, so the remembered count must also be reset. Otherwise a healthy replacement server can wait indefinitely for messages that were removed. The 9.1 Fedora Rawhide TLS-module Daily reproduced this in integration/aof. Keep the existing port retry, readiness checks and test assertions. This changes only the test harness; no server behavior or persistence code changes. Signed-off-by: artikell <[email protected]> Backport-Source-PR: 4805 Backport-Source-Commit: 8afe238 Backport-Adaptation: Only the ready-counter fix; other source PR fixes excluded. CI-Fix-Job: test-fedorarawhide-tls-module CI-Fix-Run: https://github.com/sarthakaggarwal97/valkey/actions/runs/44083901018
Backport only the port-collision fix from the merged test-harness PR. When a fixture reuses its log directory, start_server remembers the ready messages from earlier instances. A bind collision truncates that log before retrying, so the remembered count must also be reset. Otherwise a healthy replacement server can wait indefinitely for messages that were removed. The 9.1 Fedora Rawhide TLS-module Daily reproduced this in integration/aof. Keep the existing port retry, readiness checks and test assertions. This changes only the test harness; no server behavior or persistence code changes. Signed-off-by: artikell <[email protected]> Backport-Source-PR: 4805 Backport-Source-Commit: 8afe238 Backport-Adaptation: Only the ready-counter fix; other source PR fixes excluded. CI-Fix-Job: test-fedorarawhide-tls-module CI-Fix-Run: https://github.com/sarthakaggarwal97/valkey/actions/runs/44083901018
Backport only the port-collision fix from the merged test-harness PR. When a fixture reuses its log directory, start_server remembers the ready messages from earlier instances. A bind collision truncates that log before retrying, so the remembered count must also be reset. Otherwise a healthy replacement server can wait indefinitely for messages that were removed. The 9.1 Fedora Rawhide TLS-module Daily reproduced this in integration/aof. Keep the existing port retry, readiness checks and test assertions. This changes only the test harness; no server behavior or persistence code changes. Signed-off-by: artikell <[email protected]> Backport-Source-PR: 4805 Backport-Source-Commit: 8afe238 Backport-Adaptation: Only the ready-counter fix; other source PR fixes excluded. CI-Fix-Job: test-fedorarawhide-tls-module CI-Fix-Run: https://github.com/sarthakaggarwal97/valkey/actions/runs/44083901018
Backport only the port-collision fix from the merged test-harness PR. When a fixture reuses its log directory, start_server remembers the ready messages from earlier instances. A bind collision truncates that log before retrying, so the remembered count must also be reset. Otherwise a healthy replacement server can wait indefinitely for messages that were removed. The 9.1 Fedora Rawhide TLS-module Daily reproduced this in integration/aof. Keep the existing port retry, readiness checks and test assertions. This changes only the test harness; no server behavior or persistence code changes. Signed-off-by: artikell <[email protected]> Backport-Source-PR: 4805 Backport-Source-Commit: 8afe238 Backport-Adaptation: Only the ready-counter fix; other source PR fixes excluded. CI-Fix-Job: test-fedorarawhide-tls-module CI-Fix-Run: https://github.com/sarthakaggarwal97/valkey/actions/runs/44083901018
Fix several test-harness issues that can cause flaky failures or misleading diagnostics: