diff options
| author | Hermes Agent <hermes@localhost> | 2026-08-12 00:57:51 +0000 |
|---|---|---|
| committer | Hermes Agent <hermes@localhost> | 2026-08-12 00:57:51 +0000 |
| commit | facbf9629f45b95d34a4d0844e617f87a35be5ff (patch) | |
| tree | 4bca6a3777ba23e5d122a1e2ca3cc785b978d122 /scripts | |
| parent | 5e840ed4ce8097f0c53abdc3c5b2a25d052611fd (diff) | |
Add autonomous build progress heartbeat
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/progress-heartbeat.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/progress-heartbeat.sh b/scripts/progress-heartbeat.sh new file mode 100755 index 0000000..ed4a7fa --- /dev/null +++ b/scripts/progress-heartbeat.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +set -euo pipefail +repo=/mnt/hermes-workspace/alt-controller-image-rs +printf 'Native image-builder heartbeat\n' +printf 'UTC: '; date -u '+%Y-%m-%dT%H:%M:%SZ' +printf 'HEAD: '; git -C "$repo" log -1 --format='%h %ad %s' --date=iso-strict +printf 'Worker: ' +if pgrep -af 'hermes verify --json|alt-controller-image|hsh-install|hsh --initroot' >/dev/null; then + printf 'active\n' +else + printf 'idle between scheduled runs\n' +fi +printf 'Working tree: ' +if test -n "$(git -C "$repo" status --porcelain)"; then + printf 'uncommitted changes present\n' +else + printf 'clean\n' +fi |