[Piuparts-commits] rev 258 - piatti piatti/home/piupartsm piatti/home/piupartss/bin piatti/org/piuparts.debian.org/etc trunk
Holger Levsen
holger at alioth.debian.org
Mon Mar 16 13:15:49 UTC 2009
Author: holger
Date: 2009-03-16 13:15:49 +0000 (Mon, 16 Mar 2009)
New Revision: 258
Added:
piatti/home/piupartsm/crontab
Modified:
piatti/README.txt
piatti/home/piupartss/bin/update-piuparts-setup
piatti/org/piuparts.debian.org/etc/piuparts-report.conf
trunk/TODO
trunk/piuparts-report.conf.sample
Log:
provide working configs, add crontab, update readme + todo
Modified: piatti/README.txt
===================================================================
--- piatti/README.txt 2009-03-16 13:05:50 UTC (rev 257)
+++ piatti/README.txt 2009-03-16 13:15:49 UTC (rev 258)
@@ -3,9 +3,6 @@
todo
----
-- run piuparts-reports.py from cron
-- rewrite piuparts-report so that stats.html becomes index.html (and keep the css and the links from both pages in one)
-- document piuparts-reports...
- use local mirror
- turn off debugging
- look at the irssi_away script to see how to monitor screen sessions, to notify when piuparts is hanging
@@ -13,7 +10,6 @@
- document users needed
- document sudoers need
- in -master.py and -slave.py: create master + slave dirs if they dont exists
-- move /home/*/bin/* into piuparts/trunk (cleanup as option for the commands, and stats as seperate piuparts-stats script)
- fix the Makefile so that there is clean way not to install example configuration
done
@@ -32,6 +28,7 @@
svn co svn://svn.debian.org/svn/piuparts/trunk src
cd src
sudo make prefix=/org/piuparts.debian.org etcdir=/org/piuparts.debian.org/etc install && sudo rm ../etc/piuparts/ -Rf
+- piuparts-report.py is run from ~/piupartsm/crontab
to start a new run and throw away all results:
----------------------------------------------
Added: piatti/home/piupartsm/crontab
===================================================================
--- piatti/home/piupartsm/crontab (rev 0)
+++ piatti/home/piupartsm/crontab 2009-03-16 13:15:49 UTC (rev 258)
@@ -0,0 +1,11 @@
+# m h dom mon dow (0|7=sun,1=mon) command
+
+#
+# notify about reboots
+#
+ at reboot ddate | mail -s "piatti rebooted, please restart the piuparts-slave screen session" piuparts-devel at lists.alioth.debian.org
+#
+# create reports every hour
+#
+42 * * * * PYTHONPATH=/org/piuparts.debian.org/lib/python2.4/site-packages:/org/piuparts.debian.org/lib/python2.5/site-packages nice python /org/piuparts.debian.org/share/piuparts/piuparts-report.py
+
Modified: piatti/home/piupartss/bin/update-piuparts-setup
===================================================================
--- piatti/home/piupartss/bin/update-piuparts-setup 2009-03-16 13:05:50 UTC (rev 257)
+++ piatti/home/piupartss/bin/update-piuparts-setup 2009-03-16 13:15:49 UTC (rev 258)
@@ -3,7 +3,7 @@
#
# update piuparts setup on piatti.debian.org
#
-# (c) 2006 Holger Levsen holger at layer-acht.org
+# (c) 2009 Holger Levsen holger at layer-acht.org
# GPL2 licenced
#
@@ -14,14 +14,31 @@
set -e
-cd ~piupartsm/bin
+#
+# update slave home, mostly scripts
+#
+cd ~
svn up
-cd ~/bin
+
+#
+# update master home, mostly crontab to run piuparts-reports
+#
+cd ~piupartsm
svn up
+#not yet
+#sudo -u piupartsm crontab ~piupartsm/crontab
+
+#
+# update configuration + htdocs
+#
cd /org/piuparts.debian.org/etc
svn up
cd ../htdocs
svn up
+
+#
+# update source
+#
cd ../src
svn up
sudo make prefix=/org/piuparts.debian.org etcdir=/org/piuparts.debian.org/etc install
Modified: piatti/org/piuparts.debian.org/etc/piuparts-report.conf
===================================================================
--- piatti/org/piuparts.debian.org/etc/piuparts-report.conf 2009-03-16 13:05:50 UTC (rev 257)
+++ piatti/org/piuparts.debian.org/etc/piuparts-report.conf 2009-03-16 13:15:49 UTC (rev 258)
@@ -6,6 +6,9 @@
[report]
sections = sid squeeze lenny2squeeze
index-page = /org/piuparts.debian.org/htdocs/index.html
+output-directory = /org/piuparts.debian.org/htdocs/
+master-directory = /org/piuparts.debian.org/master/
+packages-url = none
[sid]
output-directory = /org/piuparts.debian.org/htdocs/
Modified: trunk/TODO
===================================================================
--- trunk/TODO 2009-03-16 13:05:50 UTC (rev 257)
+++ trunk/TODO 2009-03-16 13:15:49 UTC (rev 258)
@@ -3,6 +3,10 @@
- document sections for piuparts-slave in README.
+- improve the config parser so we dont need redundant config entries...
+
+- merge conf-files into piuparts-sm.conf
+
- upgrade-reports should have a list of available arch and list packages
only available on untested archs in a new state categorory.
@@ -12,8 +16,6 @@
- merge how-to-use-piuparts.txt custom-scripts.txt README and piuparts.docbook
into one asciidoc document.
-- merge conf-files into piuparts-sm.conf
-
- piuparts can't currently test upgrades of required packages. (Because they
cannot be removed, it assumes these are untestable, which is only true for
removal tests...
Modified: trunk/piuparts-report.conf.sample
===================================================================
--- trunk/piuparts-report.conf.sample 2009-03-16 13:05:50 UTC (rev 257)
+++ trunk/piuparts-report.conf.sample 2009-03-16 13:15:49 UTC (rev 258)
@@ -8,6 +8,9 @@
[report]
sections = sid
index-page = ./index.html
+output-directory = html
+# packages-url =
+# master-directory = .
[sid]
output-directory = html
More information about the Piuparts-commits
mailing list