Farm: bau.sh baut einen Motor-Commit auf der Farm (nur der Bau aus bitgleich einreichen)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
15cb1f5821
commit
191661ffdf
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/zsh
|
||||
# Exe-Bau eines Motor-Commits auf der Farm (wie bitgleich.py einreichen, nur der Bau): C:\pf-arbeit\pokerbench-allinprobe-<k8>.exe
|
||||
# bau.sh <zweig> <commit> [prio]
|
||||
set -e
|
||||
ZW=$1; C=$2; PRIO=${3:--33}; R=/Users/marcmintel/Projects/pokerfreak; SSH=Marc@192.168.1.201; Q='D:\Projects\pf-batterie\messung\farm\schlange'
|
||||
git -C $R fetch -q origin $ZW
|
||||
V=$(git -C $R rev-parse "$C^{commit}"); K=${V[1,8]}
|
||||
T=$(mktemp -d); git -C $R archive --format=tar -o $T/allinprobe-$K.tar $V .cargo entscheiden/motor
|
||||
scp -q $T/allinprobe-$K.tar $SSH:C:/pf-arbeit/allinprobe-$K.tar
|
||||
printf '{"id": "bitgleich-bau-%s", "sitzung": "bitgleich", "prio": %s, "faeden": 8, "ram_gb": 10, "kurz": true, "ordner": "C:\\\\pf-arbeit", "befehl": "powershell -NoProfile -ExecutionPolicy Bypass -File C:\\\\pf-arbeit\\\\bau-allinprobe.ps1 -Commit %s"}' $K $PRIO $V >| $T/j.json
|
||||
python3 -m json.tool $T/j.json >/dev/null
|
||||
scp -q $T/j.json "$SSH:D:/Projects/pf-batterie/messung/farm/schlange/auftraege/bitgleich-bau-$K.json.tmp"
|
||||
ssh $SSH "powershell -NoProfile -Command \"Move-Item -Force $Q\auftraege\bitgleich-bau-$K.json.tmp $Q\auftraege\bitgleich-bau-$K.json\"" 2>/dev/null
|
||||
echo "eingereiht bitgleich-bau-$K -> C:\\pf-arbeit\\pokerbench-allinprobe-$K.exe"
|
||||
Reference in New Issue
Block a user