acceptance: break TestVersionUpgrade into series of upgrade steps; re-enable#22714
Conversation
|
Did you manage to work around the flakiness described in #19269? Reviewed 4 of 4 files at r1. pkg/acceptance/version_upgrade_test.go, line 158 at r1 (raw file):
Any particular reason for choosing this waypoint? pkg/acceptance/version_upgrade_test.go, line 165 at r1 (raw file):
"startingBinVersion" pkg/acceptance/version_upgrade_test.go, line 182 at r1 (raw file):
This seems like an abuse of subtests, given that pkg/acceptance/localcluster/cluster.go, line 710 at r1 (raw file):
💯 Comments from Reviewable |
|
Reviewed 4 of 4 files at r1. pkg/acceptance/version_upgrade_test.go, line 145 at r1 (raw file):
So this sleep alone was enough to make it reliably trigger the checksum problem? pkg/acceptance/version_upgrade_test.go, line 159 at r1 (raw file):
Each of these takes at least a second (since there's a sleep above), so it's going to get annoying to always go through the full history. I don't think we need all the 1.1 variants; one version per branch should be enough. pkg/acceptance/version_upgrade_test.go, line 165 at r1 (raw file):
Can't we start with 1.0 and then upgrade to 1.1 (as long as we don't touch the cluster version before the upgrade)? Comments from Reviewable |
abf9c16 to
5ad8fe4
Compare
|
Review status: 2 of 4 files reviewed at latest revision, 7 unresolved discussions, all commit checks successful. pkg/acceptance/version_upgrade_test.go, line 145 at r1 (raw file): Previously, bdarnell (Ben Darnell) wrote…
Yes, I never saw it pass with this sleep. pkg/acceptance/version_upgrade_test.go, line 158 at r1 (raw file): Previously, benesch (Nikhil Benesch) wrote…
No, I just figured it would be nice to test somewhere in the middle and these pkg/acceptance/version_upgrade_test.go, line 159 at r1 (raw file): Previously, bdarnell (Ben Darnell) wrote…
Done. pkg/acceptance/version_upgrade_test.go, line 165 at r1 (raw file): Previously, benesch (Nikhil Benesch) wrote…
Done. pkg/acceptance/version_upgrade_test.go, line 165 at r1 (raw file): Previously, bdarnell (Ben Darnell) wrote…
Done. pkg/acceptance/version_upgrade_test.go, line 182 at r1 (raw file): Previously, benesch (Nikhil Benesch) wrote…
Good point. Done. Comments from Reviewable |
…-enable See cockroachdb#15851. This change re-enables `TestVersionUpgrade`, which has been broken for at-least the past few weeks. It also verifies that the test would have caught the regression in cockroachdb#22636. In doing so, it improves `TestVersionUpgrade` by splitting the version upgrades into a series of incremental steps. Release note: None
5ad8fe4 to
15b8a81
Compare
See #15851.
This change re-enables
TestVersionUpgrade, which has been broken for at-leastthe past few weeks. It also verifies that the test would have caught the regression
in #22636.
In doing so, it improves
TestVersionUpgradeby splitting the version upgradesinto a series of incremental steps.
Release note: None