Skip to content

Commit bcd6678

Browse files
committedJun 5, 2019
Fix post_failure for kind
Add a walk-around for missing ``started`` time in case k8s cluster failed to setup. Also copy full cluster setup logs to logdir for better debuging. Related-Bug: theopenlab/openlab#257
1 parent 2c2d199 commit bcd6678

File tree

1 file changed

+4
-1
lines changed
  • playbooks/kind-integration-test-arm64

1 file changed

+4
-1
lines changed
 

‎playbooks/kind-integration-test-arm64/run.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
shell:
4747
cmd: |
4848
export LOG_DIR='{{ k8s_log_dir }}'
49+
# Add a walk-around start time to the e2e.log file to make the
50+
# upload step running
51+
date +"%b %e %H:%M:%S.999: START" >> $LOG_DIR/e2e.log
4952
cd $GOPATH/src/k8s.io/test-infra/kubetest && go install .
5053
cd $GOPATH/src/k8s.io/kubernetes && kubetest \
5154
--provider=skeleton \
@@ -60,6 +63,6 @@
6063
--down \
6164
--test_args="--ginkgo.focus=\[Conformance\] --ginkgo.skip=\[Serial\]|Alpha|Kubectl|\[(Disruptive|Feature:[^\]]+|Flaky)\] --num-nodes=3" \
6265
--timeout=240m | tee $LOG_DIR/e2e.log
63-
cp $GOPATH/src/k8s.io/kubernetes/_artifacts/junit*.xml $LOG_DIR
66+
cp -R $GOPATH/src/k8s.io/kubernetes/_artifacts/* $LOG_DIR
6467
executable: /bin/bash
6568
environment: '{{ global_env }}'

0 commit comments

Comments
 (0)