Skip to content

[fix] stabilize flaky Tcl CI test cases#434

Open
warrick1016 wants to merge 25 commits into
mainfrom
fix/flaky_626
Open

[fix] stabilize flaky Tcl CI test cases#434
warrick1016 wants to merge 25 commits into
mainfrom
fix/flaky_626

Conversation

@warrick1016

Copy link
Copy Markdown
Collaborator
  • tests/integration/redis-cli.tcl: fix "Scan mode" where CI could see Expected '1000' to be equal to '1001' by counting unique keys from redis-cli --scan output instead of raw SCAN entries.
  • tests/unit/client-evict.tcl: fix "evict clients only until below limit" by deriving maxmemory-tracking-clients from observed per-client tot-mem instead of requiring a 0.99..1.01 allocator ratio.
  • tests/unit/client-evict.tcl: harden "client evicted due to output buf" by waiting for async disconnect after output buffer overflow before asserting the client is gone.
  • tests/swap/unit/expire.tcl: replace fixed sleeps with state-based waits and slightly longer TTL windows to reduce CI timing flakes.
  • tests/swap/unit/swap_thread.tcl: make auto-scale-down check atomic with MULTI/EXEC to avoid background timer races.

@warrick1016 warrick1016 force-pushed the fix/flaky_626 branch 2 times, most recently from 8a9845a to 801a302 Compare July 7, 2026 09:40
- tests/integration/redis-cli.tcl: fix "Scan mode" where CI could see
  Expected '1000' to be equal to '1001' by counting unique keys from
  redis-cli --scan output instead of raw SCAN entries.
- tests/unit/client-evict.tcl: fix "evict clients only until below
  limit" by deriving maxmemory-tracking-clients from observed
  per-client tot-mem instead of requiring a 0.99..1.01 allocator ratio.
- tests/unit/client-evict.tcl: harden "client evicted due to output
  buf" by waiting for async disconnect after output buffer overflow
  before asserting the client is gone.
- tests/swap/unit/expire.tcl: replace fixed sleeps with state-based
  waits and slightly longer TTL windows to reduce CI timing flakes.
- tests/swap/unit/swap_thread.tcl: make auto-scale-down check atomic
  with MULTI/EXEC to avoid background timer races.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant