From 83d99669f53557aeed2934d0687339ba8adf64d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8D=C3=B1igo=20Huguet?= Date: Tue, 24 Dec 2024 14:42:45 +0100 Subject: [PATCH] distros_support.py: always put CentOS Stream at least as Tier 3 We only add to Tier 3 distro versions that ship a version of NM equal or older to the one that we are testing. As CentOS Stream uses "main", no stable version will be tested on it. Force to test CentOS Stream as Tier 3. --- .gitlab-ci/distros_support.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitlab-ci/distros_support.py b/.gitlab-ci/distros_support.py index 9a3ba409c..f4989fbad 100755 --- a/.gitlab-ci/distros_support.py +++ b/.gitlab-ci/distros_support.py @@ -161,6 +161,20 @@ for distro in ci_distros: if not tier1_distro or not tier1_version: print("Warn: no suitable distro for Tier 1 found", file=sys.stderr) +# Always add CentOS Stream at least as Tier 3 +for centos_ver_info in distros_info["centos"]: + version = centos_ver_info["version"] + found = False + + if tier1_distro == "centos" and tier1_version == version: + found = True + for tier in (tier2, tier3): + if "centos" in tier and version in tier["centos"]: + found = True + break + + if not found: + tier3.setdefault("centos", []).append(version) # Print the config.yml needed for the corresponding stable branch branch = "main" if nm_version == "main" else "nm-" + nm_version.replace(".", "-")