Increase hard and io timeouts for CT builds.
authorrmistry <rmistry@google.com>
Mon, 15 Aug 2016 16:54:56 +0000 (09:54 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 15 Aug 2016 16:54:56 +0000 (09:54 -0700)
BUG=skia:5641
TBR=borenet
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2249523004

Review-Url: https://codereview.chromium.org/2249523004

infra/bots/recipes/swarm_trigger.expected/Perf-Ubuntu-GCC-Golo-GPU-GT610-x86_64-Release-CT_BENCH_1k_SKPs.json
infra/bots/recipes/swarm_trigger.py

index 11352bc..7fc60bf 100644 (file)
       "--expiration",
       "72000",
       "--io-timeout",
-      "2400",
+      "3600",
       "--hard-timeout",
-      "14400",
+      "86400",
       "--dimension",
       "os",
       "Ubuntu",
index c4f1a54..b16405d 100644 (file)
@@ -297,6 +297,7 @@ def recreate_skps_swarm(api, builder_cfg, got_revision, infrabots_dir,
 
 def ct_skps_swarm(api, builder_cfg, got_revision, infrabots_dir,
                   extra_isolate_hashes):
+  expiration, hard_timeout, io_timeout = get_timeouts(builder_cfg)
   task = trigger_task(
       api,
       'ct_skps',
@@ -309,7 +310,10 @@ def ct_skps_swarm(api, builder_cfg, got_revision, infrabots_dir,
       infrabots_dir,
       idempotent=False,
       store_output=False,
-      extra_isolate_hashes=extra_isolate_hashes)
+      extra_isolate_hashes=extra_isolate_hashes,
+      expiration=expiration,
+      hard_timeout=hard_timeout,
+      io_timeout=io_timeout)
   return api.swarming.collect_swarming_task(task)
 
 
@@ -395,6 +399,9 @@ def get_timeouts(builder_cfg):
     expiration = 2*24*60*60
     hard_timeout = 9*60*60
     io_timeout = 60*60
+  if builder_cfg.get('extra_config', '').startswith('CT_'):
+    hard_timeout = 24*60*60
+    io_timeout = 60*60
   return expiration, hard_timeout, io_timeout