[Buildbot-devel] clean-log
Mike Winter (miwinter)
miwinter at cisco.com
Wed Aug 20 15:41:27 UTC 2008
I think I could easily write a make target on each slave that could run
something to find and cull old log files. What's been the typical
approach to keep disk consumption down. I don't have permissions or
access to write personal crontab:
# only works w/ slaves on localhost
SLAVES=`cat slaves`
clean-log:
echo $(SLAVES)
for dir in $(SLAVES) $(BB_MASTER); do \
make -C $$dir $@;\
done
bb-master and slaves all have a:
DAYS_OLD=1
clean-log:
find . -maxdepth 2 -name "twistd.log*" -mtime +$(DAYS_OLD) -exec rm {}
\;
find . -maxdepth 2 -name "*stdio" -mtime +$(DAYS_OLD) -exec rm {} \;
find . -maxdepth 2 -name "[0-9]*" -mtime +$(DAYS_OLD) -exec rm {} \;
I think there should be a more elegant explicit 'build-step for most
slaves' approach to this sort of issue inside buildbot.
More information about the devel
mailing list