Skip to content

[Backport 9.0] Deflake replica selection test by relaxing cluster configurations (#2672)#2731

Merged
zuiderkwast merged 1 commit intovalkey-io:9.0from
sarthakaggarwal97:backport-2672-90
Oct 13, 2025
Merged

[Backport 9.0] Deflake replica selection test by relaxing cluster configurations (#2672)#2731
zuiderkwast merged 1 commit intovalkey-io:9.0from
sarthakaggarwal97:backport-2672-90

Conversation

@sarthakaggarwal97
Copy link
Contributor

Backport of #2672

We have relaxed the cluster-ping-interval and cluster-node-timeout so that cluster has enough time to stabilize and propagate changes.

Fixes this test occasional failure when running with valgrind:

[err]: Node #10 should eventually replicate node #5 in tests/unit/cluster/slave-selection.tcl
#10 didn't became slave of #5

…lkey-io#2672)

We have relaxed the `cluster-ping-interval` and `cluster-node-timeout`
so that cluster has enough time to stabilize and propagate changes.

Fixes this test occasional failure when running with valgrind:

    [err]: Node #10 should eventually replicate node #5 in tests/unit/cluster/slave-selection.tcl
    #10 didn't became slave of #5

Signed-off-by: Sarthak Aggarwal <[email protected]>
@codecov
Copy link

codecov bot commented Oct 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.56%. Comparing base (128f30b) to head (ce3a154).
⚠️ Report is 1 commits behind head on 9.0.

Additional details and impacted files
@@            Coverage Diff             @@
##              9.0    #2731      +/-   ##
==========================================
- Coverage   72.64%   72.56%   -0.08%     
==========================================
  Files         128      128              
  Lines       71241    71241              
==========================================
- Hits        51751    51697      -54     
- Misses      19490    19544      +54     

see 13 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.

@zuiderkwast zuiderkwast merged commit 6700272 into valkey-io:9.0 Oct 13, 2025
64 of 67 checks passed
@enjoy-binbin
Copy link
Member

why do we need to open a separate PR to backport it? Marking the project label?

@zuiderkwast
Copy link
Contributor

@enjoy-binbin We don't have to do this, but if we do it then we don't need to cherry-pick it. It is more useful if there is a large merge conflict or if the PR needs to be rewritten much.

@enjoy-binbin
Copy link
Member

What bothers me is that some commits are doing this and some are not.

This one we can see is absolutely no problem (no conflict at all) with the pick, so what strategy do we base this on? Everytime a PR marked with the project, we ask the author to open a new PR to do the backport and review it?

I still like this way: we pick everything into a final release PR so everyone can see which commits are included in the new release. Some commits are in the release notes, while others are not, but they are visible in the release PR.

I do agree the conflicts is painful, but that is something we always need to deal with (I just hope.

@zuiderkwast
Copy link
Contributor

I still like this way: we pick everything into a final release PR so everyone can see which commits are included in the new release. Some commits are in the release notes, while others are not, but they are visible in the release PR.

We have discussed this sometimes in the past that it is too much manual work to make a patch release. Sometimes, the patch release has been delayed a long time because there are conflicts and also failing tests in the release branch. Therefore, we have discussed to make the backporting more proactively, maybe even create some bot that can open backporting PRs.

For example, this one: #2210 it was originally meant to be 8.0.4 but then there were some CVE fixes that had to be release quickly, so they were released separately in #2316 and the ongoing backporting PR was ignored. Finally, I finished that big backporting PR and completed the released more than two months later with new number 8.0.5.

@enjoy-binbin
Copy link
Member

We had a lot of conflicts before because we were doing a lot of formatting/refactoring related stuff. Can the robot handle conflicts well? I don't think so...

So it either relies on the author to rewrite it, or relies on other senior maintainers to deal with the conflict. We can ask for help, let the author init the backport PR against the release PR.

Anyway, it is indeed a burden, do what you think is right.

By the way, the test also exists in all the release branch (8.0/8.1)

@zuiderkwast
Copy link
Contributor

By the way, the test also exists in all the release branch (8.0/8.1)

Oh! I only saw #2672 was marked To Be Backported in 9.0, so when I merged this PR I changed it to Done.

If we want it to be backported to 8.0 and 8.1, we must mark it for 8.0 and 8.1 projects To Be Backported. Otherwise we will forget to backport it.

Anyway, it is indeed a burden, do what you think is right.

I think we can do a mix of both ways, but if we do separate backport PRs like this one, they need to include the release notes changes too in the same PR (if they need release notes, but this one doesn't), to make sure we don't forget those release notes and we move it to Done. Later, when we do the release, we handle all the PRs that are still marked as To Be Backported.

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.

3 participants