Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ ci: collect debug information about leftover processes #8734

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions scripts/ci-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@ cleanup() {

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

for PID in $(ps -eo pid=); do
echo "> PID=$PID"
echo ">> /proc/${PID}/status"
cat "/proc/${PID}/status" || true
echo ">> /proc/${PID}/stack"
cat "/proc/${PID}/stack" || true
done >> "${ARTIFACTS_LOCAL}/processes-proc-information.txt"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On my machine that is 1,4 MB of data. I assume it's significantly less in the Pod at this time, but let's keep an eye on it

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could have just checked in e2e-main... 12483 bytes seems okay

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could also compress the data. But yes, should be way less due to way less pids inside the prowjob pod.


# Verify that no containers are running at this time
# Note: This verifies that all our tests clean up clusters correctly.
if [[ ! "$(docker ps -q | wc -l)" -eq "0" ]]
Expand Down