Skip to content

Commit c4c720a

Browse files
committed
Revert "test: Swap nonci_on_arm with skip_on_arm"
This reverts commit 95eb357. Signed-off-by: Patrick Roy <roypat@amazon.co.uk>
1 parent bdfc5a0 commit c4c720a

File tree

5 files changed

+21
-20
lines changed

5 files changed

+21
-20
lines changed

tests/framework/utils_cpu_templates.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ def name_list_to_tmpl_list(name_list):
7979
SUPPORTED_CUSTOM_CPU_TEMPLATES = get_supported_custom_cpu_templates()
8080

8181

82-
skip_on_arm = pytest.mark.skipif(
83-
cpuid_utils.get_cpu_vendor() == cpuid_utils.CpuVendor.ARM,
84-
reason="skip specific cpu template related tests on ARM platforms until kernel patches required for V1N1 come",
85-
)
82+
def nonci_on_arm(func):
83+
"""Temporary decorator used to mark specific cpu template related tests as nonci on ARM platforms"""
84+
if cpuid_utils.get_cpu_vendor() == cpuid_utils.CpuVendor.ARM:
85+
return pytest.mark.nonci(func)
86+
return func

tests/integration_tests/functional/test_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import host_tools.network as net_tools
1717
from framework import utils_cpuid
1818
from framework.utils import get_firecracker_version_from_toml, is_io_uring_supported
19-
from framework.utils_cpu_templates import skip_on_arm
19+
from framework.utils_cpu_templates import nonci_on_arm
2020

2121
MEM_LIMIT = 1000000000
2222

@@ -473,7 +473,7 @@ def test_api_machine_config(test_microvm_with_api):
473473
assert json["machine-config"]["smt"] is False
474474

475475

