@@ -259,21 +259,21 @@ def __init__(self, with_build_step=True, **kwargs):
259
259
if with_build_step :
260
260
build_cmds , self .shared_build = shared_build ()
261
261
self .build_group_per_arch (
262
- "🏗️ Build" , build_cmds , decorate = False , key_prefix = "build"
262
+ "🏗️ Build" , build_cmds , depends_on_build = False , key_prefix = "build"
263
263
)
264
264
else :
265
265
self .shared_build = None
266
266
267
- def add_step (self , step , decorate = True ):
267
+ def add_step (self , step , depends_on_build = True ):
268
268
"""
269
269
Add a step to the pipeline.
270
270
271
271
https://buildkite.com/docs/pipelines/step-reference
272
272
273
273
:param step: a Buildkite step
274
- :param decorate : inject needed commands for sharing builds
274
+ :param depends_on_build : inject needed commands for sharing builds
275
275
"""
276
- if decorate and isinstance (step , dict ):
276
+ if depends_on_build and isinstance (step , dict ):
277
277
step = self ._adapt_group (step )
278
278
self .steps .append (step )
279
279
return step
@@ -308,15 +308,17 @@ def build_group(self, *args, **kwargs):
308
308
309
309
https://buildkite.com/docs/pipelines/group-step
310
310
"""
311
- decorate = kwargs .pop ("decorate " , True )
311
+ depends_on_build = kwargs .pop ("depends_on_build " , True )
312
312
combined = overlay_dict (self .per_instance , kwargs )
313
- return self .add_step (group (* args , ** combined ), decorate = decorate )
313
+ return self .add_step (
314
+ group (* args , ** combined ), depends_on_build = depends_on_build
315
+ )
314
316
315
317
def build_group_per_arch (self , label , * args , ** kwargs ):
316
318
"""
317
319
Build a group, parametrizing over the architectures only.
318
320
"""
319
- decorate = kwargs .pop ("decorate " , True )
321
+ depends_on_build = kwargs .pop ("depends_on_build " , True )
320
322
key_prefix = kwargs .pop ("key_prefix" , None )
321
323
combined = overlay_dict (self .per_arch , kwargs )
322
324
grp = group (label , * args , ** combined )
@@ -325,7 +327,7 @@ def build_group_per_arch(self, label, *args, **kwargs):
325
327
step ["key" ] = (
326
328
key_prefix + "_" + DEFAULT_INSTANCES [step ["agents" ]["instance" ]]
327
329
)
328
- return self .add_step (grp , decorate = decorate )
330
+ return self .add_step (grp , depends_on_build = depends_on_build )
329
331
330
332
def to_dict (self ):
331
333
"""Render the pipeline as a dictionary."""
0 commit comments