Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce dual channel testing time #1477

Merged
merged 2 commits into from
Dec 24, 2024

Conversation

naglera
Copy link
Contributor

@naglera naglera commented Dec 23, 2024

  • By not waiting repl-diskless-sync-delay when we don't have to, we can reduce ~30% of dual channel tests execution time.
  • This commit also drops one test which is not required for regular sync (Sync should continue if not all slaves dropped).
  • Skip dual channel test with master diskless disabled because it will initiate the same synchronization process as the non-dual channel test, making it redundant.

Before:

Execution time of different units:
  171 seconds - integration/dual-channel-replication
  305 seconds - integration/replication-psync

\o/ All tests passed without errors!

After:

Execution time of different units:
  120 seconds - integration/dual-channel-replication
  236 seconds - integration/replication-psync

\o/ All tests passed without errors!

Discused on #1173

Copy link

codecov bot commented Dec 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.85%. Comparing base (d00c856) to head (513a43e).
Report is 2 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #1477      +/-   ##
============================================
- Coverage     70.86%   70.85%   -0.02%     
============================================
  Files           119      119              
  Lines         64852    64852              
============================================
- Hits          45958    45948      -10     
- Misses        18894    18904      +10     

see 12 files with indirect coverage changes

because it will initiate the same synchronization process
as the non-dual channel test, making it redundant

Signed-off-by: naglera <[email protected]>
@ranshid ranshid merged commit f1b7f30 into valkey-io:unstable Dec 24, 2024
49 checks passed
kronwerk pushed a commit to kronwerk/valkey that referenced this pull request Jan 27, 2025
- By not waiting `repl-diskless-sync-delay` when we don't have to, we
can reduce ~30% of dual channel tests execution time.
- This commit also drops one test which is not required for regular sync
(`Sync should continue if not all slaves dropped`).
- Skip dual channel test with master diskless disabled because it will
initiate the same synchronization process as the non-dual channel test,
making it redundant.


Before:
```
Execution time of different units:
  171 seconds - integration/dual-channel-replication
  305 seconds - integration/replication-psync

\o/ All tests passed without errors!
```
After:
```
Execution time of different units:
  120 seconds - integration/dual-channel-replication
  236 seconds - integration/replication-psync

\o/ All tests passed without errors!
```

Discused on valkey-io#1173

---------

Signed-off-by: naglera <[email protected]>
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.

4 participants