Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SLES/OpenSUSE - build 15.5 and then install/upgrade test to later #608

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,15 @@
"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",
SUPPORTED_PLATFORMS["10.11"] += SUPPORTED_PLATFORMS["10.10"]

SUPPORTED_PLATFORMS["11.0"] = SUPPORTED_PLATFORMS["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 @@ -76,6 +76,7 @@ opensuse-1506:
arch:
- amd64
type: rpm
install_only: True
rhel-8:
version_name: 8
arch:
Expand Down Expand Up @@ -108,14 +109,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
38 changes: 20 additions & 18 deletions schedulers_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,30 +56,32 @@ def bigtestBuilders(props: IProperties) -> list[str]:
return []


@util.renderer
def installBuilders(props: IProperties) -> list[str]:
builder_name = props.getProperty("parentbuildername")
for b in BUILDERS_INSTALL:
if builder_name in b:
builders = [b]
if "rhel" in builder_name:
def getBuilderNames(builderName: str, builders_list: list[str]) -> list[str]:
builders = []
for b in builders_list:
if builderName in 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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice touch here, rather than returning an empty list if the parent builder doesn't have any install / upgrade builders defined.



@util.renderer
def installBuilders(props: IProperties) -> list[str]:
builderName = str(props.getProperty("parentbuildername"))

return getBuilderNames(builderName, builders_install)


@util.renderer
def upgradeBuilders(props: IProperties) -> list[str]:
builder_name = props.getProperty("parentbuildername")
builders = []
for b in BUILDERS_UPGRADE:
if builder_name in b:
if "rhel" in builder_name:
builders.append(b.replace("rhel", "almalinux"))
builders.append(b.replace("rhel", "rockylinux"))
builders.append(b)
return builders
builderName = str(props.getProperty("parentbuildername"))

return getBuilderNames(builderName, builders_upgrade)


@util.renderer
Expand Down
Loading