Skip to content

Commit 368813f

Browse files
authored
Merge pull request #31081 from def-/pr-legacy-upgrade-2
legacy upgrade test: Ignore missing version in Test pipeline
2 parents ed0b407 + 8195398 commit 368813f

File tree

3 files changed

+36
-13
lines changed

3 files changed

+36
-13
lines changed

ci/nightly/pipeline.template.yml

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1564,16 +1564,31 @@ steps:
15641564
- ./ci/plugins/mzcompose:
15651565
composition: balancerd
15661566

1567-
- id: legacy-upgrade
1568-
label: Legacy upgrade tests (last version from git)
1569-
depends_on: build-aarch64
1570-
timeout_in_minutes: 60
1571-
plugins:
1572-
- ./ci/plugins/mzcompose:
1573-
composition: legacy-upgrade
1574-
args: ["--versions-source=git"]
1575-
agents:
1576-
queue: hetzner-aarch64-4cpu-8gb
1567+
- group: Legacy upgrade tests
1568+
key: legacy-upgrade
1569+
steps:
1570+
- id: legacy-upgrade-git
1571+
label: Legacy upgrade tests (last version from git)
1572+
depends_on: build-aarch64
1573+
timeout_in_minutes: 60
1574+
plugins:
1575+
- ./ci/plugins/mzcompose:
1576+
composition: legacy-upgrade
1577+
args: ["--versions-source=git"]
1578+
agents:
1579+
queue: hetzner-aarch64-4cpu-8gb
1580+
1581+
- id: legacy-upgrade-docs
1582+
label: "Legacy upgrade tests (last version from docs)"
1583+
parallelism: 2
1584+
depends_on: build-aarch64
1585+
timeout_in_minutes: 60
1586+
plugins:
1587+
- ./ci/plugins/mzcompose:
1588+
composition: legacy-upgrade
1589+
args: ["--versions-source=docs"]
1590+
agents:
1591+
queue: hetzner-aarch64-4cpu-8gb
15771592

15781593
- group: Cloud tests
15791594
key: cloudtests

ci/test/pipeline.template.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,15 +341,15 @@ steps:
341341
agents:
342342
queue: hetzner-aarch64-4cpu-8gb
343343

344-
- id: legacy-upgrade
345-
label: "Legacy upgrade tests (last version from docs)"
344+
- id: legacy-upgrade-docs-ignore-missing
345+
label: "Legacy upgrade tests (last version from docs, ignore missing)"
346346
parallelism: 2
347347
depends_on: build-aarch64
348348
timeout_in_minutes: 60
349349
plugins:
350350
- ./ci/plugins/mzcompose:
351351
composition: legacy-upgrade
352-
args: ["--versions-source=docs"]
352+
args: ["--versions-source=docs", "--ignore-missing-version"]
353353
agents:
354354
queue: hetzner-aarch64-4cpu-8gb
355355

test/legacy-upgrade/mzcompose.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import random
1616

1717
from materialize import buildkite
18+
from materialize.docker import image_of_release_version_exists
1819
from materialize.mz_version import MzVersion
1920
from materialize.mzcompose import get_default_system_parameters
2021
from materialize.mzcompose.composition import Composition, WorkflowArgumentParser
@@ -78,6 +79,7 @@ def workflow_default(c: Composition, parser: WorkflowArgumentParser) -> None:
7879
choices=["docs", "git"],
7980
help="from what source to fetch the versions",
8081
)
82+
parser.add_argument("--ignore-missing-version", action="store_true")
8183
args = parser.parse_args()
8284

8385
parallelism_index = buildkite.get_parallelism_index()
@@ -98,6 +100,12 @@ def workflow_default(c: Composition, parser: WorkflowArgumentParser) -> None:
98100
)
99101

100102
for version in tested_versions:
103+
# Building the latest release might have failed, don't block PRs on
104+
# test pipeline for this.
105+
if args.ignore_missing_version and not image_of_release_version_exists(version):
106+
print(f"Unknown version {version}, skipping")
107+
continue
108+
101109
priors = [
102110
v for v in all_versions if v <= version and v >= min_upgradable_version
103111
]

0 commit comments

Comments
 (0)