Farm: A0 + All-in-Probe - Bau-Auftrag bereit (starte-bau.sh <commit>), Schlange nur noch allinprobe-*, A0-Tore gehalten

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Marc Mintel
2026-12-05 20:24:22 +01:00
co-authored by Claude Opus 5.5
parent d21ebfbae2
commit 8f7afa63a3
3 changed files with 56 additions and 0 deletions
@@ -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"
}
@@ -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-<commit8>.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
+11
View File
@@ -0,0 +1,11 @@
#!/bin/zsh
# Aufruf: starte-bau.sh <commit> - archiviert claude/allin-probe@<commit> (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"