5656 uses : ./common/github-actions/nvidia-gpu-setup
5757
5858 - name : Setup and start KinD cluster
59+ id : kind-install
5960 uses : ./common/github-actions/kind
6061
6162 - name : Install NVidia GPU operator for KinD
8384 export CODEFLARE_TEST_TIMEOUT_GPU_PROVISIONING=30m
8485
8586 export CODEFLARE_TEST_OUTPUT_DIR=${{ env.TEMP_DIR }}
86- echo "CODEFLARE_TEST_OUTPUT_DIR=${CODEFLARE_TEST_OUTPUT_DIR}" >> $GITHUB_ENV
8787
8888 set -euo pipefail
8989 go test -timeout 60m -v -skip "^Test.*Cpu$" ./test/e2e -json 2>&1 | tee ${CODEFLARE_TEST_OUTPUT_DIR}/gotest.log | gotestfmt
@@ -92,26 +92,26 @@ jobs:
9292 if : always() && steps.deploy.outcome == 'success'
9393 run : |
9494 echo "Printing CodeFlare operator logs"
95- kubectl logs -n openshift-operators --tail -1 -l app.kubernetes.io/name=codeflare-operator | tee ${CODEFLARE_TEST_OUTPUT_DIR }/codeflare-operator.log
95+ kubectl logs -n openshift-operators --tail -1 -l app.kubernetes.io/name=codeflare-operator | tee ${TEMP_DIR }/codeflare-operator.log
9696
9797 - name : Print Kueue operator logs
9898 if : always() && steps.deploy.outcome == 'success'
9999 run : |
100100 echo "Printing Kueue operator logs"
101101 KUEUE_CONTROLLER_POD=$(kubectl get pods -n kueue-system | grep kueue-controller | awk '{print $1}')
102- kubectl logs -n kueue-system --tail -1 ${KUEUE_CONTROLLER_POD} | tee ${CODEFLARE_TEST_OUTPUT_DIR }/kueue.log
102+ kubectl logs -n kueue-system --tail -1 ${KUEUE_CONTROLLER_POD} | tee ${TEMP_DIR }/kueue.log
103103
104104 - name : Print KubeRay operator logs
105105 if : always() && steps.deploy.outcome == 'success'
106106 run : |
107107 echo "Printing KubeRay operator logs"
108- kubectl logs -n ray-system --tail -1 -l app.kubernetes.io/name=kuberay | tee ${CODEFLARE_TEST_OUTPUT_DIR }/kuberay.log
108+ kubectl logs -n ray-system --tail -1 -l app.kubernetes.io/name=kuberay | tee ${TEMP_DIR }/kuberay.log
109109
110110 - name : Export all KinD pod logs
111111 uses : ./common/github-actions/kind-export-logs
112- if : always() && steps.deploy .outcome == 'success'
112+ if : always() && steps.kind-install .outcome == 'success'
113113 with :
114- output-directory : ${CODEFLARE_TEST_OUTPUT_DIR }
114+ output-directory : ${TEMP_DIR }
115115
116116 - name : Upload logs
117117 uses : actions/upload-artifact@v4
@@ -120,7 +120,7 @@ jobs:
120120 name : logs
121121 retention-days : 10
122122 path : |
123- ${{ env.CODEFLARE_TEST_OUTPUT_DIR }}/**/*.log
123+ ${{ env.TEMP_DIR }}/**/*.log
124124
125125 - name : Post notification about failure to a Slack channel in case of push event
126126 if : failure() && github.event_name == 'push'
0 commit comments