qontract-reconcile 0.10.1rc1123__py3-none-any.whl → 0.10.1rc1125__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {qontract_reconcile-0.10.1rc1123.dist-info → qontract_reconcile-0.10.1rc1125.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.1rc1123.dist-info → qontract_reconcile-0.10.1rc1125.dist-info}/RECORD +7 -7
- reconcile/change_owners/change_log_tracking.py +24 -8
- tools/qontract_cli.py +1 -1
- {qontract_reconcile-0.10.1rc1123.dist-info → qontract_reconcile-0.10.1rc1125.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.1rc1123.dist-info → qontract_reconcile-0.10.1rc1125.dist-info}/entry_points.txt +0 -0
- {qontract_reconcile-0.10.1rc1123.dist-info → qontract_reconcile-0.10.1rc1125.dist-info}/top_level.txt +0 -0
{qontract_reconcile-0.10.1rc1123.dist-info → qontract_reconcile-0.10.1rc1125.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: qontract-reconcile
|
3
|
-
Version: 0.10.
|
3
|
+
Version: 0.10.1rc1125
|
4
4
|
Summary: Collection of tools to reconcile services with their desired state as defined in the app-interface DB.
|
5
5
|
Home-page: https://github.com/app-sre/qontract-reconcile
|
6
6
|
Author: Red Hat App-SRE Team
|
{qontract_reconcile-0.10.1rc1123.dist-info → qontract_reconcile-0.10.1rc1125.dist-info}/RECORD
RENAMED
@@ -161,7 +161,7 @@ reconcile/aws_version_sync/merge_request_manager/merge_request_manager.py,sha256
|
|
161
161
|
reconcile/change_owners/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
162
162
|
reconcile/change_owners/approver.py,sha256=Z3_11vnK2WNOxjEEXVDh0224-_-qbt9d6mBeVE-7fsc,2259
|
163
163
|
reconcile/change_owners/bundle.py,sha256=h30fU-JmLH5a-rCAovpzTeTkkkgZztsZ5A2raee0YuU,5355
|
164
|
-
reconcile/change_owners/change_log_tracking.py,sha256=
|
164
|
+
reconcile/change_owners/change_log_tracking.py,sha256=kmGRDHwXmhR8nkhbWBXLEim7psEiDbgaviaO7aGQ0Dc,8673
|
165
165
|
reconcile/change_owners/change_owners.py,sha256=0HRJhDm0oW3uYJFgzynqA1gA0lbhalhSkmWOiQmr-NM,17062
|
166
166
|
reconcile/change_owners/change_types.py,sha256=HEsoBduhcczAXZHwT26mr5sVPxtf8J6tsvjSDDI1ceI,32077
|
167
167
|
reconcile/change_owners/changes.py,sha256=YblT-JPFagctTphzd38SjVmj3k1YsgMzN48zGpnLYKM,18222
|
@@ -838,7 +838,7 @@ tools/app_interface_metrics_exporter.py,sha256=zkwkxdAUAxjdc-pzx2_oJXG25fo0Fnyd5
|
|
838
838
|
tools/app_interface_reporter.py,sha256=oZPib4HPq0aZ2Zui1QGJGk6qQdfpeihujGDBnSdKyGE,17627
|
839
839
|
tools/glitchtip_access_reporter.py,sha256=oPBnk_YoDuljU3v0FaChzOwwnk4vap1xEE67QEjzdqs,2948
|
840
840
|
tools/glitchtip_access_revalidation.py,sha256=8kbBJk04mkq28kWoRDDkfCGIF3GRg3pJrFAh1sW0dbk,2821
|
841
|
-
tools/qontract_cli.py,sha256=
|
841
|
+
tools/qontract_cli.py,sha256=7cPjwPMHOUcz0JADrD4K7_k-g0kbnqplkmFgPZZ84gU,130565
|
842
842
|
tools/sd_app_sre_alert_report.py,sha256=e9vAdyenUz2f5c8-z-5WY0wv-SJ9aePKDH2r4IwB6pc,5063
|
843
843
|
tools/template_validation.py,sha256=qpKYaTgk0GOPGa2Ct5_5sKdwIHtCAKIBGzsMPuJU5fw,3371
|
844
844
|
tools/cli_commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -869,8 +869,8 @@ tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jr
|
|
869
869
|
tools/test/test_saas_promotion_state.py,sha256=dy4kkSSAQ7bC0Xp2CociETGN-2aABEfL6FU5D9Jl00Y,6056
|
870
870
|
tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
|
871
871
|
tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
|
872
|
-
qontract_reconcile-0.10.
|
873
|
-
qontract_reconcile-0.10.
|
874
|
-
qontract_reconcile-0.10.
|
875
|
-
qontract_reconcile-0.10.
|
876
|
-
qontract_reconcile-0.10.
|
872
|
+
qontract_reconcile-0.10.1rc1125.dist-info/METADATA,sha256=zrUfxoU8C3fM1QX5Uck-_4kIRXRk-TeWZYzq8jj56cE,2213
|
873
|
+
qontract_reconcile-0.10.1rc1125.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
874
|
+
qontract_reconcile-0.10.1rc1125.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
|
875
|
+
qontract_reconcile-0.10.1rc1125.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
|
876
|
+
qontract_reconcile-0.10.1rc1125.dist-info/RECORD,,
|
@@ -46,6 +46,14 @@ class ChangeLogItem:
|
|
46
46
|
class ChangeLog:
|
47
47
|
items: list[ChangeLogItem] = field(default_factory=list)
|
48
48
|
|
49
|
+
@property
|
50
|
+
def apps(self) -> set[str]:
|
51
|
+
return {app for item in self.items for app in item.apps}
|
52
|
+
|
53
|
+
@property
|
54
|
+
def change_types(self) -> set[str]:
|
55
|
+
return {change_type for item in self.items for change_type in item.change_types}
|
56
|
+
|
49
57
|
|
50
58
|
class ChangeLogIntegrationParams(PydanticRunParams):
|
51
59
|
gitlab_project_id: str
|
@@ -160,14 +168,19 @@ class ChangeLogIntegration(QontractReconcileIntegration[ChangeLogIntegrationPara
|
|
160
168
|
| "/dependencies/status-page-component-1.yml"
|
161
169
|
| "/app-sre/app-changelog-1.yml"
|
162
170
|
):
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
if
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
+
for c in change_versions:
|
172
|
+
c_app: dict[str, str] = c["app"]
|
173
|
+
app_path = c_app.get("$ref") or c_app.get("path")
|
174
|
+
if not app_path:
|
175
|
+
raise KeyError(
|
176
|
+
f"app path is expected. missing in query? app information: {c_app}"
|
177
|
+
)
|
178
|
+
app_name = app_name_by_path.get(app_path)
|
179
|
+
if not app_name:
|
180
|
+
raise KeyError(
|
181
|
+
f"app name is expected. missing in query? app information: {c_app}"
|
182
|
+
)
|
183
|
+
change_log_item.apps.append(app_name)
|
171
184
|
case "/openshift/cluster-1.yml":
|
172
185
|
changed_apps = {
|
173
186
|
name
|
@@ -203,6 +216,9 @@ class ChangeLogIntegration(QontractReconcileIntegration[ChangeLogIntegrationPara
|
|
203
216
|
)
|
204
217
|
)
|
205
218
|
|
219
|
+
logging.info(f"apps: {change_log.apps}")
|
220
|
+
logging.info(f"change_types: {change_log.change_types}")
|
221
|
+
|
206
222
|
change_log.items = sorted(
|
207
223
|
change_log.items, key=lambda i: i.merged_at, reverse=True
|
208
224
|
)
|
tools/qontract_cli.py
CHANGED
@@ -2902,7 +2902,7 @@ def change_log_tracking(ctx):
|
|
2902
2902
|
if ct.name in change_log_item.change_types
|
2903
2903
|
]
|
2904
2904
|
item = {
|
2905
|
-
"commit": f"[{commit}]({repo_url}/commit/{commit})",
|
2905
|
+
"commit": f"[{commit[:7]}]({repo_url}/commit/{commit})",
|
2906
2906
|
"merged_at": change_log_item.merged_at,
|
2907
2907
|
"apps": ", ".join(change_log_item.apps),
|
2908
2908
|
"changes": ", ".join(covered_change_types_descriptions),
|
{qontract_reconcile-0.10.1rc1123.dist-info → qontract_reconcile-0.10.1rc1125.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|