476-
@skip_on_arm
476+
@nonci_on_arm
477477
def test_api_cpu_config(test_microvm_with_api, custom_cpu_template):
478478
"""
479479
Test /cpu-config PUT scenarios.

tests/integration_tests/functional/test_cpu_features_aarch64.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import pytest
88

99
import framework.utils_cpuid as cpuid_utils
10-
from framework.utils_cpu_templates import skip_on_arm
10+
from framework.utils_cpu_templates import nonci_on_arm
1111

1212
PLATFORM = platform.machine()
1313

@@ -94,7 +94,7 @@ def test_default_cpu_features(test_microvm_with_api):
9494
PLATFORM != "aarch64",
9595
reason="This is aarch64 specific test.",
9696
)
97-
@skip_on_arm
97+
@nonci_on_arm
9898
def test_cpu_features_with_static_template(test_microvm_with_api, cpu_template):
9999
"""
100100
Check the CPU features for a microvm with the specified config.
@@ -111,7 +111,7 @@ def test_cpu_features_with_static_template(test_microvm_with_api, cpu_template):
111111
PLATFORM != "aarch64",
112112
reason="This is aarch64 specific test.",
113113
)
114-
@skip_on_arm
114+
@nonci_on_arm
115115
def test_cpu_features_with_custom_template(test_microvm_with_api, custom_cpu_template):
116116
"""
117117
Check the CPU features for a microvm with the specified config.

tests/integration_tests/functional/test_cpu_template_helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from framework import utils
1212
from framework.defs import SUPPORTED_HOST_KERNELS
1313
from framework.properties import global_props
14-
from framework.utils_cpu_templates import skip_on_arm
14+
from framework.utils_cpu_templates import nonci_on_arm
1515
from framework.utils_cpuid import get_guest_cpuid
1616
from host_tools import cargo_build
1717

@@ -383,7 +383,7 @@ def test_host_fingerprint_change(test_microvm_with_api, tmp_path, cpu_template_h
383383
)
384384

385385

386-
@skip_on_arm
386+
@nonci_on_arm
387387
def test_json_static_templates(
388388
test_microvm_with_api, cpu_template_helper, tmp_path, custom_cpu_template
389389
):

tests/integration_tests/security/test_vulnerabilities.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
from framework import utils
1313
from framework.properties import global_props
14-
from framework.utils_cpu_templates import skip_on_arm
14+
from framework.utils_cpu_templates import nonci_on_arm
1515

1616
CHECKER_URL = "https://meltdown.ovh"
1717
CHECKER_FILENAME = "spectre-meltdown-checker.sh"
@@ -140,7 +140,7 @@ def test_spectre_meltdown_checker_on_restored_guest(
140140
global_props.instance == "c7g.metal" and global_props.host_linux_version == "4.14",
141141
reason="c7g host 4.14 requires modifications to the 5.10 guest kernel to boot successfully.",
142142
)
143-
@skip_on_arm
143+
@nonci_on_arm
144144
def test_spectre_meltdown_checker_on_guest_with_template(
145145
spectre_meltdown_checker,
146146
microvm_with_template,
@@ -160,7 +160,7 @@ def test_spectre_meltdown_checker_on_guest_with_template(
160160
global_props.instance == "c7g.metal" and global_props.host_linux_version == "4.14",
161161
reason="c7g host 4.14 requires modifications to the 5.10 guest kernel to boot successfully.",
162162
)
163-
@skip_on_arm
163+
@nonci_on_arm
164164
def test_spectre_meltdown_checker_on_guest_with_custom_template(
165165
spectre_meltdown_checker,
166166
microvm_with_custom_cpu_template,
@@ -180,7 +180,7 @@ def test_spectre_meltdown_checker_on_guest_with_custom_template(
180180
global_props.instance == "c7g.metal" and global_props.host_linux_version == "4.14",
181181
reason="c7g host 4.14 requires modifications to the 5.10 guest kernel to boot successfully.",
182182
)
183-
@skip_on_arm
183+
@nonci_on_arm
184184
def test_spectre_meltdown_checker_on_restored_guest_with_template(
185185
spectre_meltdown_checker,
186186
microvm_with_template,
@@ -208,7 +208,7 @@ def test_spectre_meltdown_checker_on_restored_guest_with_template(
208208
global_props.instance == "c7g.metal" and global_props.host_linux_version == "4.14",
209209
reason="c7g host 4.14 requires modifications to the 5.10 guest kernel to boot successfully.",
210210
)
211-
@skip_on_arm
211+
@nonci_on_arm
212212
def test_spectre_meltdown_checker_on_restored_guest_with_custom_template(
213213
spectre_meltdown_checker,
214214
microvm_with_custom_cpu_template,
@@ -272,7 +272,7 @@ def test_vulnerabilities_files_on_restored_guest(
272272

273273

274274
@pytest.mark.no_block_pr
275-
@skip_on_arm
275+
@nonci_on_arm
276276
def test_vulnerabilities_files_on_guest_with_template(
277277
microvm_with_template,
278278
):
@@ -283,7 +283,7 @@ def test_vulnerabilities_files_on_guest_with_template(
283283

284284

285285
@pytest.mark.no_block_pr
286-
@skip_on_arm
286+
@nonci_on_arm
287287
def test_vulnerabilities_files_on_guest_with_custom_template(
288288
microvm_with_custom_cpu_template,
289289
):
@@ -294,7 +294,7 @@ def test_vulnerabilities_files_on_guest_with_custom_template(
294294

295295

296296
@pytest.mark.no_block_pr
297-
@skip_on_arm
297+
@nonci_on_arm
298298
def test_vulnerabilities_files_on_restored_guest_with_template(
299299
microvm_with_template,
300300
microvm_factory,
@@ -313,7 +313,7 @@ def test_vulnerabilities_files_on_restored_guest_with_template(
313313

314314

315315
@pytest.mark.no_block_pr
316-
@skip_on_arm
316+
@nonci_on_arm
317317
def test_vulnerabilities_files_on_restored_guest_with_custom_template(
318318
microvm_with_custom_cpu_template,
319319
microvm_factory,

0 commit comments

Comments
 (0)