CI: run and collect cleanup tracer logs
In order to get better debug data for cleanup flakes. The argv is printed with 0 bytes so replace them with spaces to make the log readable for humans. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
parent
0b59f67c3a
commit
09ba5db035
|
@ -401,6 +401,9 @@ bindings_task:
|
||||||
server_log_artifacts:
|
server_log_artifacts:
|
||||||
path: ./podman-server.log
|
path: ./podman-server.log
|
||||||
type: text/plain
|
type: text/plain
|
||||||
|
cleanup_tracer_artifacts:
|
||||||
|
path: ./podman-cleanup-tracer.log
|
||||||
|
type: text/plain
|
||||||
df_script: '$SCRIPT_BASE/logcollector.sh df'
|
df_script: '$SCRIPT_BASE/logcollector.sh df'
|
||||||
audit_log_script: '$SCRIPT_BASE/logcollector.sh audit'
|
audit_log_script: '$SCRIPT_BASE/logcollector.sh audit'
|
||||||
journal_script: '$SCRIPT_BASE/logcollector.sh journal'
|
journal_script: '$SCRIPT_BASE/logcollector.sh journal'
|
||||||
|
|
|
@ -57,3 +57,4 @@ contrib/win-installer/shasums
|
||||||
contrib/win-installer/*.wixobj
|
contrib/win-installer/*.wixobj
|
||||||
contrib/win-installer/*.wixpdb
|
contrib/win-installer/*.wixpdb
|
||||||
contrib/win-installer/*.log
|
contrib/win-installer/*.log
|
||||||
|
podman-cleanup-tracer.log*
|
||||||
|
|
|
@ -458,6 +458,15 @@ msg "************************************************************"
|
||||||
((${SETUP_ENVIRONMENT:-0})) || \
|
((${SETUP_ENVIRONMENT:-0})) || \
|
||||||
die "Expecting setup_environment.sh to have completed successfully"
|
die "Expecting setup_environment.sh to have completed successfully"
|
||||||
|
|
||||||
|
if [[ "$UID" -eq 0 ]] && ((CONTAINER==0)); then
|
||||||
|
# start ebpf cleanup tracer (#23487)
|
||||||
|
msg "start ebpf cleanup tracer"
|
||||||
|
# replace zero bytes to make the log more readable
|
||||||
|
bpftrace $GOSRC/hack/podman_cleanup_tracer.bt |& \
|
||||||
|
tr '\0' ' ' >$GOSRC/podman-cleanup-tracer.log &
|
||||||
|
TRACER_PID=$!
|
||||||
|
fi
|
||||||
|
|
||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
if [[ "$PRIV_NAME" == "rootless" ]] && [[ "$UID" -eq 0 ]]; then
|
if [[ "$PRIV_NAME" == "rootless" ]] && [[ "$UID" -eq 0 ]]; then
|
||||||
# Remove /var/lib/cni, it is not required for rootless cni.
|
# Remove /var/lib/cni, it is not required for rootless cni.
|
||||||
|
@ -499,4 +508,9 @@ fi
|
||||||
|
|
||||||
showrun $handler
|
showrun $handler
|
||||||
|
|
||||||
|
if [[ -n "$TRACER_PID" ]]; then
|
||||||
|
# ignore any error here
|
||||||
|
kill "$TRACER_PID" || true
|
||||||
|
fi
|
||||||
|
|
||||||
showrun echo "finished"
|
showrun echo "finished"
|
||||||
|
|
Loading…
Reference in New Issue