Skip to content

Commit 3a53ff5

Browse files
committed
feat(test): add linux 6.1 to 6.18 cross-kernel snapshot restore testing
Add AL2023/linux_6.18 as a restore-only platform in the cross-snapshot pipeline for both x86_64 and aarch64. Snapshots created on 6.1 hosts are restored on 6.18 hosts to validate cross-kernel compatibility. The 6.18 platform is scoped to pipeline_cross.py only since 6.18 agents exist exclusively in the private Buildkite queue. Signed-off-by: Jack Thomson <jackabt@amazon.com>
1 parent 02d76d4 commit 3a53ff5

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.buildkite/pipeline_cross.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
"m7a.metal-48xl",
2828
]
2929
instances_aarch64 = ["m7g.metal"]
30+
restore_only_platforms = [("al2023", "linux_6.18")]
31+
x86_64_platforms = DEFAULT_PLATFORMS + restore_only_platforms
3032
commands = [
3133
"./tools/devtool -y test --no-build --no-archive -- -m nonci -n4 integration_tests/functional/test_snapshot_phase1.py",
3234
# punch holes in mem snapshot tiles and tar them so they are preserved in S3
@@ -54,12 +56,13 @@
5456

5557
# https://github.com/firecracker-microvm/firecracker/blob/main/docs/kernel-policy.md#experimental-snapshot-compatibility-across-kernel-versions
5658
aarch64_platforms = [("al2023", "linux_6.1")]
59+
aarch64_all_platforms = aarch64_platforms + restore_only_platforms
5760
perms_aarch64 = itertools.product(
58-
instances_aarch64, aarch64_platforms, instances_aarch64, aarch64_platforms
61+
instances_aarch64, aarch64_platforms, instances_aarch64, aarch64_all_platforms
5962
)
6063

6164
perms_x86_64 = itertools.product(
62-
instances_x86_64, DEFAULT_PLATFORMS, instances_x86_64, DEFAULT_PLATFORMS
65+
instances_x86_64, DEFAULT_PLATFORMS, instances_x86_64, x86_64_platforms
6366
)
6467
steps = []
6568
for (
@@ -74,6 +77,9 @@
7477
# newer -> older is not supported, and does not work
7578
if src_kv > dst_kv:
7679
continue
80+
# only test cross-kernel restore between adjacent kernel versions
81+
if src_kv == "linux_5.10" and dst_kv == "linux_6.18":
82+
continue
7783
if src_instance != dst_instance and dst_instance not in supported.get(
7884
src_instance, []
7985
):

0 commit comments

Comments
 (0)