diff --git a/.github/workflows/linux-control-agent.yml b/.github/workflows/linux-control-agent.yml index bdba09b..d854788 100644 --- a/.github/workflows/linux-control-agent.yml +++ b/.github/workflows/linux-control-agent.yml @@ -82,6 +82,12 @@ jobs: sudo sh -c "tr '\0' '\n' >"$smoke_log" 2>&1 || true sudo sh -c "printf 'wchan='; cat /proc/$main_pid/wchan" >>"$smoke_log" 2>&1 || true + sudo ls -l "/proc/$main_pid/fd" >>"$smoke_log" 2>&1 || true + sudo lsof -p "$main_pid" >>"$smoke_log" 2>&1 || true + if command -v strace >/dev/null 2>&1; then + sudo timeout 3 strace -f -p "$main_pid" -e trace=file,network,read,write,poll,select \ + >>"$smoke_log" 2>&1 || true + fi fi message="$(tail -c 6000 "$smoke_log" | sed ':a;N;$!ba;s/%/%25/g;s/\r/%0D/g;s/\n/%0A/g')" printf '::error title=%s::%s\n' "$title" "$message"