4598: remove more dev/debugging features.
authorTim Pierce <twp@curoverse.com>
Tue, 30 Dec 2014 19:48:59 +0000 (14:48 -0500)
committerTim Pierce <twp@curoverse.com>
Tue, 30 Dec 2014 19:48:59 +0000 (14:48 -0500)
services/api/script/crunch-failure-report.py

index 5f1382b9b02911bd0c098f22d80213706d2906df..e57205383e13a718466da7978bd88fed79d5a7a7 100755 (executable)
@@ -16,9 +16,6 @@ LOG_CONTEXT_LINES = 10
 # Regex that signifies a failed task.
 FAILED_TASK_REGEX = re.compile(' \d+ failure (.*permanent)')
 
-# Regex that signifies a successful job.
-SUCCESSFUL_JOB_REGEX = re.compile('finished')
-
 # List of regexes by which to classify failures.
 JOB_FAILURE_TYPES = [ 'User not found on host' ]
 
@@ -74,12 +71,6 @@ def is_failed_task(logline):
     return FAILED_TASK_REGEX.search(logline) != None
 
 
-def is_successful_job(logline):
-    return SUCCESSFUL_JOB_REGEX.search(logline) != None
-
-def log(s):
-    print >>sys.stderr, "{}: {}".format(datetime.datetime.utcnow(), s)
-
 def main(arguments=None, stdout=sys.stdout, stderr=sys.stderr):
     args = parse_arguments(arguments)