Autotest: Increase run timeout granularity
This CL modifies all references to max_runtime_hrs to instead be
max_runtime_mins. This includes the django models, rpc interfaces, the
cleanup timeout code, and the frontend java views.
The frontend java code will need to be recompiled once this commits to
prevent the frontend from breaking.
The cleanup timeout pathway has been adjusted to find all timedout jobs
by minute, and has been changed to run every 5 minutes vs every hour as
before.
BUG=chromium-os:36067
TEST=Ran on my local afe, ensure that jobs can still be created correctly,
and jobs with short timeouts do indeed get aborted when expected.
Change-Id: Id7668bbd05a9b02c22e7c549fac232fae02fc728
Reviewed-on: https://gerrit.chromium.org/gerrit/37479
Reviewed-by: Scott Zawalski <scottz@chromium.org>
Commit-Ready: Simran Basi <sbasi@chromium.org>
Tested-by: Simran Basi <sbasi@chromium.org>
diff --git a/server/frontend.py b/server/frontend.py
index 83d7a8e..b2b27c2 100644
--- a/server/frontend.py
+++ b/server/frontend.py
@@ -355,7 +355,7 @@
def run_test_suites(self, pairings, kernel, kernel_label=None,
priority='Medium', wait=True, poll_interval=10,
email_from=None, email_to=None, timeout=168,
- max_runtime_hrs=168, kernel_cmdline=None):
+ max_runtime_mins=10080, kernel_cmdline=None):
"""
Run a list of test suites on a particular kernel.
@@ -379,7 +379,7 @@
new_job = self.invoke_test(pairing, kernel, kernel_label,
priority, timeout=timeout,
kernel_cmdline=kernel_cmdline,
- max_runtime_hrs=max_runtime_hrs)
+ max_runtime_mins=max_runtime_mins)
if not new_job:
continue
jobs.append(new_job)