From d5de6dff9a4c99f1e3b45d8f3183690b5cfb630d Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Aug 15 2018 22:33:39 +0000 Subject: Extend the length of the 'tested composes log' to 20 Since we have so many more composes now... Signed-off-by: Adam Williamson --- diff --git a/checkcomp_consumer.py b/checkcomp_consumer.py index cc767fc..c49f152 100755 --- a/checkcomp_consumer.py +++ b/checkcomp_consumer.py @@ -67,8 +67,8 @@ class CheckComposeConsumer(fedmsg.consumers.FedmsgConsumer): subprocess.Popen(args) # log that we've sent a report for this compose, trim the log - if len(reported) > 9: - reported = reported[-9:] + if len(reported) > 19: + reported = reported[-19:] reported.append(compose) with open('/var/run/fedmsg/check-compose', 'w') as ccfh: json.dump(reported, ccfh)