Skip to content

Commit 149fd9c

Browse files
authored
Merge pull request #8734 from chrischdi/pr-leftover-ps-proc-info
✨ ci: collect debug information about leftover processes
2 parents 74e4592 + d64fd48 commit 149fd9c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/ci-e2e.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,14 @@ cleanup() {
9090

9191
ps -ef > "${ARTIFACTS_LOCAL}/processes-ps-ef.txt" || true
9292

93+
for PID in $(ps -eo pid=); do
94+
echo "> PID=$PID"
95+
echo ">> /proc/${PID}/status"
96+
cat "/proc/${PID}/status" || true
97+
echo ">> /proc/${PID}/stack"
98+
cat "/proc/${PID}/stack" || true
99+
done >> "${ARTIFACTS_LOCAL}/processes-proc-information.txt"
100+
93101
# Verify that no containers are running at this time
94102
# Note: This verifies that all our tests clean up clusters correctly.
95103
if [[ ! "$(docker ps -q | wc -l)" -eq "0" ]]

0 commit comments

Comments
 (0)