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

testutils: return predecessor history from least to most recent #106718

Merged

Conversation

renatolabs
Copy link
Contributor

In #105231, the order returned by the predecessor history function was inadvertently changed: instead of returning a slice from oldest to newest release, the order was instead reversed (newest to oldest).

That breaks the (currently only) caller of PredecessorHistory with a parameter greater than 1: tpcc/mixed-headroom/multiple-upgrades. As a result, it would attempt an impossible upgrade path from a 23.1 release to a 22.2 release.

This commit fixes the API by returning the release histories from oldest to newest as expected, as this is the more sensible API.

Fixes: #106716

Release note: None

In cockroachdb#105231, the order returned by the predecessor history function was
inadvertently changed: instead of returning a slice from oldest to
newest release, the order was instead reversed (newest to oldest).

That breaks the (currently only) caller of `PredecessorHistory` with a
parameter greater than 1: `tpcc/mixed-headroom/multiple-upgrades`. As
a result, it would attempt an impossible upgrade path from a 23.1
release to a 22.2 release.

This commit fixes the API by returning the release histories from
oldest to newest as expected, as this is the more sensible API.

Fixes: cockroachdb#106716

Release note: None
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@renatolabs renatolabs requested review from a team, srosenberg and smg260 and removed request for a team July 12, 2023 20:07
@renatolabs
Copy link
Contributor Author

TFTR!

bors r=srosenberg

@craig
Copy link
Contributor

craig bot commented Jul 13, 2023

Build succeeded:

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: tpcc/mixed-headroom/multiple-upgrades/n5cpu16 failed
3 participants