File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -149,13 +149,13 @@ recover_artifacts() {
149
149
# all screenshots are in tests/e2e/screenshots if any
150
150
151
151
# get docker logs.
152
- # WARNING : dumping long logs might take hours!!
152
+ # NOTE : dumping logs sometimes hangs. Introducing a timeout
153
153
mkdir simcore_logs
154
- (docker service logs --timestamps --tail=300 --details ${SWARM_STACK_NAME} _webserver > simcore_logs/webserver.log 2>&1 ) || true
155
- (docker service logs --timestamps --tail=200 --details ${SWARM_STACK_NAME} _director > simcore_logs/director.log 2>&1 ) || true
156
- (docker service logs --timestamps --tail=200 --details ${SWARM_STACK_NAME} _storage > simcore_logs/storage.log 2>&1 ) || true
157
- (docker service logs --timestamps --tail=200 --details ${SWARM_STACK_NAME} _sidecar > simcore_logs/sidecar.log 2>&1 ) || true
158
- (docker service logs --timestamps --tail=200 --details ${SWARM_STACK_NAME} _catalog > simcore_logs/catalog.log 2>&1 ) || true
154
+ (timeout 30 docker service logs --timestamps --tail=300 --details ${SWARM_STACK_NAME} _webserver > simcore_logs/webserver.log 2>&1 ) || true
155
+ (timeout 30 docker service logs --timestamps --tail=200 --details ${SWARM_STACK_NAME} _director > simcore_logs/director.log 2>&1 ) || true
156
+ (timeout 30 docker service logs --timestamps --tail=200 --details ${SWARM_STACK_NAME} _storage > simcore_logs/storage.log 2>&1 ) || true
157
+ (timeout 30 docker service logs --timestamps --tail=200 --details ${SWARM_STACK_NAME} _sidecar > simcore_logs/sidecar.log 2>&1 ) || true
158
+ (timeout 30 docker service logs --timestamps --tail=200 --details ${SWARM_STACK_NAME} _catalog > simcore_logs/catalog.log 2>&1 ) || true
159
159
}
160
160
161
161
clean_up () {
You can’t perform that action at this time.
0 commit comments