[opensuse-buildservice] counting of suggessfully built packages for the month in obs.
Hello, With obs, can a count of suggessfully built packages for the month be shown on the 'Scheduler Status' page. With each successful built package, log a entry like so: echo 1 >> /tmp/built-packages-count.log A sample log may look like this: # cat /tmp/built-packages-count.log 1 1 1 1 1 So in this case: echo "Built packages for month:" `cat /tmp/built-packages-count.log | wc -l` The result based on the example is: Built packages for month: 5 To reset the value at the beginning of the next month just remove the /tmp/built-packages-count.log and the count would start at 1 again after the first successful build of the next package. If you see the number is increasing you know packages are being built. Be interesting to know how many packages are built in a month. Cheers Glenn -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Monday 13 August 2012 16.59:04 doiggl@velocitynet.com.au wrote:
Hello, With obs, can a count of suggessfully built packages for the month be shown on the 'Scheduler Status' page.
With each successful built package, log a entry like so:
echo 1 >> /tmp/built-packages-count.log
A sample log may look like this: # cat /tmp/built-packages-count.log 1 1 1 1 1
So in this case: echo "Built packages for month:" `cat /tmp/built-packages-count.log | wc -l`
The result based on the example is: Built packages for month: 5
To reset the value at the beginning of the next month just remove the /tmp/built-packages-count.log and the count would start at 1 again after the first successful build of the next package.
If you see the number is increasing you know packages are being built. Be interesting to know how many packages are built in a month.
Cheers Glenn
Glenn what do you want to count. one spec can contain several build packages so from what I saw, your method would be able to only count the build of one spec. -- Bruno Friedmann Ioda-Net Sàrl www.ioda-net.ch openSUSE Member & Ambassador GPG KEY : D5C9B751C4653227 irc: tigerfoot -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (2)
-
Bruno Friedmann
-
doiggl@velocitynet.com.au