Skip to content

Backport test stability fixes to 8.0#3525

Closed
sarthakaggarwal97 wants to merge 6 commits intovalkey-io:8.0from
sarthakaggarwal97:backport-test-fixes-8.0
Closed

Backport test stability fixes to 8.0#3525
sarthakaggarwal97 wants to merge 6 commits intovalkey-io:8.0from
sarthakaggarwal97:backport-test-fixes-8.0

Conversation

@sarthakaggarwal97
Copy link
Copy Markdown
Contributor

@sarthakaggarwal97 sarthakaggarwal97 commented Apr 16, 2026

Cherry-picks of #3430, #3452, #3241, and #3263 to fix flaky tests on 8.0. Weekly CI context: https://github.com/valkey-io/valkey/actions/runs/24300553351

Cherry-pick of f3b6470 from unstable.
Skipped dual-channel-replication.tcl (lazyfree test doesn't exist on 8.0).
Resolved memefficiency.tcl: kept $rd close after CLIENT REPLY pattern.

Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
Cherry-pick of c35dbdf from unstable.

Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
Partial cherry-pick of c9ce3e0 from unstable.
Applied: list.tcl, set.tcl, violations.tcl (reduce test sizes for CI runners).
Skipped: daily.yml, test_quicklist.cpp (not applicable to 8.0).

Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
Cast r to uint32_t before left-shifting by 16 to avoid signed integer
overflow when r >= 32768. This fixes the UBSan error:
  'left shift of 36625 by 16 places cannot be represented in type int'

Already fixed on unstable via valkey-io#3241 (GoogleTest migration).

Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
Add explicit flush calls every 100 iterations in pipelining loops
to prevent TCP backpressure when sending 50,000+ commands. Without
this, the send buffer fills up and causes 'I/O error reading reply'
on slow CI runners.

This test was removed on 8.1+ but still exists on 7.2 and 8.0.

Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
Cherry-pick of 6ce75cd from unstable.
Adds verify_replica_online after wait_for_sync to prevent
'ERR FAILOVER target replica is not online' race condition.

Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
@sarthakaggarwal97
Copy link
Copy Markdown
Contributor Author

Closing because it's quite unstable.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (d77c7aa) to head (ccb12ca).

Additional details and impacted files
@@     Coverage Diff     @@
##   8.0   #3525   +/-   ##
===========================
===========================
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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