Skip to content

Commit 0a159dc

Browse files
committed
Enable ppc64le in github actions and in konflux, subject to further review
1 parent e0b2e33 commit 0a159dc

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

.tekton/odh-workbench-jupyter-minimal-cpu-py312-ubi9-pull-request.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ spec:
4141
- name: build-platforms
4242
value:
4343
- linux/x86_64
44+
- linux/ppc64le
4445
- name: dockerfile
4546
value: jupyter/minimal/ubi9-python-3.12/Dockerfile.cpu
4647
- name: path-context

ci/cached-builds/gen_gha_matrix_jobs.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
"runtime-cuda-tensorflow-ubi9-python-3.12",
3131
}
3232

33+
PPC64LE_COMPATIBLE = {
34+
"jupyter-minimal-ubi9-python-3.12",
35+
}
36+
3337
S390X_COMPATIBLE = {
3438
"runtime-minimal-ubi9-python-3.11",
3539
"runtime-minimal-ubi9-python-3.12",
@@ -74,6 +78,9 @@ class Arm64Images(enum.Enum):
7478
INCLUDE = "include"
7579
ONLY = "only"
7680

81+
class Ppc64leImages(enum.Enum):
82+
EXCLUDE = "exclude"
83+
INCLUDE = "include"
7784

7885
class S390xImages(enum.Enum):
7986
EXCLUDE = "exclude"
@@ -109,6 +116,15 @@ def main() -> None:
109116
nargs="?",
110117
help="Whether to include, exclude, or only include arm64 images",
111118
)
119+
argparser.add_argument(
120+
"--ppc64le-images",
121+
type=Arm64Images,
122+
choices=list(Ppc64leImages),
123+
required=False,
124+
default=Arm64Images.INCLUDE,
125+
nargs="?",
126+
help="Whether to include or exclude ppc64le images",
127+
)
112128
argparser.add_argument(
113129
"--s390x-images",
114130
type=S390xImages,
@@ -145,6 +161,9 @@ def main() -> None:
145161
if args.arm64_images != Arm64Images.EXCLUDE and args.s390x_images != S390xImages.ONLY:
146162
if target in ARM64_COMPATIBLE:
147163
targets_with_platform.append((target, "linux/arm64"))
164+
if args.ppc64le_images != Ppc64leImages.EXCLUDE:
165+
if target in PPC64LE_COMPATIBLE:
166+
targets_with_platform.append((target, "linux/ppc64le"))
148167
if args.s390x_images != S390xImages.EXCLUDE and args.arm64_images != Arm64Images.ONLY:
149168
# NOTE: hardcode the list of s390x-compatible Makefile targets in S390X_COMPATIBLE
150169
if target in S390X_COMPATIBLE:

scripts/generate_pull_request_pipelineruns.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,20 @@ def transform_build_pipeline_to_pr_pipeline(push_pipeline_path: pathlib.Path):
145145
component = push_pipeline["metadata"]["labels"]["appstudio.openshift.io/component"]
146146

147147
build_platforms = ["linux/x86_64"]
148-
if component in ["odh-pipeline-runtime-minimal-cpu-py311-ubi9", "odh-pipeline-runtime-minimal-cpu-py312-ubi9"]:
148+
if component in [
149+
"odh-base-image-cuda-py311-c9s",
150+
"odh-base-image-cuda-py312-c9s",
151+
"odh-base-image-cuda-py312-ubi9",
152+
]:
153+
build_platforms.extend(["linux/arm64"])
154+
if component in [
155+
"odh-workbench-jupyter-minimal-cpu-py312-ubi9",
156+
]:
157+
build_platforms.extend(["linux/ppc64le"])
158+
if component in [
159+
"odh-pipeline-runtime-minimal-cpu-py311-ubi9",
160+
"odh-pipeline-runtime-minimal-cpu-py312-ubi9",
161+
]:
149162
build_platforms.extend(["linux/arm64", "linux/s390x"])
150163
pr_pipeline = pull_request_pipelinerun_template(
151164
on_cel_expression=LiteralScalarString(pr_on_cel_expression + "\n"),

0 commit comments

Comments
 (0)