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.
This commit is contained in:
Íñigo Huguet
2024-12-24 14:42:45 +01:00
parent 74dba128e9
commit 83d99669f5

View File

@@ -161,6 +161,20 @@ for distro in ci_distros:
if not tier1_distro or not tier1_version: if not tier1_distro or not tier1_version:
print("Warn: no suitable distro for Tier 1 found", file=sys.stderr) 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 # Print the config.yml needed for the corresponding stable branch
branch = "main" if nm_version == "main" else "nm-" + nm_version.replace(".", "-") branch = "main" if nm_version == "main" else "nm-" + nm_version.replace(".", "-")