56
56
uses : ./common/github-actions/nvidia-gpu-setup
57
57
58
58
- name : Setup and start KinD cluster
59
+ id : kind-install
59
60
uses : ./common/github-actions/kind
60
61
61
62
- name : Install NVidia GPU operator for KinD
83
84
export CODEFLARE_TEST_TIMEOUT_GPU_PROVISIONING=30m
84
85
85
86
export CODEFLARE_TEST_OUTPUT_DIR=${{ env.TEMP_DIR }}
86
- echo "CODEFLARE_TEST_OUTPUT_DIR=${CODEFLARE_TEST_OUTPUT_DIR}" >> $GITHUB_ENV
87
87
88
88
set -euo pipefail
89
89
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:
92
92
if : always() && steps.deploy.outcome == 'success'
93
93
run : |
94
94
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
96
96
97
97
- name : Print Kueue operator logs
98
98
if : always() && steps.deploy.outcome == 'success'
99
99
run : |
100
100
echo "Printing Kueue operator logs"
101
101
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
103
103
104
104
- name : Print KubeRay operator logs
105
105
if : always() && steps.deploy.outcome == 'success'
106
106
run : |
107
107
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
109
109
110
110
- name : Export all KinD pod logs
111
111
uses : ./common/github-actions/kind-export-logs
112
- if : always() && steps.deploy .outcome == 'success'
112
+ if : always() && steps.kind-install .outcome == 'success'
113
113
with :
114
- output-directory : ${CODEFLARE_TEST_OUTPUT_DIR }
114
+ output-directory : ${TEMP_DIR }
115
115
116
116
- name : Upload logs
117
117
uses : actions/upload-artifact@v4
@@ -120,7 +120,7 @@ jobs:
120
120
name : logs
121
121
retention-days : 10
122
122
path : |
123
- ${{ env.CODEFLARE_TEST_OUTPUT_DIR }}/**/*.log
123
+ ${{ env.TEMP_DIR }}/**/*.log
124
124
125
125
- name : Post notification about failure to a Slack channel in case of push event
126
126
if : failure() && github.event_name == 'push'
0 commit comments