diff --git a/cloudbuild.yaml b/cloudbuild.yaml index c7b6d27a6..a244f40f6 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -249,8 +249,14 @@ steps: cd /workspace/applications/rag/tests python3 test_frontend.py "127.0.0.1:8081" echo "pass" > /workspace/rag_frontend_result.txt + sleep 5s + + cd /workspace/ + find . -type f -name "*.ipynb" > notebook_file_list.txt + while IFS= read -r line; do gsutil cp $line gs://gke-aieco-rag-$SHORT_SHA-$_BUILD_ID/notebooks/ ; done < notebook_file_list.txt + ray job submit --working-dir . --address=http://127.0.0.1:8265 -- jupyter nbconvert --to notebook --execute /notebooks/rag-kaggle-ray-sql-latest.ipynb allowFailure: true - waitFor: ['cleanup jupyterhub', 'cleanup ray cluster'] + waitFor: ['cleanup jupyterhub', 'cleanup ray cluster'] - id: 'cleanup rag' name: 'gcr.io/$PROJECT_ID/terraform'