Repository navigation
Fix flaky XREADGROUP BLOCK CLAIM tests - #16119
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## unstable #16119 +/- ##
============================================
+ Coverage 78.03% 78.43% +0.40%
============================================
Files 156 156
Lines 93049 95120 +2071
============================================
+ Hits 72607 74610 +2003
- Misses 20442 20510 +68 🚀 New features to boost your workflow:
|
sundb
reviewed
Oct 29, 2026
sundb
approved these changes
Oct 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two
stream-cgroups.tcltests block withCLAIM 1000and expect XNACK or XADD to wake the client before the entries become claimable by idle time. If the command arrives about 1 s late (a slow runner, or a helper that sleeps instead of polling), the idle claim wins and the test fails. This is a test-only change.Changes
Raise the CLAIM threshold in both tests (
tests/unit/type/stream-cgroups.tcl)BLOCK 5000 CLAIM 1000is nowBLOCK 20000 CLAIM 10000, so only XNACK or XADD can wake the client. The XNACK test now also fails if XNACK stops waking the client; before, the idle timer hid that.Tighten the new-message test (
tests/unit/type/stream-cgroups.tcl)It now asserts that the returned entry is
2-0. The# commentafterafter 100is removed: Tcl treated it as arguments, so the sleep never ran.Note
Low Risk
Changes are limited to integration tests; no server or production code paths are modified.
Overview
Test-only hardening in
tests/unit/type/stream-cgroups.tclfor two blockingXREADGROUP … BLOCK … CLAIMcases that were racing with a 1s idle-claim threshold on slow runners.Both tests now use
BLOCK 20000 CLAIM 10000instead ofBLOCK 5000 CLAIM 1000, so the blocked client should unblock only from XADD or XNACK, not from pending entries becoming claimable by idle time.The “new message before min-idle-time” test also fixes
after 100 ;# …(space before#broke the sleep in Tcl) and asserts the returned ID is2-0, so a pass means the new entry woke the client, not an idle claim of1-0.Reviewed by Cursor Bugbot for commit 8f25a45. Bugbot is set up for automated code reviews on this repo. Configure here.