Repository navigation
test(e2e): keep the crash output of a Ginkgo worker - #11674
Conversation
|
❗ By default, the pull request is configured to backport to all release branches.
|
816d73f to
19fd1e9
Compare
|
Tested on kind with a temporary commit (reverted right after) that plants an unrecovered panic in a spec: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/38868387351 The worker died with |
c13a271 to
3ae3488
Compare
3ae3488 to
ee40191
Compare
ee40191 to
a99c41a
Compare
|
/test ft=smoke |
|
@litaocdl, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/39386067614 |
When a parallel worker panics, Ginkgo reports only that a process disappeared. The panic text is lost because the output interceptor holds stderr while a spec runs, and the job summary says "0 Failure(s) Found!". Each worker now copies its crash output to out/crash-proc<N>-<pid>.log and records its running spec in out/current-proc<N>-<pid>.txt, so a worker killed from outside still names the spec. Both files are removed on a clean exit and are collected with the failure artifacts. The report script prints them with any kernel OOM messages, and an empty Ginkgo report is named as such instead of "list index out of range". Assisted-by: Claude Signed-off-by: Marco Nenciarini <[email protected]>
Signed-off-by: Marco Nenciarini <[email protected]>
This reverts commit 816d73f185c52a4d2e2505c0385acbf17b408a34. Signed-off-by: Marco Nenciarini <[email protected]>
a99c41a to
2ac6657
Compare
When a parallel worker panics, Ginkgo reports only that a process disappeared. The panic text is lost because the output interceptor holds stderr while a spec runs, and the job summary says "0 Failure(s) Found!". Each worker now copies its crash output to `out/crash-proc<N>-<pid>.log` and records its running spec in `out/current-proc<N>-<pid>.txt`, so a worker killed from outside still names the spec. Both files are removed on a clean exit and are collected with the failure artifacts. The report script prints them with any kernel OOM messages, and an empty Ginkgo report is named as such instead of "list index out of range". Assisted-by: Claude --------- Signed-off-by: Marco Nenciarini <[email protected]> (cherry picked from commit 830a11d)
When a parallel worker panics, Ginkgo reports only that a process disappeared. The panic text is lost because the output interceptor holds stderr while a spec runs, and the job summary says "0 Failure(s) Found!". Each worker now copies its crash output to `out/crash-proc<N>-<pid>.log` and records its running spec in `out/current-proc<N>-<pid>.txt`, so a worker killed from outside still names the spec. Both files are removed on a clean exit and are collected with the failure artifacts. The report script prints them with any kernel OOM messages, and an empty Ginkgo report is named as such instead of "list index out of range". Assisted-by: Claude --------- Signed-off-by: Marco Nenciarini <[email protected]> (cherry picked from commit 830a11d)
When a parallel worker panics, Ginkgo reports only that a process disappeared. The panic text is lost because the output interceptor holds stderr while a spec runs, and the job summary says "0 Failure(s) Found!".
Each worker now copies its crash output to
out/crash-proc<N>-<pid>.logand records its running spec inout/current-proc<N>-<pid>.txt, so a worker killed from outside still names the spec. Both files are removed on a clean exit and are collected with the failure artifacts. The report script prints them with any kernel OOM messages, and an empty Ginkgo report is named as such instead of "list index out of range".Assisted-by: Claude