Skip to content

Commit

Permalink
Initial commit to enable running tests on ARM64 Mariner in canary (#2881
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mayankdaruka-msft authored Aug 7, 2023
1 parent 53615ca commit 655e024
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
simple_requirement,
)
from lisa.environment import Environment
from lisa.operating_system import BSD, CpuArchitecture
from lisa.operating_system import BSD, CBLMariner, CpuArchitecture
from lisa.sut_orchestrator import AZURE
from lisa.sut_orchestrator.azure.common import AzureNodeSchema
from lisa.sut_orchestrator.azure.features import AzureExtension
from lisa.util import SkippedException
from microsoft.testsuites.vm_extensions.runtime_extensions.common import (
Expand All @@ -30,6 +31,13 @@
def _check_architecture_supported(node: Node) -> None:
arch = node.os.get_kernel_information().hardware_platform # type: ignore
if arch == CpuArchitecture.ARM64:
# Support RCv2 on ARM64 Mariner in Canary regions
if isinstance(node.os, CBLMariner):
node_context = node.capability.get_extended_runbook(AzureNodeSchema, AZURE)
canary_locations = ["centraluseuap", "eastus2euap"]
if node_context.location in canary_locations:
return

raise SkippedException("RunCommandv2 Extension not published on ARM64.")


Expand Down

0 comments on commit 655e024

Please sign in to comment.