Skip to content

Commit 350ef04

Browse files
authored
Merge pull request #2541 from atheo89/update-new-rstudio
RHAIENG-1022: upgrade RStudio c9s and rhel
2 parents 5404697 + f6d26d4 commit 350ef04

File tree

81 files changed

+623
-865
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+623
-865
lines changed

.tekton/odh-workbench-rstudio-minimal-cpu-py311-c9s-pull-request.yaml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.tekton/odh-workbench-rstudio-minimal-cpu-py311-c9s-push.yaml

Lines changed: 0 additions & 48 deletions
This file was deleted.

.tekton/odh-workbench-rstudio-minimal-cuda-py311-c9s-pull-request.yaml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.tekton/odh-workbench-rstudio-minimal-cuda-py311-c9s-push.yaml

Lines changed: 0 additions & 48 deletions
This file was deleted.

Makefile

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -410,11 +410,7 @@ validate-rstudio-image: bin/kubectl
410410
# Default Python version
411411
PYTHON_VERSION ?= 3.12
412412
ROOT_DIR := $(shell pwd)
413-
ifeq ($(PYTHON_VERSION), 3.11)
414-
BASE_DIRS := \
415-
rstudio/rhel9-python-$(PYTHON_VERSION) \
416-
rstudio/c9s-python-$(PYTHON_VERSION)
417-
else ifeq ($(PYTHON_VERSION), 3.12)
413+
ifeq ($(PYTHON_VERSION), 3.12)
418414
BASE_DIRS := \
419415
jupyter/minimal/ubi9-python-$(PYTHON_VERSION) \
420416
jupyter/datascience/ubi9-python-$(PYTHON_VERSION) \
@@ -431,9 +427,9 @@ else ifeq ($(PYTHON_VERSION), 3.12)
431427
runtimes/rocm-pytorch/ubi9-python-$(PYTHON_VERSION) \
432428
runtimes/pytorch+llmcompressor/ubi9-python-$(PYTHON_VERSION) \
433429
runtimes/rocm-tensorflow/ubi9-python-$(PYTHON_VERSION) \
434-
jupyter/rocm/tensorflow/ubi9-python-$(PYTHON_VERSION)
435-
# rstudio/rhel9-python-$(PYTHON_VERSION)
436-
# rstudio/c9s-python-$(PYTHON_VERSION)
430+
jupyter/rocm/tensorflow/ubi9-python-$(PYTHON_VERSION) \
431+
rstudio/rhel9-python-$(PYTHON_VERSION) \
432+
rstudio/c9s-python-$(PYTHON_VERSION)
437433
else
438434
$(error Invalid Python version $(PYTHON_VERSION))
439435
endif
@@ -483,13 +479,7 @@ scan-image-vulnerabilities:
483479

484480
# This is used primarily for gen_gha_matrix_jobs.py to we know the set of all possible images we may want to build
485481
.PHONY: all-images
486-
ifeq ($(RELEASE_PYTHON_VERSION), 3.11)
487-
all-images: \
488-
rstudio-c9s-python-$(RELEASE_PYTHON_VERSION) \
489-
rstudio-rhel9-python-$(RELEASE_PYTHON_VERSION) \
490-
cuda-rstudio-c9s-python-$(RELEASE_PYTHON_VERSION) \
491-
cuda-rstudio-rhel9-python-$(RELEASE_PYTHON_VERSION)
492-
else ifeq ($(RELEASE_PYTHON_VERSION), 3.12)
482+
ifeq ($(RELEASE_PYTHON_VERSION), 3.12)
493483
all-images: \
494484
jupyter-minimal-ubi9-python-$(RELEASE_PYTHON_VERSION) \
495485
jupyter-datascience-ubi9-python-$(RELEASE_PYTHON_VERSION) \
@@ -508,12 +498,11 @@ all-images: \
508498
rocm-jupyter-pytorch-ubi9-python-$(RELEASE_PYTHON_VERSION) \
509499
rocm-runtime-pytorch-ubi9-python-$(RELEASE_PYTHON_VERSION) \
510500
rocm-runtime-tensorflow-ubi9-python-$(RELEASE_PYTHON_VERSION) \
511-
rocm-jupyter-tensorflow-ubi9-python-$(RELEASE_PYTHON_VERSION)
512-
# rstudio-c9s-python-$(RELEASE_PYTHON_VERSION)
513-
# cuda-rstudio-c9s-python-$(RELEASE_PYTHON_VERSION)
514-
# rstudio-rhel9-python-$(RELEASE_PYTHON_VERSION)
515-
# cuda-rstudio-rhel9-python-$(RELEASE_PYTHON_VERSION)
516-
501+
rocm-jupyter-tensorflow-ubi9-python-$(RELEASE_PYTHON_VERSION) \
502+
rstudio-c9s-python-$(RELEASE_PYTHON_VERSION) \
503+
cuda-rstudio-c9s-python-$(RELEASE_PYTHON_VERSION) \
504+
rstudio-rhel9-python-$(RELEASE_PYTHON_VERSION) \
505+
cuda-rstudio-rhel9-python-$(RELEASE_PYTHON_VERSION)
517506
else
518507
$(error Invalid Python version $(RELEASE_PYTHON_VERSION))
519508
endif

