From 29f07c395aae934ab33a78e7576931def8629979 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 26 Jun 2017 12:06:20 +0300 Subject: Added new cron.daily-task. This will prune old tests from the `redis`-alerter - if that alerter isn't used this will be harmless. --- debian/custodian.cron.daily | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 debian/custodian.cron.daily diff --git a/debian/custodian.cron.daily b/debian/custodian.cron.daily new file mode 100755 index 0000000..0f78837 --- /dev/null +++ b/debian/custodian.cron.daily @@ -0,0 +1,13 @@ +#!/bin/sh + +# +# Ensure that any known-tests are pruned. +# +# This is only used if the `redis` alerter is enabled, if this is not +# used then this will be harmless. +# +# (This script is required because redis set-members do not have TTLs +# so they cannot be reaped automatically.) +# + +/usr/bin/redis-cli del known_tests >/dev/null 2>/dev/null -- cgit v1.2.1 From fee2b86f096550793f10e5f5a21c5bf71d8d8207 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 26 Jun 2017 12:06:43 +0300 Subject: Document previous change. --- debian/changelog | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian/changelog b/debian/changelog index a875787..581c1e7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +custodian (0.34) stable; urgency=low + + * Install a cron.daily task to reap old tests - which will ensure that + the "redis" alerter contains accurate data if it is used. + + -- Steve Kemp Thu, 26 Jun 2017 12:00:21 +0100 + custodian (0.33) stable; urgency=low * Allow an alert's subject to be prefixed with a custom string, read from -- cgit v1.2.1