Skip to content

Commit f894e5b

Browse files
committed
Disable concurrent builds
1 parent e00b0e3 commit f894e5b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

scripts/release/atomic_pipeline.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,8 @@ def build_agent_default_case(build_configuration: ImageBuildConfiguration):
338338
tasks_queue = Queue()
339339
max_workers = 1
340340
if build_configuration.parallel:
341-
max_workers = None
341+
# TODO: remove this once we have a proper synchronization for buildx builder concurrent creation
342+
max_workers = 1
342343
if build_configuration.parallel_factor > 0:
343344
max_workers = build_configuration.parallel_factor
344345
with ProcessPoolExecutor(max_workers=max_workers) as executor:
@@ -435,7 +436,7 @@ def _build_agent_operator(
435436
f"https://downloads.mongodb.org/tools/db/mongodb-database-tools-{tools_distro}-{tools_version}.tgz"
436437
)
437438
mongodb_agent_url_ubi = f"https://mciuploads.s3.amazonaws.com/mms-automation/mongodb-mms-build-agent/builds/automation-agent/prod/mongodb-mms-automation-agent-{agent_version[0]}.{agent_distro}.tar.gz"
438-
init_database_image = f"{build_configuration.registry}/mongodb-kubernetes-init-database:{operator_version}"
439+
init_database_image = f"{build_configuration.base_registry()}/mongodb-kubernetes-init-database:{operator_version}"
439440

440441
tasks_queue.put(
441442
executor.submit(

scripts/release/build/image_build_configuration.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,8 @@ class ImageBuildConfiguration:
2121
def is_release_scenario(self) -> bool:
2222
return self.scenario == BuildScenario.RELEASE
2323

24+
def base_registry(self) -> str:
25+
return self.registry.rpartition('/')[0]
26+
2427
def image_name(self) -> str:
25-
return self.registry.split('/')[-1]
28+
return self.registry.rpartition('/')[2]

0 commit comments

Comments
 (0)