@@ -728,7 +728,8 @@ def should_skip_arm64():
728
728
"""
729
729
return is_running_in_evg_pipeline () and is_running_in_patch ()
730
730
731
-
731
+ # build_image_daily is always called, it is not only used for daily builds. build_image_generic calls
732
+ # build_image_daily for the release and PR builds too.
732
733
def build_image_daily (
733
734
image_name : str , # corresponds to the image_name in the release.json
734
735
min_version : str = None ,
@@ -781,6 +782,7 @@ def inner(build_configuration: BuildConfiguration):
781
782
782
783
args = args_for_daily_image (image_name )
783
784
args ["build_id" ] = build_id ()
785
+ # TODO: add span for build_id
784
786
785
787
completed_versions = set ()
786
788
@@ -1390,6 +1392,9 @@ def gather_latest_agent_versions(release: Dict) -> List[Tuple[str, str]]:
1390
1392
return sorted (list (set (agent_versions_to_build )))
1391
1393
1392
1394
1395
+ # First a context image is created, a ops-manager-context:v1.33
1396
+ # Daily builds exist because to mitigate CVEs as soon as possible and overwrite existing tags.
1397
+ # Contexts are used by customers without using the operating image.
1393
1398
def get_builder_function_for_image_name () -> Dict [str , Callable ]:
1394
1399
"""Returns a dictionary of image names that can be built."""
1395
1400
@@ -1411,7 +1416,8 @@ def get_builder_function_for_image_name() -> Dict[str, Callable]:
1411
1416
"init-database" : build_init_database ,
1412
1417
"init-ops-manager" : build_init_om_image ,
1413
1418
#
1414
- # Daily builds
1419
+ # Daily builds re-use context images from non-daily builds. Daily builds are only executed daily,
1420
+ # all other builds are executed on release, patches and PRs.
1415
1421
"operator-daily" : build_image_daily ("mongodb-kubernetes" ),
1416
1422
"appdb-daily" : build_image_daily ("appdb" ),
1417
1423
"database-daily" : build_image_daily ("database" ),
0 commit comments