Files
felhom.eu/documentation/audits/linetest-2026-10-27/tools/watch.sh
T
admin acd79a78cc
gates / gates (push) Successful in 2m29s
Release block 2026-10-27: hub 0.173.0, agent 0.167.0, controller 0.346.0 released; R-1250 fixed the same day and proven; ten rows closed, R-1312 opened
- audits/linetest-2026-10-27/: the hold failed four times as built (qBittorrent drains ~14 s), the fix 710ceac, the test
  through the hold on 0.346.0-rc.1 (94.5 Mbit/s, the limit back exactly), teardown.
- audits/release-2026-10-27/: builds, agent release + signed updates, per-box and global floors, box walk.
- 09 §3 decisions 269 (R-1250 fix the same day) and 270 (R-1218 live proof waived); D55's window result in 268.
- 08 §: the drain-wait design line. STATUS, CONTEXT, register (223 -> 214).
2026-10-27 15:45:59 +01:00

16 lines
1.3 KiB
Bash
Executable File

#!/bin/bash
# watch.sh <evidence-dir> — on DooPlex, 2026-10-27 from ~09:45 CET: sample every 60 s; stop 20 min after the agent's
# measurement AND the controller's „limit is back" line, or at 16:05 CET. Reads only; forces nothing.
E=$1; since=$(date -u +%Y-%m-%dT%H:%M:%SZ); done_at=""
while true; do
ssh -o ConnectTimeout=20 demo-hp "pct exec 9201 -- sh /root/r1250/gsample.sh" >> $E/samples.txt 2>&1
ssh -o ConnectTimeout=20 demo-hp "journalctl -u felhom-agent --since '$since' --no-pager | grep -iE 'linetest'" > $E/agent-linetest.txt 2>&1
ssh -o ConnectTimeout=20 demo-hp "pct exec 9201 -- sh -c 'docker logs --since $since felhom-controller 2>&1 | grep -iE \"upwatch|line test|qbittorrent.*limit\" | grep -v DEBUG'" > $E/controller-upwatch.txt 2>&1
if [ -z "$done_at" ] && grep -q "upload line measured" $E/agent-linetest.txt && grep -q "limit is back" $E/controller-upwatch.txt; then
done_at=$(date +%s); echo "$(date -u +%T) TEST DONE — 20 more minutes for the 50 % rule's tick" >> $E/samples.txt
fi
[ -n "$done_at" ] && [ $(( $(date +%s) - done_at )) -ge 1200 ] && { echo "$(date -u +%T) watch end (done)" >> $E/samples.txt; exit 0; }
[ "$(TZ=Europe/Budapest date +%H%M)" -ge 1605 ] && { echo "$(date -u +%T) watch end (16:05 CET)" >> $E/samples.txt; exit 0; }
sleep 60
done