[fedora-arm] Resumed F15 Build Que'ing Method

Jon Chiappetta jon.chiappetta at senecac.on.ca
Fri Dec 23 17:06:02 UTC 2011


Hey all,


I have resumed the que'ing of F15 stage4 pkgs with the script below so that we have the farm busy over the weekend/holiday. If anyone has concerns/questions/suggestions please feel free to email me @ jon.chiappetta at senecac.on.ca as it gets forwarded right to my phone and will be able to read it "instantly" and easily! :)





#!/bin/bash
koji list-tagged dist-f15 > /tmp/k
export l=`find ./f15srpms -type f | grep -i '\.src\.rpm' | wc -l`
export x=1
find ./f15srpms -type f | sort -R | grep -i '\.src\.rpm' > /tmp/p
while true
do
	ak list-tagged dist-f15 > /tmp/t
	while true
	do
		ak list-tasks --mine --quiet | grep '^[0-9]' | grep -Ei ' (open|free) .* build' > /tmp/n
		#echo "got tasks..." ; cat /tmp/n | wc -l ; echo
		if [ `cat /tmp/n | wc -l` -ge 10 ]
		then
			break
		fi
		p=`cat /tmp/p | head -n "$x" | tail -n 1`
		q=`basename "$p" | sed -e 's/[^0-9A-Za-z]/./g' -e 's/\.src\.rpm//g'`
		#echo "checking pkg [$p] [$q]..." ; echo
		c=`cat /tmp/n /tmp/t | grep -i "$q"`
		let x="($x % $l) + 1"
		if [ "$c" != "" ]
		then
			continue
		fi
		c=`cat /tmp/k | grep -i "$q"`
		if [ "$c" == "" ]
		then
			continue
		fi
		echo "queing [$p] skipped [$x]"
		ak build dist-f15 "$p" --nowait --background
		let n="$n + 1"
	done
	sleep 60
done


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/arm/attachments/20111223/9a088bec/attachment.html>


More information about the arm mailing list