diff --git a/messung/farm/allinprobe/ablauf-final.sh b/messung/farm/allinprobe/ablauf-final.sh index b8ef2521..b1f6e276 100755 --- a/messung/farm/allinprobe/ablauf-final.sh +++ b/messung/farm/allinprobe/ablauf-final.sh @@ -1,13 +1,13 @@ #!/bin/zsh # Farm 05.12. abends: kompletter Ablauf fuer den von main bestaetigten Tor-Commit der All-in-Probe (claude/allin-probe-rein). -# ablauf-final.sh +# ablauf-final.sh [] [] # 1) Bau einreihen (starte-bau.sh), auf Ende warten, Exe-SHA lesen # 2) Exe nach D:\Projects\pf-temperatur\ kopieren (>= 3 GB frei bleiben, sonst C:\pf-live\), SHA pruefen # 3) Schalterdatei = A0 + MOTOR_ALLIN_PROBE(_BAND) in MOTOR_ZEILE, MOTOR_EXE auf den Live-Ort; nach Windows und SSD, SHA # 4) Tor 1 + Aus-Pruefung einreihen; Tor 5/3/8 gehalten, frei nach allen 16 Teilen set -e -C=$1; K=${C[1,8]}; H=${0:a:h}; S=${TMPDIR:-/tmp}; Q='D:\Projects\pf-batterie\messung\farm\schlange' -TMPDIR=$S $H/starte-bau.sh $C +C=$1; ZW=${2:-claude/allin-probe-rein}; ZN=${3:-}; K=${C[1,8]}; H=${0:a:h}; S=${TMPDIR:-/tmp}; Q='D:\Projects\pf-batterie\messung\farm\schlange' +ZWEIG=$ZW TMPDIR=$S $H/starte-bau.sh $C while ! ssh Marc@192.168.1.201 "powershell -NoProfile -Command \"gc $Q\starter.log -Tail 60 | Select-String 'fertig allinprobe-bau-$K'\"" 2>/dev/null | grep -q fertig; do sleep 10; done X=$(ssh Marc@192.168.1.201 "powershell -NoProfile -Command \"gc $Q\logs\allinprobe-bau-$K.log -Tail 4\"" 2>/dev/null | grep -o 'SHA256 [0-9A-F]*' | cut -c8-) [ -n "$X" ] || { echo "BAU OHNE SHA - Abbruch"; exit 1; } @@ -16,16 +16,22 @@ ORT=$(ssh Marc@192.168.1.201 "powershell -NoProfile -Command \"if ((Get-PSDrive ssh Marc@192.168.1.201 "powershell -NoProfile -Command \"\$z='$ORT\pokerbench-allinprobe-$K.exe'; if (-not (Test-Path \$z)) { Copy-Item C:\pf-arbeit\pokerbench-allinprobe-$K.exe \$z }; (Get-FileHash \$z).Hash\"" 2>/dev/null | tr -d '\r' | read Y [ "$Y" = "$X" ] || { echo "SHA LIVE-ORT $Y != $X - Abbruch"; exit 1; } echo "LIVE-EXE $ORT\\pokerbench-allinprobe-$K.exe SHA gleich" -python3 - "$S/ks-ap.txt" "$S/ks-$K.txt" "$ORT\\pokerbench-allinprobe-$K.exe" "$C" <<'PY' +python3 - "$S/ks-ap.txt" "$S/ks-$K.txt" "$ORT\\pokerbench-allinprobe-$K.exe" "$C" "$ZN" <<'PY' import sys -quelle, ziel, exe, c = sys.argv[1:5] +quelle, ziel, exe, c, zn = sys.argv[1:6] z = open(quelle, 'rb').read().decode('utf-8'); nl = '\r\n' if '\r\n' in z else '\n' L = z.split(nl) L[0] = '# 05.12. abends (farm, main bestaetigt): A0 + All-in-Probe = A0-Schalter (80D9D8E9) plus MOTOR_ALLIN_PROBE=1 und MOTOR_ALLIN_PROBE_BAND in MOTOR_ZEILE; Tor-Commit %s (claude/allin-probe-rein); MOTOR_EXE am Live-Ort. Ohne MOTOR_ALLIN_PROBE_ALT_FLACH.' % c n = 0 for i, l in enumerate(L): if l.startswith('MOTOR_EXE='): L[i] = 'MOTOR_EXE=' + exe; n += 1 -assert n == 1 and sum(l.startswith('MOTOR_ZEILE=') and 'MOTOR_ALLIN_PROBE=1' in l for l in L) == 1 +if zn: + neu = open(zn, encoding='utf-8-sig').read().strip() + neu = [x.split('=', 1)[1].strip() for x in neu.splitlines() if x.startswith('MOTOR_ZEILE=')][0] if 'MOTOR_ZEILE=' in neu else neu + for i, l in enumerate(L): + if l.startswith('MOTOR_ZEILE='): L[i] = 'MOTOR_ZEILE=' + neu + L[0] += ' MOTOR_ZEILE von main (' + zn.split('/')[-1] + ').' +assert n == 1 and sum(l.startswith('MOTOR_ZEILE=') for l in L) == 1 open(ziel, 'wb').write(nl.join(L).encode('utf-8')) PY SH=$(shasum -a 256 $S/ks-$K.txt | cut -c1-64 | tr a-f A-F) diff --git a/messung/farm/allinprobe/starte-bau.sh b/messung/farm/allinprobe/starte-bau.sh index b08aa1a4..c4310621 100755 --- a/messung/farm/allinprobe/starte-bau.sh +++ b/messung/farm/allinprobe/starte-bau.sh @@ -2,7 +2,7 @@ # Aufruf: starte-bau.sh - archiviert claude/allin-probe@ (entscheiden/motor + .cargo), kopiert nach Windows, reiht den Bau ein (Rang -20, kurz, 16 Faeden) set -e C=$1; K=${C[1,8]}; R=/Users/marcmintel/Projects/pokerfreak; S=${TMPDIR:-/tmp} -git -C $R fetch -q origin claude/allin-probe-rein +git -C $R fetch -q origin ${ZWEIG:-claude/allin-probe-rein} git -C $R cat-file -e $C^{commit} git -C $R archive --format=tar -o $S/allinprobe-$K.tar $C .cargo entscheiden/motor scp -q $S/allinprobe-$K.tar Marc@192.168.1.201:C:/pf-arbeit/allinprobe-$K.tar diff --git a/messung/farm/bitgleich/reihenfolge.ps1 b/messung/farm/bitgleich/reihenfolge.ps1 index e15e02d3..189dc420 100644 --- a/messung/farm/bitgleich/reihenfolge.ps1 +++ b/messung/farm/bitgleich/reihenfolge.ps1 @@ -2,10 +2,11 @@ # Klasse 1: heuristik-weg, dann -ohneprobe, dann -f12 | 2: S1/S1b (mehrweg) | 3: exakts Probe-Commits (allinprobe-*) | 4: bayes-regel (River) # 5: alles uebrige (heuristik-schalter, motor-konstanten, Range-Konstanten ...): hoechstens $max5 Teile gleichzeitig laufend/wartend, Rest als .klasse5, # und gar keine neuen, solange ein Auftrag der Klassen 1-4 wartet (Nachruecken vor Langlaeufern). -$Q = 'D:\Projects\pf-batterie\messung\farm\schlange'; $max5 = 3 +$Q = 'D:\Projects\pf-batterie\messung\farm\schlange'; $max5 = 0 # main 21:4x: Klasse 5 geparkt, bis die Tore des Live-Commits durch sind function Rang([string]$id) { $r = $null - if ($id -match '^bitgleich-heuristik-weg-f12-') { $r = -26 } + if ($id -match '^bitgleich-live-stand') { $r = -32 } # main 21:4x: Zusammenfuehrung live-stand vor allem + elseif ($id -match '^bitgleich-heuristik-weg-f12-') { $r = -26 } elseif ($id -match '^bitgleich-heuristik-weg-ohneprobe-') { $r = -28 } elseif ($id -match '^bitgleich-heuristik-weg-') { $r = -30 } elseif ($id -match '^bitgleich-s1') { $r = -24 }