Skip to content

Commit 497ee5e

Browse files
committed
fix: update chaos testing log storage to include docker compose logs
Signed-off-by: Vladislav Polyakov <[email protected]>
1 parent 06021c9 commit 497ee5e

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

.github/workflows/slo.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ jobs:
9898

9999
- name: Prepare SLO Database
100100
run: |
101+
sleep 60
101102
./tests/slo/.bin/${{matrix.sdk.id}}_linux_amd64 create grpc://localhost:2136 /Root/testdb
102103
103104
- name: Run SLO Tests
@@ -111,6 +112,30 @@ jobs:
111112
-read-timeout 1000 \
112113
-write-timeout 1000 || true
113114
115+
- if: always()
116+
name: Store ydb healthcheck
117+
run: |
118+
curl -ik http://localhost:8765/healthcheck > ydb-healthcheck.log
119+
120+
- if: always()
121+
uses: actions/upload-artifact@v4
122+
with:
123+
name: ${{matrix.sdk.name}}-ydb-healthcheck.log
124+
path: ./ydb-healthcheck.log
125+
retention-days: 1
126+
127+
- if: always()
128+
name: Store ydb logs
129+
run: |
130+
docker compose -f .slo/compose.ydb.yaml logs > ydb.log
131+
132+
- if: always()
133+
uses: actions/upload-artifact@v4
134+
with:
135+
name: ${{matrix.sdk.name}}-ydb.log
136+
path: ./ydb.log
137+
retention-days: 1
138+
114139
- if: always()
115140
name: Store ydb chaos testing logs
116141
run: |
@@ -123,7 +148,7 @@ jobs:
123148
path: ./chaos-ydb.log
124149
retention-days: 1
125150

126-
- if: always()
151+
- if: success()
127152
name: Cleanup SLO Database
128153
run: |
129154
./tests/slo/.bin/${{matrix.sdk.id}}_linux_amd64 cleanup grpc://localhost:2136 /Root/testdb || true

0 commit comments

Comments
 (0)