Merge pull request #2486 from ludovic111/fix/parity-reap-orphans
🤖 Agent: parity.py reaps the harness processes a failed or timed-out run leaves behind; parity passed on playhorizon.
This commit is contained in:
@@ -432,6 +432,9 @@ Releases ship often, so nothing they leave behind may grow without bound.
|
||||
(`~/.actions-runners/runner-gc.sh`, plist `dev.horizon.runner-gc`), never from a pull request's checkout. It skips a
|
||||
runner in a job, removes a checkout's cargo build folders past 12 GB (`MAX_TARGET_GB`) and harness work folders
|
||||
under `.local/` untouched for 3 days (`STALE_DAYS`), and keeps the 2 newest shared preparations (`KEEP_PREPARED`)
|
||||
while no runner works. Runner builds go through the machine's sccache (`tools/ci/runner-env.sh`), so what it removes
|
||||
while no runner works. It also stops harness JVMs (vanilla servers, oracles) left orphaned for 3 hours
|
||||
(`ORPHAN_HOURS`): parent gone, command line under a runner's checkout or a worktree's `.local/`. `tools/parity.py`
|
||||
stops its own harnesses on SIGTERM and SIGHUP (a cancelled job), so these come only from a SIGKILL or a harness run
|
||||
by hand. Runner builds go through the machine's sccache (`tools/ci/runner-env.sh`), so what it removes
|
||||
comes back from the cache. Update the copy after changing the script:
|
||||
`ssh macmini 'curl -fsSL https://raw.githubusercontent.com/ludovic111/horizon/main/tools/ci/runner-gc.sh -o ~/.actions-runners/runner-gc.sh'`.
|
||||
|
||||
Reference in New Issue
Block a user