Skip to content

Commit 51994f2

Browse files
committed
ci: allow overriding the Buildkite queue
By leaving it empty, it will inherit the value of the pipeline. Signed-off-by: Pablo Barbáchano <[email protected]>
1 parent 20a6e0d commit 51994f2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.buildkite/pipeline_perf.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
import argparse
88

9-
from common import DEFAULT_INSTANCES, DEFAULT_PLATFORMS, group, pipeline_to_json
10-
9+
from common import (DEFAULT_INSTANCES, DEFAULT_PLATFORMS, group,
10+
pipeline_to_json)
1111

1212
perf_test = {
1313
"block": {
@@ -102,15 +102,16 @@ def build_group(test):
102102
test_data.update(args.extra)
103103
if args.retries > 0:
104104
# retry if the step fails
105-
test_data.setdefault("retry", {"automatic": {"exit_status": 1, "limit": args.retries}})
105+
test_data.setdefault(
106+
"retry", {"automatic": {"exit_status": 1, "limit": args.retries}}
107+
)
106108
group_steps.append(build_group(test_data))
107109

108110
pipeline = {
109111
"env": {
110112
"AWS_EMF_SERVICE_NAME": "PerfTests",
111113
"AWS_EMF_NAMESPACE": "PerfTests",
112114
},
113-
"agents": {"queue": "public-prod-us-east-1"},
114115
"steps": group_steps,
115116
}
116117
print(pipeline_to_json(pipeline))

0 commit comments

Comments
 (0)