Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .buildkite/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
DEFAULT_PLATFORMS = [
("al2", "linux_5.10"),
("al2023", "linux_6.1"),
("ubuntu24", "secret_hiding"),
]


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

import os

import pytest

from framework import utils
from framework.properties import global_props
from framework.utils_cpuid import CPU_FEATURES_CMD, CpuModel
Expand Down Expand Up @@ -157,6 +159,10 @@
}


@pytest.mark.skipif(
global_props.host_linux_version_tpl > (6, 1),
reason="We don't currently track features for host kernels above 6.1.",
)
def test_host_vs_guest_cpu_features(uvm_plain_any):
"""Check CPU features host vs guest"""

Expand Down
6 changes: 6 additions & 0 deletions tests/integration_tests/functional/test_shut_down.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@

import platform

import pytest
from packaging import version

from framework import utils
from framework.properties import global_props


@pytest.mark.skipif(
global_props.host_linux_version_tpl > (6, 1),
reason="The number of threads associated to firecracker changes in newer kernels",
)
def test_reboot(uvm_plain_any):
"""
Test reboot from guest.
Expand Down
25 changes: 25 additions & 0 deletions tests/integration_tests/performance/test_huge_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ def check_hugetlbfs_in_use(pid: int, allocation_name: str):
assert kernel_page_size_kib > 4


@pytest.mark.skipif(
global_props.host_linux_version_tpl > (6, 1)
and global_props.cpu_architecture == "aarch64",
reason="Huge page tests with secret hidden kernels on ARM currently fail",
)
def test_hugetlbfs_boot(uvm_plain):
"""Tests booting a microvm with guest memory backed by 2MB hugetlbfs pages"""

Expand All @@ -69,6 +74,11 @@ def test_hugetlbfs_boot(uvm_plain):
)


@pytest.mark.skipif(
global_props.host_linux_version_tpl > (6, 1)
and global_props.cpu_architecture == "aarch64",
reason="Huge page tests with secret hidden kernels on ARM currently fail",
)
def test_hugetlbfs_snapshot(microvm_factory, guest_kernel_linux_5_10, rootfs):
"""
Test hugetlbfs snapshot restore via uffd
Expand Down Expand Up @@ -100,6 +110,11 @@ def test_hugetlbfs_snapshot(microvm_factory, guest_kernel_linux_5_10, rootfs):
check_hugetlbfs_in_use(vm.firecracker_pid, "/anon_hugepage")


@pytest.mark.skipif(
global_props.host_linux_version_tpl > (6, 1)
and global_props.cpu_architecture == "aarch64",
reason="Huge page tests with secret hidden kernels on ARM currently fail",
)
def test_hugetlbfs_diff_snapshot(microvm_factory, uvm_plain):
"""
Test hugetlbfs differential snapshot support.
Expand Down Expand Up @@ -144,6 +159,11 @@ def test_hugetlbfs_diff_snapshot(microvm_factory, uvm_plain):
# Verify if the restored microvm works.


@pytest.mark.skipif(
global_props.host_linux_version_tpl > (6, 1)
and global_props.cpu_architecture == "aarch64",
reason="Huge page tests with secret hidden kernels on ARM currently fail",
)
@pytest.mark.parametrize("huge_pages", HugePagesConfig)
def test_ept_violation_count(
microvm_factory,
Expand Down Expand Up @@ -225,6 +245,11 @@ def test_ept_violation_count(
metrics.put_metric(metric, int(metric_value), "Count")


@pytest.mark.skipif(
global_props.host_linux_version_tpl > (6, 1)
and global_props.cpu_architecture == "aarch64",
reason="Huge page tests with secret hidden kernels on ARM currently fail",
)
def test_negative_huge_pages_plus_balloon(uvm_plain):
"""Tests that huge pages and memory ballooning cannot be used together"""
uvm_plain.memory_monitor = None
Expand Down
6 changes: 6 additions & 0 deletions tests/integration_tests/performance/test_initrd.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import pytest

from framework.microvm import HugePagesConfig, Serial
from framework.properties import global_props

INITRD_FILESYSTEM = "rootfs"

Expand All @@ -20,6 +21,11 @@ def uvm_with_initrd(microvm_factory, guest_kernel, record_property, artifact_dir
yield uvm


@pytest.mark.skipif(
global_props.host_linux_version_tpl > (6, 1)
and global_props.cpu_architecture == "aarch64",
reason="Huge page tests with secret hidden kernels on ARM currently fail",
)
@pytest.mark.parametrize("huge_pages", HugePagesConfig)
def test_microvm_initrd_with_serial(uvm_with_initrd, huge_pages):
"""
Expand Down