@@ -185,28 +185,42 @@ function _get_source_of_truth_filepath()
185
185
local notebook_id=" ${1##*/ } "
186
186
187
187
local manifest_directory=" ${root_repo_directory} /manifests"
188
- local imagestream_directory=" ${manifest_directory} /base"
189
-
190
- local file_suffix=' notebook-imagestream.yaml'
188
+ local imagestream_directory=
189
+ local file_suffix=
191
190
local filename=
192
- case " ${notebook_id} " in
193
- * $jupyter_minimal_notebook_id * )
194
- filename=" jupyter-${accelerator_flavor: +" $accelerator_flavor " -}${notebook_id} -${file_suffix} "
195
- if [ " ${accelerator_flavor} " = ' cuda' ]; then
196
- filename=" jupyter-${notebook_id} -gpu-${file_suffix} "
197
- fi
198
- ;;
199
- * $jupyter_datascience_notebook_id * | * $jupyter_trustyai_notebook_id * )
200
- filename=" jupyter-${notebook_id} -${file_suffix} "
191
+ case " ${python_flavor} " in
192
+ python-3.12)
193
+ imagestream_directory=" ${manifest_directory} /overlays/additional"
194
+ file_suffix=' imagestream.yaml'
195
+
196
+ local imagestream_accelerator_flavor=" ${accelerator_flavor:- cpu} "
197
+ filename=" jupyter-${notebook_id} -${imagestream_accelerator_flavor} -py312-${os_flavor} -${file_suffix} "
201
198
;;
202
- * $jupyter_pytorch_notebook_id * | * $jupyter_tensorflow_notebook_id * )
203
- filename=" jupyter-${accelerator_flavor: +" $accelerator_flavor " -}${notebook_id} -${file_suffix} "
204
- if [ " ${accelerator_flavor} " = ' cuda' ]; then
205
- filename=" jupyter-${notebook_id} -${file_suffix} "
206
- fi
199
+ * )
200
+ imagestream_directory=" ${manifest_directory} /base"
201
+ file_suffix=' notebook-imagestream.yaml'
202
+
203
+ case " ${notebook_id} " in
204
+ * $jupyter_minimal_notebook_id * )
205
+ filename=" jupyter-${accelerator_flavor: +" $accelerator_flavor " -}${notebook_id} -${file_suffix} "
206
+ if [ " ${accelerator_flavor} " = ' cuda' ]; then
207
+ filename=" jupyter-${notebook_id} -gpu-${file_suffix} "
208
+ fi
209
+ ;;
210
+ * $jupyter_datascience_notebook_id * | * $jupyter_trustyai_notebook_id * )
211
+ filename=" jupyter-${notebook_id} -${file_suffix} "
212
+ ;;
213
+ * $jupyter_pytorch_notebook_id * | * $jupyter_tensorflow_notebook_id * )
214
+ filename=" jupyter-${accelerator_flavor: +" $accelerator_flavor " -}${notebook_id} -${file_suffix} "
215
+ if [ " ${accelerator_flavor} " = ' cuda' ]; then
216
+ filename=" jupyter-${notebook_id} -${file_suffix} "
217
+ fi
218
+ ;;
219
+ esac
207
220
;;
208
221
esac
209
222
223
+
210
224
local filepath=" ${imagestream_directory} /${filename} "
211
225
212
226
if ! [ -e " ${filepath} " ]; then
@@ -381,7 +395,7 @@ jupyter_pytorch_notebook_id='pytorch'
381
395
jupyter_tensorflow_notebook_id=' tensorflow'
382
396
383
397
notebook_name=$( _get_notebook_name " ${test_target} " )
384
- python_flavor=" python-${test_target//* -python-/ } "
398
+ python_flavor=" python-${test_target//* -python-/ } " # <-- python-3.11
385
399
os_flavor=$( _get_os_flavor " ${test_target} " )
386
400
accelerator_flavor=$( _get_accelerator_flavor " ${test_target} " )
387
401
0 commit comments