Commit 4986779
committed
ops(ci): upload full demo cluster log on Jepsen failure
The previous "Dump demo cluster log on failure" step ran
`tail -n 500 /tmp/elastickv-demo.log` which, for a 3-minute
workload, captures only the startup lines and discards the
window where the actual anomaly happens. Investigation of the
scheduled run 26198185540 (which surfaced a real
:duplicate-elements anomaly) was blocked because the GH UI
showed only server-startup logs, not the start_ts / commit_ts /
raft term / write-conflict / lock-resolver events that would
identify the offending code path.
Change:
- Inline dump now prints head + tail (200 / 1000 lines for the
single-process demo, 200 / 500 per node for the 3-node demo)
so the GH UI still shows enough at-a-glance.
- Full log uploaded as a 14-day artifact (`elastickv-demo-log`
for the scheduled workflow, `elastickv-demo-logs` with three
files for the per-push workflow). 14 days mirrors the
existing Jepsen-store artifact retention so logs and
history.txt can be correlated for the same run.
Self-review:
1. Data loss — N/A.
2. Concurrency — N/A.
3. Performance — only fires on failure; artifact upload is a
single tar-gz of a multi-MB log, negligible CI time.
4. Data consistency — N/A.
5. Test coverage — workflow change; no Go-side test surface.
Verification = next failing scheduled run produces a
downloadable artifact.1 parent c9a7870 commit 4986779
2 files changed
Lines changed: 49 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
233 | 254 | | |
234 | 255 | | |
235 | 256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
197 | 224 | | |
198 | 225 | | |
199 | 226 | | |
| |||
0 commit comments