Skip to content

roachtest: port decommission/mixed-versions#131252

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
renatolabs:rc/roachtest-port-decommission-mixed-versions
Sep 25, 2024
Merged

roachtest: port decommission/mixed-versions#131252
craig[bot] merged 1 commit intocockroachdb:masterfrom
renatolabs:rc/roachtest-port-decommission-mixed-versions

Conversation

@renatolabs
Copy link
Copy Markdown

This commit ports the decommission/mixed-versions roachtest to use the mixedversion framework (instead of the old newUpgradeTest API). It also updates acceptance/decommission-self since both tests used shared functionality that needed to be updated. Prior to this commit, the acceptance test used the old upgrade test API even though it was not an upgrade test.

Fixes: #110531
Fixes: #110530

Release note: None

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@renatolabs renatolabs force-pushed the rc/roachtest-port-decommission-mixed-versions branch 2 times, most recently from 8dc822a to 083ca0c Compare September 23, 2024 23:06
@renatolabs renatolabs marked this pull request as ready for review September 24, 2024 17:19
@renatolabs renatolabs requested a review from a team as a code owner September 24, 2024 17:19
@renatolabs renatolabs requested review from nameisbhaskar and vidit-bhat and removed request for a team September 24, 2024 17:19
@renatolabs
Copy link
Copy Markdown
Author

decommission/mixed-versions passed 5 times on this branch: link.

With this PR, we'll be very close to being able to remove the old upgrade test API and close #110528.

// considered suspect unnecessarily.
sleepStep(2*suspectDuration),

// Partially decommission a random node from another random node. We
Copy link
Copy Markdown
Contributor

@DarrylWong DarrylWong Sep 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was reasoning for getting rid of the randomness in node choice here? It also means we won't ever do a self decommission in this test right?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly because the randomness is now "built-in". In each run of this test, the versions running on n1 and n2 could be any combination of {old, new} x {old, new}.

Good catch on self decommission, I added that in.

@renatolabs renatolabs force-pushed the rc/roachtest-port-decommission-mixed-versions branch from 083ca0c to ecbd7b3 Compare September 25, 2024 14:47
This commit ports the `decommission/mixed-versions` roachtest to use
the `mixedversion` framework (instead of the old `newUpgradeTest`
API). It also updates `acceptance/decommission-self` since both tests
used shared functionality that needed to be updated. Prior to this
commit, the acceptance test used the old upgrade test API even though
it was not an upgrade test.

Fixes: cockroachdb#110531
Fixes: cockroachdb#110530

Release note: None
@renatolabs renatolabs force-pushed the rc/roachtest-port-decommission-mixed-versions branch from ecbd7b3 to b6b6db6 Compare September 25, 2024 14:50
@srosenberg srosenberg self-requested a review September 25, 2024 16:40
Copy link
Copy Markdown
Contributor

@DarrylWong DarrylWong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@renatolabs
Copy link
Copy Markdown
Author

5 more runs passed after the change to add --self.

FYI @cockroachdb/kv: the decommissions/mixed-versions test was changed to use the mixedversion framework instead of the old API. I ran the test 10 times on this branch and they all passed, so I expect everything to be working well, but if you see any weird failures over the next few days, let me know.

TFTR!

bors r=srosenberg,DarrylWong

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Sep 25, 2024

@craig craig bot merged commit d0d6033 into cockroachdb:master Sep 25, 2024
@renatolabs renatolabs deleted the rc/roachtest-port-decommission-mixed-versions branch September 26, 2024 16:26
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.

roachtest: port decommission/mixed-versions to new mixed-version framework roachtest: stop using versionUpgradeTest in acceptance/decommission-self

4 participants