aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhizhou Yang <zhizhouy@google.com>2019-10-29 16:50:14 -0700
committerZhizhou Yang <zhizhouy@google.com>2019-10-30 00:13:04 +0000
commit13446a7a9b3742810c7e167d5d69e7458fff7699 (patch)
treeff71a89cc3d13a2719e060aeacbed7d40b65dada
parent8ac33e078ef1dd94b350fd4f81684ed6e3f272ec (diff)
downloadtoolchain-utils-13446a7a9b3742810c7e167d5d69e7458fff7699.tar.gz
toolchain-utils: change lease time limit for skylab
Currently we are leasing at most 10 hours for skylab DUTs, which could not cover the run time nightly tests take on specific machines. We temporarily increase this timeout so that skylab not release it before we finishes the test. BUG=chromium:1019439 TEST=None Change-Id: I092159f48cebb17a3e130c580279422200d0fe01 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1888298 Tested-by: Zhizhou Yang <zhizhouy@google.com> Reviewed-by: Denis Nikitin <denik@chromium.org> Commit-Queue: Zhizhou Yang <zhizhouy@google.com> Auto-Submit: Zhizhou Yang <zhizhouy@google.com>
-rwxr-xr-xlock_machine.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lock_machine.py b/lock_machine.py
index 40c7d8fd..eca4bd57 100755
--- a/lock_machine.py
+++ b/lock_machine.py
@@ -69,7 +69,11 @@ class LockManager(object):
"""
SKYLAB_PATH = '/usr/local/bin/skylab'
- LEASE_MINS = 600
+
+ # TODO(zhizhouy): lease time may needs to be dynamically adjusted. For now we
+ # set it long enough to cover the period to finish nightly rotation tests.
+ LEASE_MINS = 1440
+
SKYLAB_CREDENTIAL = '/usr/local/google/home/mobiletc-prebuild' \
'/sheriff_utils/skylab_credential' \
'/chromeos-swarming-credential.json'