Skip to content

Comments

Fix flaky DBSIZE test for atomic slot migration#2805

Merged
zuiderkwast merged 2 commits intovalkey-io:unstablefrom
yzc-yzc:exclude_importing_keys_flaky
Nov 6, 2025
Merged

Fix flaky DBSIZE test for atomic slot migration#2805
zuiderkwast merged 2 commits intovalkey-io:unstablefrom
yzc-yzc:exclude_importing_keys_flaky

Conversation

@yzc-yzc
Copy link
Contributor

@yzc-yzc yzc-yzc commented Nov 5, 2025

Related test failures:
https://github.com/valkey-io/valkey/actions/runs/19086881915/job/54528997473
https://github.com/valkey-io/valkey/actions/runs/18892904243/job/53924295239

*** [err]: Replica importing key containment (slot 0 from node 0 to 2) - DBSIZE command excludes importing keys in tests/unit/cluster/cluster-migrateslots.tcl
Expected '1' to match '0' (context: type eval line 2 cmd {assert_match "0" [R $node_idx DBSIZE]} proc ::test)

The reason is that we don't wait for the primary-replica synchronization to complete before starting the next testcase.

Signed-off-by: yzc-yzc <96833212+yzc-yzc@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Nov 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.41%. Comparing base (c88c94e) to head (0605a01).
⚠️ Report is 4 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #2805      +/-   ##
============================================
- Coverage     72.43%   72.41%   -0.02%     
============================================
  Files           128      128              
  Lines         70245    70270      +25     
============================================
+ Hits          50880    50888       +8     
- Misses        19365    19382      +17     

see 20 files with indirect coverage changes

🚀 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.

Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
Signed-off-by: yzc-yzc <96833212+yzc-yzc@users.noreply.github.com>
@zuiderkwast
Copy link
Contributor

@sarthakaggarwal97 FYI. You keep track of flaky tests? Backport this one to 9.0?

@sarthakaggarwal97
Copy link
Contributor

@zuiderkwast yess, once this is merged, let's backport it.

@sarthakaggarwal97 sarthakaggarwal97 moved this to To be backported in Valkey 9.0 Nov 6, 2025
@zuiderkwast zuiderkwast merged commit 37d08d3 into valkey-io:unstable Nov 6, 2025
55 checks passed
zhijun42 pushed a commit to zhijun42/valkey that referenced this pull request Nov 15, 2025
Related test failures: 

    *** [err]: Replica importing key containment (slot 0 from node 0 to 2) - DBSIZE command excludes importing keys in tests/unit/cluster/cluster-migrateslots.tcl
    Expected '1' to match '0' (context: type eval line 2 cmd {assert_match "0" [R $node_idx DBSIZE]} proc ::test)

The reason is that we don't wait for the primary-replica synchronization
to complete before starting the next testcase.

---------

Signed-off-by: yzc-yzc <96833212+yzc-yzc@users.noreply.github.com>
Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
zhijun42 pushed a commit to zhijun42/valkey that referenced this pull request Nov 15, 2025
Related test failures: 

    *** [err]: Replica importing key containment (slot 0 from node 0 to 2) - DBSIZE command excludes importing keys in tests/unit/cluster/cluster-migrateslots.tcl
    Expected '1' to match '0' (context: type eval line 2 cmd {assert_match "0" [R $node_idx DBSIZE]} proc ::test)

The reason is that we don't wait for the primary-replica synchronization
to complete before starting the next testcase.

---------

Signed-off-by: yzc-yzc <96833212+yzc-yzc@users.noreply.github.com>
Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
zhijun42 pushed a commit to zhijun42/valkey that referenced this pull request Nov 28, 2025
Related test failures: 

    *** [err]: Replica importing key containment (slot 0 from node 0 to 2) - DBSIZE command excludes importing keys in tests/unit/cluster/cluster-migrateslots.tcl
    Expected '1' to match '0' (context: type eval line 2 cmd {assert_match "0" [R $node_idx DBSIZE]} proc ::test)

The reason is that we don't wait for the primary-replica synchronization
to complete before starting the next testcase.

---------

Signed-off-by: yzc-yzc <96833212+yzc-yzc@users.noreply.github.com>
Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
zhijun42 pushed a commit to zhijun42/valkey that referenced this pull request Nov 28, 2025
Related test failures: 

    *** [err]: Replica importing key containment (slot 0 from node 0 to 2) - DBSIZE command excludes importing keys in tests/unit/cluster/cluster-migrateslots.tcl
    Expected '1' to match '0' (context: type eval line 2 cmd {assert_match "0" [R $node_idx DBSIZE]} proc ::test)

The reason is that we don't wait for the primary-replica synchronization
to complete before starting the next testcase.

---------

Signed-off-by: yzc-yzc <96833212+yzc-yzc@users.noreply.github.com>
Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
zhijun42 pushed a commit to zhijun42/valkey that referenced this pull request Nov 28, 2025
Related test failures: 

    *** [err]: Replica importing key containment (slot 0 from node 0 to 2) - DBSIZE command excludes importing keys in tests/unit/cluster/cluster-migrateslots.tcl
    Expected '1' to match '0' (context: type eval line 2 cmd {assert_match "0" [R $node_idx DBSIZE]} proc ::test)

The reason is that we don't wait for the primary-replica synchronization
to complete before starting the next testcase.

---------

Signed-off-by: yzc-yzc <96833212+yzc-yzc@users.noreply.github.com>
Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
@zuiderkwast zuiderkwast moved this from To be backported to 9.0.1 (WIP) in Valkey 9.0 Dec 4, 2025
zuiderkwast added a commit to zuiderkwast/placeholderkv that referenced this pull request Dec 4, 2025
Related test failures: 

    *** [err]: Replica importing key containment (slot 0 from node 0 to 2) - DBSIZE command excludes importing keys in tests/unit/cluster/cluster-migrateslots.tcl
    Expected '1' to match '0' (context: type eval line 2 cmd {assert_match "0" [R $node_idx DBSIZE]} proc ::test)

The reason is that we don't wait for the primary-replica synchronization
to complete before starting the next testcase.

---------

Signed-off-by: yzc-yzc <96833212+yzc-yzc@users.noreply.github.com>
Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
zuiderkwast added a commit that referenced this pull request Dec 9, 2025
Related test failures: 

    *** [err]: Replica importing key containment (slot 0 from node 0 to 2) - DBSIZE command excludes importing keys in tests/unit/cluster/cluster-migrateslots.tcl
    Expected '1' to match '0' (context: type eval line 2 cmd {assert_match "0" [R $node_idx DBSIZE]} proc ::test)

The reason is that we don't wait for the primary-replica synchronization
to complete before starting the next testcase.

---------

Signed-off-by: yzc-yzc <96833212+yzc-yzc@users.noreply.github.com>
Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 9.0.1

Development

Successfully merging this pull request may close these issues.

3 participants