ci/cached-builds/gen_gha_matrix_jobs.py

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
project_dir = pathlib.Path(__file__).parent.parent.parent.absolute()
2323

2424
ARM64_COMPATIBLE = {
25-
"codeserver-ubi9-python-3.11",
2625
"codeserver-ubi9-python-3.12",
27-
"cuda-jupyter-minimal-ubi9-python-3.11",
2826
"cuda-jupyter-minimal-ubi9-python-3.12",
2927
"cuda-jupyter-tensorflow-ubi9-python-3.12",
3028
"runtime-cuda-tensorflow-ubi9-python-3.12",
@@ -36,11 +34,8 @@
3634
}
3735

3836
S390X_COMPATIBLE = {
39-
"runtime-minimal-ubi9-python-3.11",
4037
"runtime-minimal-ubi9-python-3.12",
41-
"jupyter-minimal-ubi9-python-3.11",
4238
"jupyter-minimal-ubi9-python-3.12",
43-
"runtime-datascience-ubi9-python-3.11",
4439
"runtime-datascience-ubi9-python-3.12",
4540
# add more here
4641
}
@@ -141,9 +136,7 @@ def main() -> None:
141136
)
142137
args = argparser.parse_args()
143138

144-
targets = extract_image_targets(env={"RELEASE_PYTHON_VERSION": "3.11"}) + extract_image_targets(
145-
env={"RELEASE_PYTHON_VERSION": "3.12"}
146-
)
139+
targets = extract_image_targets(env={"RELEASE_PYTHON_VERSION": "3.12"})
147140

148141
if args.from_ref:
149142
logging.info("Skipping targets not modified in the PR")
@@ -182,11 +175,7 @@ def main() -> None:
182175
"include": [
183176
{
184177
"target": target,
185-
"python": "3.11"
186-
if "-python-3.11" in target
187-
else "3.12"
188-
if "-python-3.12" in target
189-
else "invalid-python-version",
178+
"python": "3.12",
190179
"platform": platform,
191180
"subscription": "rhel" in target,
192181
}
@@ -217,28 +206,23 @@ class SelfTests(unittest.TestCase):
217206
def test_select_changed_targets_dockerfile(self):
218207
targets = extract_image_targets(makefile_dir=project_dir)
219208

220-
changed_files = ["jupyter/datascience/ubi9-python-3.11/Dockerfile.cpu"]
209+
changed_files = ["jupyter/datascience/ubi9-python-3.12/Dockerfile.cpu"]
221210

222211
targets = gha_pr_changed_files.filter_out_unchanged(targets, changed_files)
223-
assert set(targets) == {"jupyter-datascience-ubi9-python-3.11"}
212+
assert set(targets) == {"jupyter-datascience-ubi9-python-3.12"}
224213

225214
def test_select_changed_targets_shared_file(self):
226215
targets = extract_image_targets(makefile_dir=project_dir)
227216

228-
changed_files = ["cuda/ubi9-python-3.11/NGC-DL-CONTAINER-LICENSE"]
217+
changed_files = ["cuda/ubi9-python-3.12/NGC-DL-CONTAINER-LICENSE"]
229218

230-
# With the removal of chained builds - which now potentially has multiple Dockerfiles defined in a given
231-
# directory, there is an inefficiency introduced to 'gha_pr_changed_files' as demonstrated by this unit test.
232-
# Even though this test only changes a (shared) CUDA file - you will notice the 'cpu' and 'rocm' targets
233-
# also being returned. Odds of this inefficiency noticably "hurting us" is low - so of the opinion we can
234-
# simply treat this as technical debt.
235219
targets = gha_pr_changed_files.filter_out_unchanged(targets, changed_files)
236220
assert set(targets) == {
237-
"jupyter-minimal-ubi9-python-3.11",
238-
"cuda-jupyter-minimal-ubi9-python-3.11",
239-
"cuda-jupyter-pytorch-ubi9-python-3.11",
240-
"runtime-cuda-pytorch-ubi9-python-3.11",
241-
"cuda-jupyter-tensorflow-ubi9-python-3.11",
242-
"rocm-jupyter-minimal-ubi9-python-3.11",
243-
"runtime-cuda-tensorflow-ubi9-python-3.11",
221+
"jupyter-minimal-ubi9-python-3.12",
222+
"cuda-jupyter-minimal-ubi9-python-3.12",
223+
"cuda-jupyter-pytorch-ubi9-python-3.12",
224+
"runtime-cuda-pytorch-ubi9-python-3.12",
225+
"cuda-jupyter-tensorflow-ubi9-python-3.12",
226+
"rocm-jupyter-minimal-ubi9-python-3.12",
227+
"runtime-cuda-tensorflow-ubi9-python-3.12",
244228
}

rstudio/c9s-python-3.11/build-args/cpu.conf

Lines changed: 0 additions & 1 deletion
This file was deleted.

rstudio/c9s-python-3.11/build-args/cuda.conf

Lines changed: 0 additions & 1 deletion
This file was deleted.

rstudio/c9s-python-3.11/install_packages.R

Lines changed: 0 additions & 14 deletions
This file was deleted.

rstudio/c9s-python-3.11/rsession.conf

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)