summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@nostromo.devel.redhat.com>2007-05-21 08:15:25 -0400
committerBill Nottingham <notting@nostromo.devel.redhat.com>2007-05-21 08:15:25 -0400
commitbd54a8684cbaf07f9d3cfef6d5d73eb00d570705 (patch)
tree3f7ee03ecd004f820ae361241d077259e8a895cc /scripts
parentdd533278c5552876cea1f20d295205a30199b622 (diff)
downloadreleng-bd54a8684cbaf07f9d3cfef6d5d73eb00d570705.tar.gz
releng-bd54a8684cbaf07f9d3cfef6d5d73eb00d570705.tar.xz
releng-bd54a8684cbaf07f9d3cfef6d5d73eb00d570705.zip
use koji to find hosts, sort by load, then capacity
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/buildrawhide9
1 files changed, 4 insertions, 5 deletions
diff --git a/scripts/buildrawhide b/scripts/buildrawhide
index 58b4ff5..5c835ff 100755
--- a/scripts/buildrawhide
+++ b/scripts/buildrawhide
@@ -39,10 +39,9 @@ exit \$rc
EOF
rc=$?
umount /mashroot/mnt/koji
-# hack
-# i386
-/home/fedora/notting/pungify $DATE i386 mock@hammer2 2>&1 | tee /mnt/koji/mash/rawhide-$DATE/logs/pungify-i386.log &
-/home/fedora/notting/pungify $DATE x86_64 mock@xenbuilder3 2>&1 | tee /mnt/koji/mash/rawhide-$DATE/logs/pungify-x86_64.log &
-/home/fedora/notting/pungify $DATE ppc mock@ppc2 2>&1 | tee /mnt/koji/mash/rawhide-$DATE/logs/pungify-ppc.log &
+for arch in i386 x86_64 ppc ; do
+ HOST=$(koji list-hosts --quiet --ready --arch=$arch | sed 's|/| |g' | sort -gn -k4 -k5r | awk -F '.' '{ print $1 ; exit }')
+ /home/fedora/notting/pungify $DATE $arch mock@$HOST 2>&1 | tee /mnt/koji/mash/rawhide-$DATE/logs/pungify-$arch.log &
+done
wait
exit $rc