Skip to content

Commit 347b44b

Browse files
committed
Revert "Handle builder creation race condition with an exception"
This reverts commit d2a6153.
1 parent c6fc163 commit 347b44b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

scripts/release/build_images.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ def ecr_login_boto3(region: str, account_id: str):
4646
def ensure_buildx_builder(builder_name: str = DEFAULT_BUILDER_NAME) -> str:
4747
"""
4848
Ensures a Docker Buildx builder exists for multi-platform builds.
49-
This function is safe for concurrent execution across multiple processes.
5049
5150
:param builder_name: Name for the buildx builder
5251
:return: The builder name that was created or reused
@@ -70,13 +69,6 @@ def ensure_buildx_builder(builder_name: str = DEFAULT_BUILDER_NAME) -> str:
7069
)
7170
logger.info(f"Created new buildx builder: {builder_name}")
7271
except DockerException as e:
73-
# Check if this is a race condition (another process created the builder)
74-
if hasattr(e, 'stderr') and 'existing instance for' in str(e.stderr):
75-
logger.info(f"Builder '{builder_name}' was created by another process – using it.")
76-
docker.buildx.use(builder_name)
77-
return builder_name
78-
79-
# Otherwise, it's a real error
8072
logger.error(f"Failed to create buildx builder: {e}")
8173
raise
8274

0 commit comments

Comments
 (0)