review fixes: relaunch test without pgrep, clear stale marker at start, VERSION 2026.11.10

- test-haproxy-supervisor-relaunch.py used `pgrep -P`, which the image does not
  ship (no procps): the image build failed with FileNotFoundError in 3 of the 4
  real-haproxy tests. Children are now read from /proc.
- haproxy-supervisor.sh: clear /tmp/haproxy-restarting at start-up. A
  supervisor SIGKILLed mid-recovery (docker restart) runs no EXIT trap and
  /tmp survives a restart, so the marker would otherwise go stale.
- VERSION 2026.11.10: merging to main publishes :<VERSION>; 2026.11.9 is
  already published and must not be overwritten with different content.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
This commit is contained in:
shadowdaoandClaude Opus 5.5 committed 2026-11-25 18:10:03 -08:00
1 parent 6df8d4b332
commit 4ced47941d
3 files changed
+19 -4

No files matched your search

+4
View File
@@ -106,6 +106,10 @@ _stderr_log() { # same fallback as haproxy_manager._stderr_log_path()
_marker_set() { printf '%s %s\n' "$(date +%s)" "$$" >"${MARKER}" 2>/dev/null || true; }
_marker_clear() { rm -f "${MARKER}" 2>/dev/null || true; }
trap _marker_clear EXIT
# A marker left by a supervisor that was SIGKILLed mid-recovery (`docker restart`
# kills everything after PID 1 exits; no EXIT trap runs) survives in /tmp, which
# a restart does not reset. This process never started that recovery: drop it.
_marker_clear
# Direct bash relaunch. Return 0 = haproxy is up (started here or already
# running), 1 = caller must fall back to ensure_haproxy.py.