Skip to content

Commit defa0c0

Browse files
committed
Merge branch 'master' of github.com:mongodb/mongodb-kubernetes into CLOUDP-335393_mdb_agent_image_version_bump
2 parents 03aba02 + da6c026 commit defa0c0

File tree

3 files changed

+36
-22
lines changed

3 files changed

+36
-22
lines changed

.evergreen.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1787,17 +1787,17 @@ buildvariants:
17871787
tags: [ "release_agent" ]
17881788
run_on:
17891789
- release-ubuntu2204-large # This is required for CISA attestation https://jira.mongodb.org/browse/DEVPROD-17780
1790-
# depends_on:
1791-
## - variant: init_test_run
1792-
## name: build_agent_images_ubi # this ensures the agent gets released to ECR as well
1793-
## - variant: e2e_multi_cluster_kind
1794-
## name: '*'
1795-
## - variant: e2e_static_multi_cluster_2_clusters
1796-
## name: '*'
1797-
## - variant: e2e_mdb_kind_ubi_cloudqa
1798-
## name: '*'
1799-
## - variant: e2e_static_mdb_kind_ubi_cloudqa
1800-
## name: '*'
1790+
depends_on:
1791+
- variant: init_test_run
1792+
name: build_agent_images_ubi # this ensures the agent gets released to ECR as well
1793+
- variant: e2e_multi_cluster_kind
1794+
name: '*'
1795+
- variant: e2e_static_multi_cluster_2_clusters
1796+
name: '*'
1797+
- variant: e2e_mdb_kind_ubi_cloudqa
1798+
name: '*'
1799+
- variant: e2e_static_mdb_kind_ubi_cloudqa
1800+
name: '*'
18011801
tasks:
18021802
- name: release_agent
18031803

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: OpsManager container images not published due to a product bug
3+
kind: other
4+
date: 2025-08-11
5+
---
6+
7+
* We have deliberately not published the container images for OpsManager versions `7.0.16`, `8.0.8`, `8.0.9` and `8.0.10` due to a bug in the OpsManager which prevents MCK customers to upgrade their OpsManager deployments to those versions.

scripts/release/detect_ops_manager_changes.py

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,27 @@
44
Relies on git origin/master vs local release.json
55
"""
66
import json
7-
import os
8-
import re
7+
import logging
98
import subprocess
109
import sys
1110
from typing import Dict, List, Optional, Tuple
1211

12+
logging.basicConfig(
13+
level=logging.INFO,
14+
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
15+
handlers=[logging.StreamHandler(sys.stdout)],
16+
)
17+
logger = logging.getLogger(__name__)
18+
1319

1420
def get_content_from_git(commit: str, file_path: str) -> Optional[str]:
1521
try:
1622
result = subprocess.run(
1723
["git", "show", f"{commit}:{file_path}"], capture_output=True, text=True, check=True, timeout=30
1824
)
1925
return result.stdout
20-
except (subprocess.CalledProcessError, subprocess.TimeoutExpired):
26+
except (subprocess.CalledProcessError, subprocess.TimeoutExpired) as e:
27+
logger.error(f"Failed to get {file_path} from git commit {commit}: {e}")
2128
return None
2229

2330

@@ -26,13 +33,13 @@ def load_release_json_from_master() -> Optional[Dict]:
2633

2734
content = get_content_from_git(base_revision, "release.json")
2835
if not content:
29-
print(f"Could not retrieve release.json from {base_revision}")
36+
logger.error(f"Could not retrieve release.json from {base_revision}")
3037
return None
3138

3239
try:
3340
return json.loads(content)
3441
except json.JSONDecodeError as e:
35-
print(f"Invalid JSON in base release.json: {e}")
42+
logger.error(f"Invalid JSON in base release.json: {e}")
3643
return None
3744

3845

@@ -41,7 +48,7 @@ def load_current_release_json() -> Optional[Dict]:
4148
with open("release.json", "r") as f:
4249
return json.load(f)
4350
except (FileNotFoundError, json.JSONDecodeError) as e:
44-
print(f"Could not load current release.json: {e}")
51+
logger.error(f"Could not load current release.json: {e}")
4552
return None
4653

4754

@@ -97,7 +104,7 @@ def get_all_agents_for_rebuild() -> List[Tuple[str, str]]:
97104

98105
release_data = load_current_release_json()
99106
if not release_data:
100-
print("ERROR: Could not load release.json")
107+
logger.error("Could not load release.json")
101108
return []
102109

103110
ops_manager_mapping = extract_ops_manager_mapping(release_data)
@@ -122,21 +129,21 @@ def get_all_agents_for_rebuild() -> List[Tuple[str, str]]:
122129
tools_version = get_tools_version_for_agent(main_agent_version)
123130
agents.append((main_agent_version, tools_version))
124131

125-
return list(set(agents)) # Remove duplicates
132+
return list(set(agents))
126133

127134

128135
def detect_ops_manager_changes() -> List[Tuple[str, str]]:
129136
"""Returns (has_changes, changed_agents_list)"""
130-
print("=== Detecting OM Mapping Changes (Local vs Base) ===")
137+
logger.info("=== Detecting OM Mapping Changes (Local vs Base) ===")
131138

132139
current_release = load_current_release_json()
133140
if not current_release:
134-
print("ERROR: Could not load current local release.json")
141+
logger.error("Could not load current local release.json")
135142
return []
136143

137144
master_release = load_release_json_from_master()
138145
if not master_release:
139-
print("WARNING: Could not load base release.json, assuming changes exist")
146+
logger.warning("Could not load base release.json, assuming changes exist")
140147
return []
141148

142149
current_mapping = extract_ops_manager_mapping(current_release)

0 commit comments

Comments
 (0)