qontract-reconcile 0.10.1rc895__py3-none-any.whl → 0.10.1rc897__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.1rc895.dist-info → qontract_reconcile-0.10.1rc897.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.1rc895.dist-info → qontract_reconcile-0.10.1rc897.dist-info}/RECORD +7 -7
- reconcile/utils/vcs.py +10 -0
- tools/qontract_cli.py +1 -1
- {qontract_reconcile-0.10.1rc895.dist-info → qontract_reconcile-0.10.1rc897.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.1rc895.dist-info → qontract_reconcile-0.10.1rc897.dist-info}/entry_points.txt +0 -0
- {qontract_reconcile-0.10.1rc895.dist-info → qontract_reconcile-0.10.1rc897.dist-info}/top_level.txt +0 -0
{qontract_reconcile-0.10.1rc895.dist-info → qontract_reconcile-0.10.1rc897.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.1rc897
|
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.1rc895.dist-info → qontract_reconcile-0.10.1rc897.dist-info}/RECORD
RENAMED
@@ -711,7 +711,7 @@ reconcile/utils/three_way_diff_strategy.py,sha256=OniTnogBkdgy_7Xg51N1MgjS-Qtk8u
|
|
711
711
|
reconcile/utils/throughput.py,sha256=iP4UWAe2LVhDo69mPPmgo9nQ7RxHD6_GS8MZe-aSiuM,344
|
712
712
|
reconcile/utils/vault.py,sha256=f4mJLKE5vGMvNBbo8Xe0dPFLF5-Vchs5Ry5lyf0FuMg,14902
|
713
713
|
reconcile/utils/vaultsecretref.py,sha256=0KUSzuvTRxPyKY919TO3-B_eYg4_76fzKvMF8j5s1G0,911
|
714
|
-
reconcile/utils/vcs.py,sha256=
|
714
|
+
reconcile/utils/vcs.py,sha256=b6WNrczLoKs24O4E74me-fVuNHyPdXeBAAvUQ-bna-o,8879
|
715
715
|
reconcile/utils/acs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
716
716
|
reconcile/utils/acs/base.py,sha256=6bMvtvmqb8j7fvOYqKu3lMWQzRuhMmZ6xv1Gfyev1hU,2535
|
717
717
|
reconcile/utils/acs/notifiers.py,sha256=WI2HEerP73vDDYtBW-mC40MQAbo-VcTJbonl4_rhCTk,4997
|
@@ -813,7 +813,7 @@ tools/app_interface_metrics_exporter.py,sha256=zkwkxdAUAxjdc-pzx2_oJXG25fo0Fnyd5
|
|
813
813
|
tools/app_interface_reporter.py,sha256=uy9eRHf6EdvD8ZY2WYdroGXm18DOdnqVZyxaWN3Bm_0,17724
|
814
814
|
tools/glitchtip_access_reporter.py,sha256=oPBnk_YoDuljU3v0FaChzOwwnk4vap1xEE67QEjzdqs,2948
|
815
815
|
tools/glitchtip_access_revalidation.py,sha256=8kbBJk04mkq28kWoRDDkfCGIF3GRg3pJrFAh1sW0dbk,2821
|
816
|
-
tools/qontract_cli.py,sha256=
|
816
|
+
tools/qontract_cli.py,sha256=lEjrFQSUHDRYrIbQ96ncwjiIqNVqW8lZrpzy8_V_pFo,124262
|
817
817
|
tools/sd_app_sre_alert_report.py,sha256=e9vAdyenUz2f5c8-z-5WY0wv-SJ9aePKDH2r4IwB6pc,5063
|
818
818
|
tools/template_validation.py,sha256=qpKYaTgk0GOPGa2Ct5_5sKdwIHtCAKIBGzsMPuJU5fw,3371
|
819
819
|
tools/cli_commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -844,8 +844,8 @@ tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jr
|
|
844
844
|
tools/test/test_saas_promotion_state.py,sha256=dy4kkSSAQ7bC0Xp2CociETGN-2aABEfL6FU5D9Jl00Y,6056
|
845
845
|
tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
|
846
846
|
tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
|
847
|
-
qontract_reconcile-0.10.
|
848
|
-
qontract_reconcile-0.10.
|
849
|
-
qontract_reconcile-0.10.
|
850
|
-
qontract_reconcile-0.10.
|
851
|
-
qontract_reconcile-0.10.
|
847
|
+
qontract_reconcile-0.10.1rc897.dist-info/METADATA,sha256=2lJ7mAg-WLGpc_5bBbkZBEyH7n8uaow4sTIi4ZuA5w0,2273
|
848
|
+
qontract_reconcile-0.10.1rc897.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
849
|
+
qontract_reconcile-0.10.1rc897.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
|
850
|
+
qontract_reconcile-0.10.1rc897.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
|
851
|
+
qontract_reconcile-0.10.1rc897.dist-info/RECORD,,
|
reconcile/utils/vcs.py
CHANGED
@@ -37,6 +37,10 @@ class Commit:
|
|
37
37
|
date: datetime
|
38
38
|
|
39
39
|
|
40
|
+
class VCSMissingSourceBranchError(Exception):
|
41
|
+
pass
|
42
|
+
|
43
|
+
|
40
44
|
class VCS:
|
41
45
|
"""
|
42
46
|
Abstraction layer for aggregating different Version Control Systems.
|
@@ -212,7 +216,13 @@ class VCS:
|
|
212
216
|
merge_request=mr,
|
213
217
|
body=comment,
|
214
218
|
)
|
219
|
+
source_branch = mr.attributes.get("source_branch")
|
220
|
+
if not source_branch:
|
221
|
+
raise VCSMissingSourceBranchError(
|
222
|
+
f"Source branch is missing for MR {mr.attributes.get('iid')}"
|
223
|
+
)
|
215
224
|
self._app_interface_api.close(mr)
|
225
|
+
self._app_interface_api.delete_branch(source_branch)
|
216
226
|
|
217
227
|
def get_file_content_from_app_interface_master(self, file_path: str) -> str:
|
218
228
|
file_path = (
|
tools/qontract_cli.py
CHANGED
@@ -3690,7 +3690,7 @@ def get_promotion_state(channel: str, sha: str):
|
|
3690
3690
|
else:
|
3691
3691
|
print(f"{publisher_id=}")
|
3692
3692
|
print(
|
3693
|
-
f"State link: https://{region}.console.aws.amazon.com/s3/object/{bucket}?region=
|
3693
|
+
f"State link: https://{region}.console.aws.amazon.com/s3/object/{bucket}?region={region}&bucketType=general&prefix=state/openshift-saas-deploy/promotions_v2/{channel}/{publisher_id}/{sha}"
|
3694
3694
|
)
|
3695
3695
|
print(f"Content: {state}")
|
3696
3696
|
|
File without changes
|
File without changes
|
{qontract_reconcile-0.10.1rc895.dist-info → qontract_reconcile-0.10.1rc897.dist-info}/top_level.txt
RENAMED
File without changes
|