From db278b4fc92e5361c83a481e151ddecf60baedfe Mon Sep 17 00:00:00 2001 From: "Daniel A. Wozniak" Date: Sat, 9 Nov 2024 15:47:59 -0700 Subject: [PATCH] Skip arm64 packages tests when no arm runner configured --- tools/ci.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/ci.py b/tools/ci.py index a649277b337..b7622459760 100644 --- a/tools/ci.py +++ b/tools/ci.py @@ -796,6 +796,7 @@ def pkg_matrix( "tiamat": f"salt/py3/{name}/{version}/{arch}/minor/", "relenv": f"salt/py3/{name}/{version}/{arch}/minor/", } + _matrix = [] # XXX: fetch versions # s3 = boto3.client("s3") @@ -871,9 +872,18 @@ def pkg_matrix( and "macos" in distro_slug and "arm64" in distro_slug ): + # XXX: This should work now ctx.warn("Forks don't have access to MacOS 13 Arm64. Clearning the matrix.") _matrix.clear() + if ( + name not in ["windows", "macos"] + and "LINUX_ARM_RUNNER" not in os.environ + or os.environ["LINUX_ARM_RUNNER"] != 0 + ): + ctx.warn("This fork does not have a linux arm64 runner configured.") + _matrix.clear() + if not _matrix: build_reports = False ctx.info("Not building reports because the matrix is empty")