@@ -10,6 +10,7 @@ load("@builtin//runtime.star", "runtime")
10
10
load ("@builtin//struct.star" , "module" )
11
11
load ("./backend_config/backend.star" , "backend" )
12
12
load ("./blink_all.star" , "blink_all" )
13
+ load ("./config.star" , "config" )
13
14
load ("./gn_logs.star" , "gn_logs" )
14
15
load ("./linux.star" , chromium_linux = "chromium" )
15
16
load ("./mac.star" , chromium_mac = "chromium" )
@@ -28,6 +29,13 @@ def __disable_remote(ctx, step_config):
28
29
rule ["remote" ] = False
29
30
return step_config
30
31
32
+ def __unset_timeout (ctx , step_config ):
33
+ if not config .get (ctx , "no-remote-timeout" ):
34
+ return step_config
35
+ for rule in step_config ["rules" ]:
36
+ rule .pop ("timeout" , None )
37
+ return step_config
38
+
31
39
def init (ctx ):
32
40
print ("runtime: os:%s arch:%s run:%d" % (
33
41
runtime .os ,
@@ -80,6 +88,7 @@ def init(ctx):
80
88
rule ["remote_command" ] = arg0
81
89
82
90
step_config = __disable_remote (ctx , step_config )
91
+ step_config = __unset_timeout (ctx , step_config )
83
92
84
93
filegroups = {}
85
94
filegroups .update (blink_all .filegroups (ctx ))
0 commit comments