Skip to content

Commit dd4dd14

Browse files
committed
wait a bit before dumping the logs
1 parent 960ae1f commit dd4dd14

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/ci-testing-deploy.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1903,6 +1903,9 @@ jobs:
19031903
run: ./ci/github/system-testing/e2e.bash install
19041904
- name: test
19051905
run: ./ci/github/system-testing/e2e.bash test
1906+
- name: wait before dumping logs
1907+
if: ${{ failure() }}
1908+
run: sleep 5
19061909
- name: dump docker logs
19071910
if: ${{ failure() }}
19081911
id: docker_logs_dump
@@ -1959,6 +1962,9 @@ jobs:
19591962
- name: test
19601963
run: |
19611964
./ci/github/system-testing/e2e-playwright.bash test
1965+
- name: wait before dumping logs
1966+
if: ${{ failure() }}
1967+
run: sleep 5
19621968
- name: dump docker logs
19631969
if: ${{ failure() }}
19641970
id: docker_logs_dump

ci/github/system-testing/e2e-playwright.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dump_docker_logs() {
3737
for service_id in $(docker service ls -q); do
3838
service_name=$(docker service inspect "$service_id" --format="{{.Spec.Name}}")
3939
echo "Dumping logs for $service_name"
40-
(timeout 30 docker service logs --timestamps --tail=400 --details "$service_id" >"$out_dir/$service_name.log" 2>&1) || true
40+
(timeout 30 docker service logs --timestamps --tail=500 --details "$service_id" >"$out_dir/$service_name.log" 2>&1) || true
4141
done
4242
}
4343

0 commit comments

Comments
 (0)