From f279b755648e28a48263a45024b8a79d95684856 Mon Sep 17 00:00:00 2001 From: Dotta Date: Tue, 10 Nov 2026 20:26:20 -0600 Subject: [PATCH] test(restart-chaos): list every sandbox process in the Runner probe Co-Authored-By: Claude --- tests/restart-chaos/README.md | 2 +- tests/restart-chaos/daytona-runner-logs.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/restart-chaos/README.md b/tests/restart-chaos/README.md index dd4cf315ea9..97c2ddf7b32 100644 --- a/tests/restart-chaos/README.md +++ b/tests/restart-chaos/README.md @@ -367,7 +367,7 @@ minutes. In staging class R, recovery then found the remote Runner gone with an `index.json`, and to `runner_logs_captured` in the timeline. `daytona-runner-logs.ts` runs one fixed, read-only probe through the Daytona toolbox. It reads: - - the Runner and provider processes (`ps`); + - every process (`ps`), so a running tool shows as a child of the Runner; - memory, disk, and OOM lines from `dmesg`; - the tail of every `runnerd.stderr.log`, `runner-process.identity` and `runner-state.json`. diff --git a/tests/restart-chaos/daytona-runner-logs.ts b/tests/restart-chaos/daytona-runner-logs.ts index ccac482fa7d..8d6a71575e1 100644 --- a/tests/restart-chaos/daytona-runner-logs.ts +++ b/tests/restart-chaos/daytona-runner-logs.ts @@ -20,8 +20,8 @@ import { redactKnownSecrets } from "./evidence.js"; export const RUNNER_LOG_PROBE = [ 'echo "== observed_at $(date -u +%Y-%m-%dT%H:%M:%SZ)"', 'echo "== uptime"; cat /proc/uptime 2>/dev/null', - 'echo "== runner and provider processes"; ps -eo pid,ppid,sid,etimes,stat,rss,args 2>/dev/null' - + ' | grep -E "paperclip-runner|runnerd|opencode|codex|claude|acpx" | grep -v grep | cut -c1-400', + // Every process, not only the Runner's: a tool the agent started (for example T1's loop) shows as a child. + 'echo "== processes"; ps -eo pid,ppid,sid,etimes,stat,rss,args 2>/dev/null | cut -c1-400 | head -n 120', 'echo "== memory"; free -m 2>/dev/null', 'echo "== disk"; df -h / /tmp 2>/dev/null', 'echo "== oom"; dmesg 2>/dev/null | grep -iE "oom|killed process" | tail -n 20',