Skip to content

Commit

Permalink
Merge pull request #23172 from def-/pr-test-4mz
Browse files Browse the repository at this point in the history
platform-checks: Workaround for broken v0.75.3
  • Loading branch information
def- authored Nov 14, 2023
2 parents 0118bb0 + c6f9c3c commit f8ee363
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions misc/python/materialize/checks/scenarios_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,15 @@ def base_version(self) -> MzVersion:
return minor_versions[-4]

def actions(self) -> list[Action]:
minor_minus_2 = minor_versions[-2]
minor_minus_1 = minor_versions[-1]
# TODO(def-) This version was bad, see #23160, can be removed after the next release
if minor_minus_2 == MzVersion.parse("0.75.3"):
minor_minus_2 = None
minor_minus_1 = None

print(
f"Upgrading going through {minor_versions[-4]} -> {minor_versions[-3]} -> {minor_versions[-2]} -> {minor_versions[-1]}"
f"Upgrading going through {minor_versions[-4]} -> {minor_versions[-3]} -> {minor_minus_2} -> {minor_minus_1}"
)
return [
StartMz(self, tag=minor_versions[-4]),
Expand All @@ -128,10 +135,10 @@ def actions(self) -> list[Action]:
StartMz(self, tag=minor_versions[-3]),
Manipulate(self, phase=1),
KillMz(),
StartMz(self, tag=minor_versions[-2]),
StartMz(self, tag=minor_minus_2),
Manipulate(self, phase=2),
KillMz(),
StartMz(self, tag=minor_versions[-1]),
StartMz(self, tag=minor_minus_1),
KillMz(),
StartMz(self, tag=None),
Validate(self),
Expand Down

0 comments on commit f8ee363

Please sign in to comment.