9
9
from concurrent .futures import ProcessPoolExecutor
10
10
from copy import copy
11
11
from queue import Queue
12
- from typing import Dict , List , Optional , Tuple , Union
12
+ from typing import Dict , List , Optional , Tuple
13
13
14
14
import requests
15
15
import semver
@@ -202,7 +202,7 @@ def find_om_in_releases(om_version: str, releases: Dict[str, str]) -> Optional[s
202
202
203
203
204
204
def get_om_releases () -> Dict [str , str ]:
205
- """Returns a dictionary representation of the Json document holdin all the OM
205
+ """Returns a dictionary representation of the Json document holding all the OM
206
206
releases.
207
207
"""
208
208
ops_manager_release_archive = (
@@ -267,8 +267,7 @@ def build_image_generic(
267
267
extra_args : dict | None = None ,
268
268
):
269
269
"""
270
- Build one or more platform-specific images, then (optionally)
271
- push a manifest and sign the result.
270
+ Build an image then (optionally) sign the result.
272
271
"""
273
272
274
273
registry = build_configuration .base_registry
@@ -378,9 +377,6 @@ def build_agent_pipeline(
378
377
):
379
378
build_configuration_copy = copy (build_configuration )
380
379
build_configuration_copy .version = image_version
381
- print (
382
- f"======== Building agent pipeline for version { image_version } , build configuration version: { build_configuration .version } "
383
- )
384
380
args = {
385
381
"version" : image_version ,
386
382
"agent_version" : agent_version ,
@@ -404,7 +400,6 @@ def build_agent_default_case(build_configuration: BuildConfiguration):
404
400
"""
405
401
Build the agent only for the latest operator for patches and operator releases.
406
402
407
- See more information in the function: build_agent_on_agent_bump
408
403
"""
409
404
release = load_release_file ()
410
405
@@ -426,12 +421,12 @@ def build_agent_default_case(build_configuration: BuildConfiguration):
426
421
if build_configuration .parallel_factor > 0 :
427
422
max_workers = build_configuration .parallel_factor
428
423
with ProcessPoolExecutor (max_workers = max_workers ) as executor :
429
- logger .info (f"running with factor of { max_workers } " )
430
- print (f"======= Versions to build { agent_versions_to_build } =======" )
424
+ logger .info (f"Running with factor of { max_workers } " )
425
+ logger . info (f"======= Agent versions to build { agent_versions_to_build } =======" )
431
426
for idx , agent_version in enumerate (agent_versions_to_build ):
432
427
# We don't need to keep create and push the same image on every build.
433
428
# It is enough to create and push the non-operator suffixed images only during releases to ecr and quay.
434
- print (f"======= Building Agent { agent_version } ({ idx } /{ len (agent_versions_to_build )} )" )
429
+ logger . info (f"======= Building Agent { agent_version } ({ idx } /{ len (agent_versions_to_build )} )" )
435
430
_build_agent_operator (
436
431
agent_version ,
437
432
build_configuration ,
0 commit comments