From 67fa74bbe5dd9ea18dbf8815dc411a8193eecbb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Germ=C3=A1n=20Grandas?= Date: Wed, 18 Sep 2024 10:43:35 -0500 Subject: [PATCH 1/2] Fixing issue converting notebook to script. --- cloudbuild.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 3e56f9085..897273f10 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -266,7 +266,7 @@ steps: # Wait for jupyterhub to trigger notebook pod startup sleep 5s kubectl wait --for=condition=Ready pod/jupyter-admin -n rag-$SHORT_SHA-$_BUILD_ID --timeout=500s - kubectl exec -it -n rag-$SHORT_SHA-$_BUILD_ID jupyter-admin -c notebook -- jupyter nbconvert --to script /data/rag-data-ingest-with-kubernetes-docs.ipynb + kubectl exec -it -n rag-$SHORT_SHA-$_BUILD_ID jupyter-admin -c notebook -- jupyter nbconvert --to script /data/rag-data-ingest-with-kubernetes-docs.ipynb --to python kubectl exec -it -n rag-$SHORT_SHA-$_BUILD_ID jupyter-admin -c notebook -- ipython /data/rag-data-ingest-with-kubernetes-docs.py python3 ./applications/rag/tests/test_rag.py "http://127.0.0.1:8081/prompt" @@ -395,4 +395,4 @@ availableSecrets: - versionName: projects/gke-ai-eco-dev/secrets/cloudbuild-kaggle-username/versions/latest env: 'KAGGLE_USERNAME' - versionName: projects/gke-ai-eco-dev/secrets/cloudbuild-kaggle-key/versions/latest - env: 'KAGGLE_KEY' \ No newline at end of file + env: 'KAGGLE_KEY' From 819773979729768d58d663100fcf24334767da12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Germ=C3=A1n=20Grandas?= Date: Wed, 18 Sep 2024 11:29:38 -0500 Subject: [PATCH 2/2] Update cloudbuild.yaml to fix generation of script. --- cloudbuild.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 897273f10..feb900484 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -266,7 +266,7 @@ steps: # Wait for jupyterhub to trigger notebook pod startup sleep 5s kubectl wait --for=condition=Ready pod/jupyter-admin -n rag-$SHORT_SHA-$_BUILD_ID --timeout=500s - kubectl exec -it -n rag-$SHORT_SHA-$_BUILD_ID jupyter-admin -c notebook -- jupyter nbconvert --to script /data/rag-data-ingest-with-kubernetes-docs.ipynb --to python + kubectl exec -it -n rag-$SHORT_SHA-$_BUILD_ID jupyter-admin -c notebook -- jupyter nbconvert --to python /data/rag-data-ingest-with-kubernetes-docs.ipynb kubectl exec -it -n rag-$SHORT_SHA-$_BUILD_ID jupyter-admin -c notebook -- ipython /data/rag-data-ingest-with-kubernetes-docs.py python3 ./applications/rag/tests/test_rag.py "http://127.0.0.1:8081/prompt"