@@ -713,7 +713,8 @@ def should_skip_arm64():
713
713
"""
714
714
return is_running_in_evg_pipeline () and is_running_in_patch ()
715
715
716
-
716
+ # build_image_daily is always called, it is not only used for daily builds. build_image_generic calls
717
+ # build_image_daily for the release and PR builds too.
717
718
def build_image_daily (
718
719
image_name : str , # corresponds to the image_name in the release.json
719
720
min_version : str = None ,
@@ -774,6 +775,7 @@ def inner(build_configuration: BuildConfiguration):
774
775
775
776
args = args_for_daily_image (image_name )
776
777
args ["build_id" ] = build_id ()
778
+ # TODO: add span for build_id
777
779
778
780
completed_versions = set ()
779
781
@@ -1392,6 +1394,9 @@ def gather_latest_agent_versions(release: Dict) -> List[Tuple[str, str]]:
1392
1394
return sorted (list (set (agent_versions_to_build )))
1393
1395
1394
1396
1397
+ # First a context image is created, a ops-manager-context:v1.33
1398
+ # Daily builds exist because to mitigate CVEs as soon as possible and overwrite existing tags.
1399
+ # Contexts are used by customers without using the operating image.
1395
1400
def get_builder_function_for_image_name () -> Dict [str , Callable ]:
1396
1401
"""Returns a dictionary of image names that can be built."""
1397
1402
@@ -1413,7 +1418,8 @@ def get_builder_function_for_image_name() -> Dict[str, Callable]:
1413
1418
"init-database" : build_init_database ,
1414
1419
"init-ops-manager" : build_init_om_image ,
1415
1420
#
1416
- # Daily builds
1421
+ # Daily builds re-use context images from non-daily builds. Daily builds are only executed daily,
1422
+ # all other builds are executed on release, patches and PRs.
1417
1423
"operator-daily" : build_image_daily ("mongodb-kubernetes" ),
1418
1424
"appdb-daily" : build_image_daily ("appdb" ),
1419
1425
"database-daily" : build_image_daily ("database" ),
0 commit comments