Skip to content

Commit

Permalink
SLES/OpenSUSE - build 15.5 and then install/upgrade test to later
Browse files Browse the repository at this point in the history
This keep our packages list smaller, less building, and works for 15.5 and 15.6

Factor the generation of lists together as what should be identical
implementation. There should be only one match in the list.
  • Loading branch information
grooverdan committed Nov 7, 2024
1 parent 305949e commit 652ead5
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 20 deletions.
8 changes: 5 additions & 3 deletions constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,16 @@
"amd64-debian-12-debug-embedded",
"amd64-fedora-40",
"amd64-fedora-41",
"amd64-opensuse-1506",
"amd64-sles-1506",
"amd64-ubuntu-2404",
"ppc64le-ubuntu-2404",
"s390x-sles-1506",
"s390x-ubuntu-2404",
"ppc64le-debian-12",
]
# For 10.11 when 1505 goes EOL
# "amd64-opensuse-1506",
# "amd64-sles-1506",
# "s390x-sles-1506",

supportedPlatforms["10.11"] += supportedPlatforms["10.10"]

supportedPlatforms["11.0"] = supportedPlatforms["10.11"].copy()
Expand Down
4 changes: 3 additions & 1 deletion os_info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ opensuse-1506:
arch:
- amd64
type: rpm
install_only: True
rhel-7:
version_name: 7
arch:
Expand Down Expand Up @@ -123,14 +124,15 @@ sles-1505:
version_name: 15.5
arch:
- amd64
# TEMP - currently short on hardware - s390x
- s390x
type: rpm
sles-1506:
version_name: 15.6
arch:
- amd64
- s390x
type: rpm
install_only: True
ubuntu-2004:
version_name: focal
arch:
Expand Down
32 changes: 16 additions & 16 deletions schedulers_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,32 +54,32 @@ def getBigtestBuilderNames(props):
return []


@util.renderer
def getInstallBuilderNames(props):
builderName = str(props.getProperty("parentbuildername"))

for b in builders_install:
def getBuilderNames(builderName, builders_list):
builders = []
for b in builders_list:
if builderName in b:
builders = [b]
builders.append(b)
if "rhel" in builderName:
builders.append(b.replace("rhel", "almalinux"))
builders.append(b.replace("rhel", "rockylinux"))
return builders
return []
if "sles-1505" in builderName or "opensuse-1505" in builderName:
builders.append(b.replace("1505", "1506"))
break
return builders


@util.renderer
def getInstallBuilderNames(props):
builderName = str(props.getProperty("parentbuildername"))

return getBuilderNames(builderName, builders_install)


@util.renderer
def getUpgradeBuilderNames(props):
builderName = str(props.getProperty("parentbuildername"))

builds = []
for b in builders_upgrade:
if builderName in b:
if "rhel" in builderName:
builds.append(b.replace("rhel", "almalinux"))
builds.append(b.replace("rhel", "rockylinux"))
builds.append(b)
return builds
return getBuilderNames(builderName, builders_upgrade)


@util.renderer
Expand Down

0 comments on commit 652ead5

Please sign in to comment.