sre(runners): add graceful runner restart script with unit tests #8
Reference in New Issue
Block a user
Delete Branch "sre/add-runners-restart-safe-script"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
bin/runners-restart-safe.sh— gracefully restartsmolecule-runner-{1..8}containers, waiting for in-flight Gitea Actions tasks to drain before restarting, then verifying re-registration via thedeclare successfullylog line.scripts/test_runners_restart_safe.py(ShellCheck clean).Test plan
pytest scripts/test_runners_restart_safe.py— 4/4 passingshellcheck bin/runners-restart-safe.sh— cleanReferences
🤖 Generated with Claude Code