@@ -113,6 +113,9 @@ jobs:
113
113
runs-on : [self-hosted, ubuntu2004]
114
114
if : ${{ github.repository == 'alibaba/GraphScope' }}
115
115
needs : [gremlin-test]
116
+ environment :
117
+ JAVA_HOME : /usr/lib/jvm/default-java
118
+ GS_TEST_DIR : ${{ github.workspace }}/gstest
116
119
steps :
117
120
- uses : actions/checkout@v3
118
121
with :
@@ -149,9 +152,6 @@ jobs:
149
152
sudo /etc/init.d/ssh start
150
153
151
154
- name : Python Test with Helm Deployment
152
- env :
153
- JAVA_HOME : /usr/lib/jvm/default-java
154
- GS_TEST_DIR : ${{ github.workspace }}/gstest
155
155
run : |
156
156
# groot.tar.gz is needed for offline_load.sh
157
157
# see .github/workflows/hadoop_scripts/offline_load.sh.template
@@ -173,7 +173,26 @@ jobs:
173
173
cd ${GITHUB_WORKSPACE}/charts
174
174
helm install ci --set image.tag=${SHORT_SHA} ./graphscope-store
175
175
helm test ci --timeout 5m0s
176
+ mkdir -p ${{ github.workspace }}/helm-deployment-logs
176
177
178
+ - name : Export kubernetes logs
179
+ uses : dashanji/kubernetes-log-export-action@v3
180
+ if : ${{ failure() }}
181
+ env :
182
+ SHOW_TIMESTAMPS : ' true'
183
+ OUTPUT_DIR : ${{ github.workspace }}/helm-deployment-logs
184
+ # use wildcard here to match the namespaces that you want to export logs
185
+ NAMESPACES : default
186
+
187
+ - name : upload the k8s logs to artifact
188
+ uses : actions/upload-artifact@v2
189
+ if : ${{ failure() }}
190
+ with :
191
+ name : helm-deployment-logs
192
+ path : ${{ github.workspace }}/helm-deployment-logs
193
+
194
+ - name : Test the helm deployment
195
+ run : |
177
196
# 1. get gss service endpoint
178
197
export GRPC_PORT=$(kubectl get --namespace default -o jsonpath="{.spec.ports[0].nodePort}" services ci-graphscope-store-frontend)
179
198
export GREMLIN_PORT=$(kubectl get --namespace default -o jsonpath="{.spec.ports[1].nodePort}" services ci-graphscope-store-frontend)
@@ -207,6 +226,26 @@ jobs:
207
226
sleep 30
208
227
cd ${GITHUB_WORKSPACE}/charts
209
228
helm install ci --set image.tag=${SHORT_SHA} ./graphscope-store
229
+ mkdir -p ${{ github.workspace }}/helm-deployment-with-pv-logs
230
+
231
+ - name : Export kubernetes logs
232
+ uses : dashanji/kubernetes-log-export-action@v3
233
+ if : ${{ failure() }}
234
+ env :
235
+ SHOW_TIMESTAMPS : ' true'
236
+ OUTPUT_DIR : ${{ github.workspace }}/helm-deployment-logs
237
+ # use wildcard here to match the namespaces that you want to export logs
238
+ NAMESPACES : default
239
+
240
+ - name : upload the k8s logs to artifact
241
+ uses : actions/upload-artifact@v2
242
+ if : ${{ failure() }}
243
+ with :
244
+ name : helm-deployment-logs
245
+ path : ${{ github.workspace }}/helm-deployment-logs
246
+
247
+ - name : Python Test with Helm Deployment and PersistentVolume
248
+ run : |
210
249
# helm test and python test on the restarted store
211
250
export GRPC_PORT=$(kubectl get --namespace default -o jsonpath="{.spec.ports[0].nodePort}" services ci-graphscope-store-frontend)
212
251
export GREMLIN_PORT=$(kubectl get --namespace default -o jsonpath="{.spec.ports[1].nodePort}" services ci-graphscope-store-frontend)
0 commit comments