From 8f7afa63a3295377b0cf471d396c3e4f720efdf2 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Sat, 5 Dec 2026 20:24:22 +0100 Subject: [PATCH] Farm: A0 + All-in-Probe - Bau-Auftrag bereit (starte-bau.sh ), Schlange nur noch allinprobe-*, A0-Tore gehalten Co-Authored-By: Claude Opus 5.5 --- messung/farm/allinprobe/allinprobe-pfad.ps1 | 19 +++++++++++++++ messung/farm/allinprobe/bau-allinprobe.ps1 | 26 +++++++++++++++++++++ messung/farm/allinprobe/starte-bau.sh | 11 +++++++++ 3 files changed, 56 insertions(+) create mode 100644 messung/farm/allinprobe/allinprobe-pfad.ps1 create mode 100644 messung/farm/allinprobe/bau-allinprobe.ps1 create mode 100755 messung/farm/allinprobe/starte-bau.sh diff --git a/messung/farm/allinprobe/allinprobe-pfad.ps1 b/messung/farm/allinprobe/allinprobe-pfad.ps1 new file mode 100644 index 00000000..28db13fb --- /dev/null +++ b/messung/farm/allinprobe/allinprobe-pfad.ps1 @@ -0,0 +1,19 @@ +# 05.12. 20:3x Owner/main: Farm nur noch fuer A0 + All-in-Probe. Alles andere halten (wartend .halten, laufend PAUSE manuell), nichts loeschen. +$Q = 'D:\Projects\pf-batterie\messung\farm\schlange' +$grund = 'manuell farm 05.12. ' + (Get-Date -Format 'HH:mm') + ': Owner - Farm nur fuer A0 + All-in-Probe; fortsetzen nach Freigabe main' +function Erlaubt([string]$id) { $id -match '^(allinprobe-.*)$' } +foreach ($f in Get-ChildItem "$Q\laufend" -Filter *.json) { + $id = $f.BaseName + if (Erlaubt $id) { continue } + if ((Test-Path "$Q\PAUSE\$id") -and ((Get-Content "$Q\PAUSE\$id" -Raw) -notmatch '^auto')) { continue } + Set-Content "$Q\PAUSE\$id" $grund -Encoding UTF8; "ANGEHALTEN $id" +} +foreach ($f in Get-ChildItem "$Q\auftraege" -Filter *.json) { + $id = $f.BaseName + if (Erlaubt $id) { + $j = Get-Content $f.FullName -Raw | ConvertFrom-Json + if ($j.prio -ne -20 -or $j.kurz -ne $true) { $j | Add-Member -NotePropertyName prio -NotePropertyValue -20 -Force; $j | Add-Member -NotePropertyName kurz -NotePropertyValue $true -Force + $t = "$($f.FullName).tmp"; $j | ConvertTo-Json -Compress -Depth 5 | Set-Content $t -Encoding UTF8; Move-Item $t $f.FullName -Force; "VORNE $id" } + continue } + Rename-Item $f.FullName "$($f.Name).halten"; "GEHALTEN $id" +} diff --git a/messung/farm/allinprobe/bau-allinprobe.ps1 b/messung/farm/allinprobe/bau-allinprobe.ps1 new file mode 100644 index 00000000..a96354b2 --- /dev/null +++ b/messung/farm/allinprobe/bau-allinprobe.ps1 @@ -0,0 +1,26 @@ +# Owner/main 05.12. abends: Windows-Exe A0 + All-in-Probe (claude/allin-probe), wie bau-b263403f.ps1 (git archive entscheiden/motor + .cargo, target-cpu=native), +# Loeserkopie postflop-solver-mess + loeser-temp.patch des Stands; Exe C:\pf-arbeit\pokerbench-allinprobe-.exe +param([Parameter(Mandatory)][string]$Commit) +$ErrorActionPreference = 'Stop' +if (Test-Path 'D:\Projects\pokerfreak\scratch\laeufer.pid') { 'SPIELT'; exit 2 } +$sha = $Commit.Substring(0, 8); $fremd = 'D:\Projects\fremd'; $wt = "C:\pf-arbeit\pf-allinprobe-$sha" +if (-not (Test-Path "$wt\entscheiden\motor\Cargo.toml")) { New-Item -ItemType Directory $wt -Force | Out-Null; tar -xf "C:\pf-arbeit\allinprobe-$sha.tar" -C $wt; if ($LASTEXITCODE -ne 0) { throw 'tar fehlgeschlagen' } } +$temp = "$fremd\postflop-solver-temp-$sha"; $toml = "$wt\entscheiden\motor\Cargo.toml" +(Get-Content $toml) -replace 'postflop-solver-temp"', "postflop-solver-temp-$sha`"" | Set-Content $toml -Encoding utf8 +$patchexe = 'C:\Program Files\Git\usr\bin\patch.exe' +if (-not (Test-Path $temp)) { + robocopy "$fremd\postflop-solver-mess" $temp /E /XD target .git /NFL /NDL /NJH /NJS | Out-Null + Push-Location $temp; & $patchexe -p1 --binary -i "$wt\entscheiden\motor\loeser-temp.patch"; $rc = $LASTEXITCODE; Pop-Location + if ($rc -ne 0) { throw 'patch fehlgeschlagen' }; 'Loeserkopie angelegt' +} else { + Push-Location $temp; & $patchexe -p1 --binary -R --dry-run -i "$wt\entscheiden\motor\loeser-temp.patch" | Out-Null; $rc = $LASTEXITCODE; Pop-Location + if ($rc -ne 0) { throw 'vorhandene Loeserkopie passt nicht zum Patch' }; 'Loeserkopie passt' +} +Get-Content "$wt\.cargo\config.toml" | Select-String 'rustflags' +Push-Location "$wt\entscheiden\motor"; $ErrorActionPreference = 'Continue' +cargo build --release --locked -j 16 --bin motor 2>&1 | Select-Object -Last 3 +$rc = $LASTEXITCODE; Pop-Location +if ($rc -ne 0) { "cargo build fehlgeschlagen $rc"; exit 1 } +$ziel = "C:\pf-arbeit\pokerbench-allinprobe-$sha.exe" +if (Test-Path $ziel) { "EXE $ziel existiert schon - nicht ueberschrieben" } else { Copy-Item "$wt\entscheiden\motor\target\release\motor.exe" $ziel } +"EXE $ziel"; "SHA256 " + (Get-FileHash $ziel -Algorithm SHA256).Hash diff --git a/messung/farm/allinprobe/starte-bau.sh b/messung/farm/allinprobe/starte-bau.sh new file mode 100755 index 00000000..03734e17 --- /dev/null +++ b/messung/farm/allinprobe/starte-bau.sh @@ -0,0 +1,11 @@ +#!/bin/zsh +# 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 +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 +python3 -c "import json,sys;print(json.dumps({'id':'allinprobe-bau-'+sys.argv[1],'sitzung':'allinprobe','prio':-20,'faeden':16,'ram_gb':10,'ordner':r'C:\pf-arbeit','befehl':r'powershell -NoProfile -ExecutionPolicy Bypass -File C:\pf-arbeit\bau-allinprobe.ps1 -Commit '+sys.argv[2],'kurz':True}))" $K $C >| $S/allinprobe-bau-$K.json +scp -q $S/allinprobe-bau-$K.json Marc@192.168.1.201:D:/Projects/pf-batterie/messung/farm/schlange/auftraege/allinprobe-bau-$K.json +echo "eingereiht allinprobe-bau-$K"