@@ -30,15 +30,24 @@ def __init__(
3030 not_branches = None ,
3131 parallel_builders = None ,
3232 parallel_tests = None ,
33- extra_factory_args = None ,
33+ timeout_factor = None ,
34+ exclude_test_resources = None ,
3435 ):
3536 self .name = name
3637 self .tags = tags or set ()
3738 self .branches = branches
3839 self .not_branches = not_branches
3940 self .parallel_builders = parallel_builders
4041 self .parallel_tests = parallel_tests
41- self .extra_factory_args = extra_factory_args or {}
42+
43+ # Forward some args to build factories
44+ _xf_args = {}
45+ self .extra_factory_args = _xf_args
46+ if timeout_factor is not None :
47+ _xf_args ['timeout_factor' ] = timeout_factor
48+ if exclude_test_resources is not None :
49+ _xf_args ['exclude_test_resources' ] = exclude_test_resources
50+
4251 worker_settings = settings .workers [name ]
4352 owner = name .split ("-" )[0 ]
4453 owner_settings = settings .owners [owner ]
@@ -124,10 +133,7 @@ def get_workers(settings):
124133 tags = ['linux' , 'unix' , 'rhel' , 'ppc64le' ],
125134 parallel_tests = 10 ,
126135 branches = ['3.10' , '3.11' , '3.12' ],
127- extra_factory_args = {
128- # Increase the timeout on this slow worker
129- "timeout_factor" : 2 ,
130- },
136+ timeout_factor = 2 , # Increase the timeout on this slow worker
131137 ),
132138 cpw (
133139 name = "cstratak-CentOS9-ppc64le" ,
@@ -203,9 +209,7 @@ def get_workers(settings):
203209 # Tests fail with latin1 encoding on 3.12, probably earlier
204210 not_branches = ['3.12' , '3.11' , '3.10' ],
205211 # Problematic ISP causes issues connecting to testpython.net
206- extra_factory_args = dict (
207- exclude_test_resources = ['urlfetch' , 'network' ],
208- ),
212+ exclude_test_resources = ['urlfetch' , 'network' ],
209213 ),
210214 cpw (
211215 name = "savannah-raspbian" ,
@@ -222,27 +226,21 @@ def get_workers(settings):
222226 name = "pablogsal-arch-x86_64" ,
223227 tags = ['linux' , 'unix' , 'arch' , 'amd64' , 'x86-64' ],
224228 # Problematic ISP causes issues connecting to testpython.net
225- extra_factory_args = dict (
226- exclude_test_resources = ['urlfetch' , 'network' ],
227- ),
229+ exclude_test_resources = ['urlfetch' , 'network' ],
228230 ),
229231 cpw (
230232 name = "pablogsal-macos-m1" ,
231233 tags = ['macOS' , 'unix' , 'arm' , 'arm64' ],
232234 parallel_tests = 4 ,
233235 # Problematic ISP causes issues connecting to testpython.net
234- extra_factory_args = dict (
235- exclude_test_resources = ['urlfetch' , 'network' ],
236- ),
236+ exclude_test_resources = ['urlfetch' , 'network' ],
237237 ),
238238 cpw (
239239 name = "pablogsal-rasp" ,
240240 tags = ['linux' , 'unix' , 'raspbian' , 'debian' , 'arm' ],
241241 parallel_tests = 1 , # Reduced from 2: ASAN builds use 2-10x more memory
242242 # Problematic ISP causes issues connecting to testpython.net
243- extra_factory_args = dict (
244- exclude_test_resources = ['urlfetch' , 'network' ],
245- ),
243+ exclude_test_resources = ['urlfetch' , 'network' ],
246244 ),
247245 cpw (
248246 name = "skumaran-ubuntu-x86_64" ,
@@ -295,10 +293,7 @@ def get_workers(settings):
295293 not_branches = ['3.10' ],
296294 parallel_tests = 2 ,
297295 parallel_builders = 2 ,
298- extra_factory_args = {
299- # Increase the timeout on this slow worker
300- "timeout_factor" : 2 ,
301- },
296+ timeout_factor = 2 , # Increase the timeout on this slow worker
302297 ),
303298 cpw (
304299 name = "ambv-bb-win11" ,
0 commit comments