Skip to content

Commit 6ca37ec

Browse files
committed
Change check-params to have up to date 3.12 image names and sizes for built images
1 parent adad3d0 commit 6ca37ec

File tree

1 file changed

+87
-3
lines changed

1 file changed

+87
-3
lines changed

ci/check-params-env.sh

Lines changed: 87 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ PARAMS_ENV_PATH="manifests/base/params.env"
2727

2828
# This value needs to be updated everytime we deliberately change number of the
2929
# images we want to have in the `params.env` or `params-latest.env` file.
30-
EXPECTED_NUM_RECORDS=51
30+
EXPECTED_NUM_RECORDS=65
3131
EXPECTED_ADDI_RUNTIME_RECORDS=0
3232

3333
# Number of attempts for the skopeo tool to gather data from the repository.
@@ -149,6 +149,12 @@ function check_image_variable_matches_name_and_commitref_and_size() {
149149
expected_build_name="jupyter-minimal-ubi8-python-3.8-amd64"
150150
expected_img_size=479
151151
;;
152+
odh-workbench-jupyter-minimal-cpu-py312-ubi9-n)
153+
expected_name="odh-notebook-jupyter-minimal-ubi9-python-3.12"
154+
expected_commitref="main"
155+
expected_build_name="konflux"
156+
expected_img_size=1213
157+
;;
152158
odh-workbench-jupyter-minimal-cuda-py311-ubi9-n)
153159
expected_name="odh-notebook-jupyter-cuda-minimal-ubi9-python-3.11"
154160
expected_commitref="main"
@@ -185,6 +191,12 @@ function check_image_variable_matches_name_and_commitref_and_size() {
185191
expected_build_name="cuda-jupyter-minimal-ubi8-python-3.8-amd64"
186192
expected_img_size=5333
187193
;;
194+
odh-workbench-jupyter-minimal-cuda-py312-ubi9-n)
195+
expected_name="odh-notebook-jupyter-cuda-minimal-ubi9-python-3.12"
196+
expected_commitref="main"
197+
expected_build_name="konflux"
198+
expected_img_size=3357
199+
;;
188200
odh-workbench-jupyter-pytorch-cuda-py311-ubi9-n)
189201
expected_name="odh-notebook-jupyter-cuda-pytorch-ubi9-python-3.11"
190202
expected_commitref="main"
@@ -221,6 +233,12 @@ function check_image_variable_matches_name_and_commitref_and_size() {
221233
expected_build_name="jupyter-pytorch-ubi8-python-3.8-amd64"
222234
expected_img_size=6592
223235
;;
236+
odh-workbench-jupyter-pytorch-cuda-py312-ubi9-n)
237+
expected_name="odh-notebook-jupyter-cuda-pytorch-ubi9-python-3.12"
238+
expected_commitref="main"
239+
expected_build_name="konflux"
240+
expected_img_size=6964
241+
;;
224242
odh-workbench-jupyter-datascience-cpu-py311-ubi9-n)
225243
expected_name="odh-notebook-jupyter-datascience-ubi9-python-3.11"
226244
expected_commitref="main"
@@ -257,6 +275,12 @@ function check_image_variable_matches_name_and_commitref_and_size() {
257275
expected_build_name="jupyter-datascience-ubi8-python-3.8-amd64"
258276
expected_img_size=865
259277
;;
278+
odh-workbench-jupyter-datascience-cpu-py312-ubi9-n)
279+
expected_name="odh-notebook-jupyter-datascience-ubi9-python-3.12"
280+
expected_commitref="main"
281+
expected_build_name="konflux"
282+
expected_img_size=1658
283+
;;
260284
odh-workbench-jupyter-tensorflow-cuda-py311-ubi9-n)
261285
expected_name="odh-notebook-cuda-jupyter-tensorflow-ubi9-python-3.11"
262286
expected_commitref="main"
@@ -293,6 +317,12 @@ function check_image_variable_matches_name_and_commitref_and_size() {
293317
expected_build_name="cuda-jupyter-tensorflow-ubi8-python-3.8-amd64"
294318
expected_img_size=6309
295319
;;
320+
odh-workbench-jupyter-tensorflow-cuda-py312-ubi9-n)
321+
expected_name="odh-notebook-cuda-jupyter-tensorflow-ubi9-python-3.12"
322+
expected_commitref="main"
323+
expected_build_name="konflux"
324+
expected_img_size=6373
325+
;;
296326
odh-workbench-jupyter-trustyai-cpu-py311-ubi9-n)
297327
expected_name="odh-notebook-jupyter-trustyai-ubi9-python-3.11"
298328
expected_commitref="main"
@@ -323,6 +353,12 @@ function check_image_variable_matches_name_and_commitref_and_size() {
323353
expected_build_name="jupyter-trustyai-ubi9-python-3.9-amd64"
324354
expected_img_size=883
325355
;;
356+
odh-workbench-jupyter-trustyai-cpu-py312-ubi9-n)
357+
expected_name="odh-notebook-jupyter-trustyai-ubi9-python-3.12"
358+
expected_commitref="main"
359+
expected_build_name="konflux"
360+
expected_img_size=5034
361+
;;
326362
odh-workbench-codeserver-datascience-cpu-py311-ubi9-n)
327363
expected_name="odh-notebook-code-server-ubi9-python-3.11"
328364
expected_commitref="main"
@@ -347,6 +383,12 @@ function check_image_variable_matches_name_and_commitref_and_size() {
347383
expected_build_name="codeserver-ubi9-python-3.9-amd64"
348384
expected_img_size=778
349385
;;
386+
odh-workbench-codeserver-datascience-cpu-py312-ubi9-n)
387+
expected_name="odh-notebook-code-server-ubi9-python-3.12"
388+
expected_commitref="main"
389+
expected_build_name="konflux"
390+
expected_img_size=971
391+
;;
350392
odh-workbench-jupyter-minimal-rocm-py311-ubi9-n)
351393
expected_name="odh-notebook-jupyter-rocm-minimal-ubi9-python-3.11"
352394
expected_commitref="main"
@@ -359,6 +401,12 @@ function check_image_variable_matches_name_and_commitref_and_size() {
359401
expected_build_name="rocm-jupyter-minimal-ubi9-python-3.11-amd64"
360402
expected_img_size=4830
361403
;;
404+
odh-workbench-jupyter-minimal-rocm-py312-ubi9-n)
405+
expected_name="odh-notebook-jupyter-rocm-minimal-ubi9-python-3.12"
406+
expected_commitref="main"
407+
expected_build_name="konflux"
408+
expected_img_size=6474
409+
;;
362410
odh-workbench-jupyter-pytorch-rocm-py311-ubi9-n)
363411
expected_name="odh-notebook-jupyter-rocm-pytorch-ubi9-python-3.11"
364412
expected_commitref="main"
@@ -371,6 +419,12 @@ function check_image_variable_matches_name_and_commitref_and_size() {
371419
expected_build_name="rocm-jupyter-pytorch-ubi9-python-3.11-amd64"
372420
expected_img_size=6571
373421
;;
422+
odh-workbench-jupyter-pytorch-rocm-py312-ubi9-n)
423+
expected_name="odh-notebook-jupyter-rocm-pytorch-ubi9-python-3.12"
424+
expected_commitref="main"
425+
expected_build_name="konflux"
426+
expected_img_size=8124
427+
;;
374428
odh-workbench-jupyter-tensorflow-rocm-py311-ubi9-n)
375429
expected_name="odh-notebook-jupyter-rocm-tensorflow-ubi9-python-3.11"
376430
expected_commitref="main"
@@ -390,30 +444,60 @@ function check_image_variable_matches_name_and_commitref_and_size() {
390444
expected_build_name="konflux"
391445
expected_img_size=570
392446
;;
447+
odh-pipeline-runtime-minimal-cpu-py312-ubi9-n)
448+
expected_name="odh-notebook-runtime-minimal-ubi9-python-3.12"
449+
expected_commitref="main"
450+
expected_build_name="konflux"
451+
expected_img_size=579
452+
;;
393453
odh-pipeline-runtime-datascience-cpu-py311-ubi9-n)
394454
expected_name="odh-notebook-runtime-datascience-ubi9-python-3.11"
395455
expected_commitref="main"
396456
expected_build_name="konflux"
397457
expected_img_size=954
398458
;;
459+
odh-pipeline-runtime-datascience-cpu-py312-ubi9-n)
460+
expected_name="odh-notebook-runtime-datascience-ubi9-python-3.12"
461+
expected_commitref="main"
462+
expected_build_name="konflux"
463+
expected_img_size=954
464+
;;
399465
odh-pipeline-runtime-pytorch-cuda-py311-ubi9-n)
400466
expected_name="odh-notebook-runtime-pytorch-ubi9-python-3.11"
401467
expected_commitref="main"
402468
expected_build_name="konflux"
403469
expected_img_size=8506
404470
;;
471+
odh-pipeline-runtime-pytorch-cuda-py312-ubi9-n)
472+
expected_name="odh-notebook-runtime-pytorch-ubi9-python-3.12"
473+
expected_commitref="main"
474+
expected_build_name="konflux"
475+
expected_img_size=6253
476+
;;
405477
odh-pipeline-runtime-pytorch-rocm-py311-ubi9-n)
406478
expected_name="odh-notebook-runtime-rocm-pytorch-ubi9-python-3.11"
407479
expected_commitref="main"
408480
expected_build_name="konflux"
409481
expected_img_size=7413
410482
;;
483+
odh-pipeline-runtime-pytorch-rocm-py312-ubi9-n)
484+
expected_name="odh-notebook-runtime-rocm-pytorch-ubi9-python-3.12"
485+
expected_commitref="main"
486+
expected_build_name="konflux"
487+
expected_img_size=7411
488+
;;
411489
odh-pipeline-runtime-tensorflow-cuda-py311-ubi9-n)
412490
expected_name="odh-notebook-cuda-runtime-tensorflow-ubi9-python-3.11"
413491
expected_commitref="main"
414492
expected_build_name="konflux"
415493
expected_img_size=7917
416494
;;
495+
odh-pipeline-runtime-tensorflow-cuda-py312-ubi9-n)
496+
expected_name="odh-notebook-cuda-runtime-tensorflow-ubi9-python-3.12"
497+
expected_commitref="main"
498+
expected_build_name="konflux"
499+
expected_img_size=5658
500+
;;
417501
odh-pipeline-runtime-tensorflow-rocm-py311-ubi9-n)
418502
expected_name="odh-notebook-rocm-runtime-tensorflow-ubi9-python-3.11"
419503
expected_commitref="main"
@@ -530,8 +614,8 @@ function check_image() {
530614
}
531615
image_commit_id=$(echo "${image_metadata_config}" | jq --exit-status --raw-output '.config.Labels."io.openshift.build.commit.id"') || {
532616
echo "Couldn't parse '.config.Labels."io.openshift.build.commit.id"' from image metadata, maybe this is a Konflux build?"
533-
image_commit_id=$(echo "${image_metadata_config}" | jq --exit-status --raw-output '.config.Labels."git.commit"') || {
534-
echo "Couldn't parse '.config.Labels."git.commit"' from image metadata!"
617+
image_commit_id=$(echo "${image_metadata_config}" | jq --exit-status --raw-output '.config.Labels."vcs-ref"') || {
618+
echo "Couldn't parse '.config.Labels."vcs-ref"' from image metadata!"
535619
return 1
536620
}
537621
}

0 commit comments

Comments
 (0)