Fix weird dictionary creation syntax
@@ -1674,12 +1674,13 @@ def create_step(label, commands, platform, shards=1):
step["timeout_in_minutes"] = 8 * 60
# Automatically retry when an agent got lost (usually due to an infra flake).
- step["retry"] = {}
- step["retry"]["automatic"] = [
+ step["retry"] = {
+ "automatic": [
{"exit_status": -1, "limit": 3}, # Buildkite internal "agent lost" exit code
{"exit_status": 137, "limit": 3}, # SIGKILL
{"exit_status": 143, "limit": 3}, # SIGTERM
]
+ }
return step
