Skip to content

ci: Improve binary collection for coredump analysis #32172

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

Merged
merged 1 commit into from
Apr 14, 2025
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: 5 additions & 3 deletions ci/plugins/mzcompose/hooks/pre-exit
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,27 @@ ps aux > ps-aux.log
docker ps -a --no-trunc > docker-ps-a.log
docker stats --all --no-stream > docker-stats.log

echo "Downing docker containers"
run down --volumes

mv "$HOME"/cores .

if find cores -name 'core.*' | grep -q .; then
# Best effort attempt to fetch interesting executables to get backtrace of core files
bin/ci-builder run stable cp /mnt/build/debug/clusterd cores/ || true
bin/ci-builder run stable cp /mnt/build/debug/environmentd cores/ || true
bin/ci-builder run stable cp /mnt/build/debug/materialized cores/ || true
bin/ci-builder run stable cp /mnt/build/debug/mz-balancerd cores/balancerd || true
bin/ci-builder run stable cp /mnt/build/debug/sqllogictest cores/ || true
run cp sqllogictest:/usr/local/bin/sqllogictest cores/ || true
run cp sqllogictest:/usr/local/bin/clusterd cores/ || true
run cp materialized:/usr/local/bin/environmentd cores/ || true
run cp materialized:/usr/local/bin/clusterd cores/ || true
run cp materialized:/usr/local/bin/materialized cores/ || true
run cp balancerd:/usr/local/bin/balancerd cores/ || true
run cp testdrive:/usr/local/bin/testdrive cores/ || true
fi

echo "Downing docker containers"
run down --volumes

echo "Finding core files"
find cores -name 'core.*' | while read -r core; do
exe=$(echo "$core" | sed -e "s/core\.\(.*\)\.[0-9]*/\1/" -e "s/.*\!//")
Expand Down