You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sentinel suite flakes on master: topology stand-up cascade, plus one racy lifecycle test #3650
2 of the last 6 master pushes lost CI cells, and every failure is in the sentinel suite — different matrix combos each time, all other suites green in the same jobs. Collecting the pattern here since the signatures split into two distinct problems:
A. Topology stand-up cascade — the whole suite dominoes when the sentinel docker topology doesn't produce a master in time:
4217b5e · tests (20, 8.10.0, 8.10): 12 failing — Error: no valid master node ×9 plus three 30s before-hook timeouts in sentinel/index.spec.ts. The containers spawn (logs show all six come up), but the suite starts before a master is electable, and everything after fails together.
B. One specific racy test — RedisSentinel lifecycle events › destroy() from an end listener tears down a reentrant reopen, failing AssertionError: true !== false, on two different cells of the same push:
Both commits are unrelated to sentinel (one is the #3642 cluster fix, one is a SCAN type-filter fix), and the same suites pass on the neighbouring commits — so this is the suite, not the changes.
Why it matters
A red master with this frequency trains everyone to ignore CI — I initially read the 4217b5e ❌ as my merge breaking master and spent the investigation to prove it was the sentinel harness.
Suggested split
For A, the stand-up likely needs a readiness gate on "a master is electable" (e.g. poll SENTINEL get-master-addr-by-name until it answers) instead of a fixed wait, so a slow runner shifts the start rather than failing the suite.
For B, the reentrant-reopen test looks like a genuine race in the test (or just possibly the lifecycle code) — it fails identically across Node 20/22 and Redis 8.10/8.12-rc3, which smells deterministic-under-load rather than environmental. Happy to dig into that one and send a fix; flagging A separately since it is harness territory.
Opened #3651 for signature B. It's a timing bug in the test, not the teardown: the reentrant destroy() only flips isOpen back to false after it awaits the reopen's full topology discovery, which isn't bounded by the 100ms the test slept for. The fix awaits that teardown instead of sleeping. Signature A (the stand-up cascade / before-hook timeouts) is still open — I'll keep looking at whether a readiness gate on get-master-addr-by-name settles it.
Activity
Cdineshreddy12 commentedon Nov 20, 2026
Opened #3651 for signature B. It's a timing bug in the test, not the teardown: the reentrant
destroy()only flipsisOpenback to false after it awaits the reopen's full topology discovery, which isn't bounded by the 100ms the test slept for. The fix awaits that teardown instead of sleeping. Signature A (the stand-up cascade / before-hook timeouts) is still open — I'll keep looking at whether a readiness gate onget-master-addr-by-namesettles it.nkaradzhov commentedon Nov 23, 2026
Thanks. Tracking both halves in the PRs: #3651 for the lifecycle test, #3658 for the topology stand-up.
test(sentinel): wait for an electable master before the suite starts (r…