Farm: bitgleich einreichen bricht ab, wenn ein Arm ab 03822c9ad (MOTOR_AUSBEUTE ohne Standard) keine MOTOR_AUSBEUTE=an|aus in der Zeile hat

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Marc Mintel
2026-12-06 00:34:54 +01:00
co-authored by Claude Opus 5.5
parent b86b3b779a
commit d8d5be57fd
+7 -1
View File
@@ -13,7 +13,8 @@ Einreichen:
mit Frist wie Tor 1: --frist (Zeiten je Antwort; vergleichen [--idx <zeilen-datei>] wertet p50/p95/p99, ueber Frist, Marken aus)
Vergleichen (Mac, holt die Laeufe auf die SSD):
bitgleich.py vergleichen <name> -> /Volumes/Alpha SSD/pokerfreak-daten/pruefstand/bitgleich/<name>/vergleich-<arm>.json"""
import json, os, subprocess, sys, tempfile
import re, json, os, subprocess, sys, tempfile
AUSBEUTE_PFLICHT_AB = "03822c9ad" # claude/live-stand: MOTOR_AUSBEUTE ohne Standard (main 06.12.)
R = "/Users/marcmintel/Projects/pokerfreak"; H = os.path.dirname(os.path.abspath(__file__)); SSH = "Marc@192.168.1.201"
EIN = r"D:\Projects\pf-basis-rein-cf10eedc\tor1\ein-tor1.jsonl"; PY = r"C:\Users\marcm\AppData\Local\Programs\Python313\python.exe"
SSD = "/Volumes/Alpha SSD/pokerfreak-daten/pruefstand/bitgleich"; EIN_MAC = "/Volumes/Alpha SSD/pokerfreak-daten/pruefstand/temperatur-uhr-b263403f/tor1/2026-12-05/ein-tor1.jsonl"
@@ -29,6 +30,11 @@ if modus == "einreichen":
inhalt = open(zeile, encoding="utf-8-sig").read()
if "MOTOR_ZEILE=" not in inhalt and not inhalt.lstrip().startswith(("R0=", "MOTOR_")): sys.exit(f"Zeile {zeile} sieht nicht nach einer Schalterzeile aus - Abbruch")
if len(inhalt.strip()) < 40: sys.exit(f"Zeile {zeile} ist zu kurz ({len(inhalt.strip())} Zeichen) - Abbruch")
# main 06.12.: ab claude/live-stand 03822c9ad hat MOTOR_AUSBEUTE keinen Standard, der Start bricht ohne ihn ab
subprocess.run(["git", "-C", R, "fetch", "-q", "origin", zw], check=True)
if subprocess.run(["git", "-C", R, "merge-base", "--is-ancestor", AUSBEUTE_PFLICHT_AB, c], capture_output=True).returncode == 0 \
and not re.search(r"(^|[;\n])MOTOR_AUSBEUTE=(an|aus)\s*(;|$)", inhalt, re.M):
sys.exit(f"Arm {n}: {c} enthaelt {AUSBEUTE_PFLICHT_AB} (MOTOR_AUSBEUTE ohne Standard), die Zeile {zeile} setzt MOTOR_AUSBEUTE=an|aus nicht - Abbruch")
arme.append((n, zw, c, zeile))
teile, prio, strasse, frist = int(arg("--teile", "6")), int(arg("--prio", "-15")), arg("--strasse", ""), "--frist" in sys.argv
tmp = tempfile.mkdtemp()