qontract-reconcile 0.10.1rc1007__py3-none-any.whl → 0.10.1rc1009__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.1rc1007.dist-info → qontract_reconcile-0.10.1rc1009.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.1rc1007.dist-info → qontract_reconcile-0.10.1rc1009.dist-info}/RECORD +10 -9
- reconcile/gitlab_housekeeping.py +1 -1
- reconcile/test/test_gitlab_housekeeping.py +1 -1
- reconcile/utils/mr/__init__.py +2 -0
- reconcile/utils/mr/promote_qontract.py +41 -0
- tools/qontract_cli.py +2 -2
- {qontract_reconcile-0.10.1rc1007.dist-info → qontract_reconcile-0.10.1rc1009.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.1rc1007.dist-info → qontract_reconcile-0.10.1rc1009.dist-info}/entry_points.txt +0 -0
- {qontract_reconcile-0.10.1rc1007.dist-info → qontract_reconcile-0.10.1rc1009.dist-info}/top_level.txt +0 -0
{qontract_reconcile-0.10.1rc1007.dist-info → qontract_reconcile-0.10.1rc1009.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.1rc1009
|
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.1rc1007.dist-info → qontract_reconcile-0.10.1rc1009.dist-info}/RECORD
RENAMED
@@ -30,7 +30,7 @@ reconcile/github_repo_permissions_validator.py,sha256=dcbXdUx6imjNchjp3pg9-z1i7l
|
|
30
30
|
reconcile/github_users.py,sha256=nfTq78QRONIfDVj-5O3bD6psllJjzWFnog-EJ1WqFPU,3672
|
31
31
|
reconcile/github_validator.py,sha256=cVTVxJIGR4a1Jz8wrdXEAb_CMpXUzvykVmUURX4cook,917
|
32
32
|
reconcile/gitlab_fork_compliance.py,sha256=5joAIGOOLhHme1ipa7ZQeQkUOVe3dKbRO1wJtTwyNR4,4178
|
33
|
-
reconcile/gitlab_housekeeping.py,sha256=
|
33
|
+
reconcile/gitlab_housekeeping.py,sha256=nvClNzehph010hRTIMGDQc-3ag08aBXNUhzEJ2KW22c,22088
|
34
34
|
reconcile/gitlab_labeler.py,sha256=4xJHmVX155fclrHqkR926sL1GH6RTN5XfZ8PnqNXbRA,4534
|
35
35
|
reconcile/gitlab_members.py,sha256=PrJE9OhDRdGG_gHM_77nQojLb4B18jtUu8DxgLsRS88,8417
|
36
36
|
reconcile/gitlab_mr_sqs_consumer.py,sha256=O46mdziPgGOndbU-0_UJKJVUaiEoVzJPEgKm4_UvYoI,2571
|
@@ -509,7 +509,7 @@ reconcile/test/test_gabi_authorized_users.py,sha256=6XnV5Q9inxP81ktGMVKyWucjBTUj
|
|
509
509
|
reconcile/test/test_gcr_mirror.py,sha256=A0y8auKZzr62-mGoxSQ__JnN0-ijZUltzjwR5miBgso,490
|
510
510
|
reconcile/test/test_github_org.py,sha256=aGWeMhkz1fjogvaAQGjemSKR201L5gEZZOe0iMQqj-Y,4487
|
511
511
|
reconcile/test/test_github_repo_invites.py,sha256=WrPn5ROAoJYK0ihzlZcFR0V9Pu2HcMs13I6nazf7hq4,3307
|
512
|
-
reconcile/test/test_gitlab_housekeeping.py,sha256=
|
512
|
+
reconcile/test/test_gitlab_housekeeping.py,sha256=ScD9Tgf9OOgGfAFfTy6Kn2222l2wH_A3gMRKdpvoWe0,10053
|
513
513
|
reconcile/test/test_gitlab_labeler.py,sha256=PmYXiU2g0_O5OTdMGPzdeqBAfat92U9bhjjfeyiGSmQ,4336
|
514
514
|
reconcile/test/test_gitlab_members.py,sha256=yjfQRUFG_F0kLYegax4_ec5VIBAnCPrvAgqMcN1GXzc,9985
|
515
515
|
reconcile/test/test_gitlab_permissions.py,sha256=vPFEsdjyP-lO8pc2rN6acMns3Sjz9YJs16msbBR8DZc,2736
|
@@ -765,7 +765,7 @@ reconcile/utils/membershipsources/resolver.py,sha256=meERrCZqeVJZR2lHdZEznaZDsCs
|
|
765
765
|
reconcile/utils/merge_request_manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
766
766
|
reconcile/utils/merge_request_manager/merge_request_manager.py,sha256=3EP6Yw_zB7nY0OkU8D_32nDqta1TITgtRI0cSmOlNQg,3332
|
767
767
|
reconcile/utils/merge_request_manager/parser.py,sha256=5pGoz8Q6EuYXlUc1z-D0FahdRP2YLO8CpACoa9HcgtQ,2098
|
768
|
-
reconcile/utils/mr/__init__.py,sha256=
|
768
|
+
reconcile/utils/mr/__init__.py,sha256=uvqxcp-uSlJExaH00XNCX9DSvA57jHTlPTg5dbZ_xvk,2487
|
769
769
|
reconcile/utils/mr/app_interface_reporter.py,sha256=6Kpg93V9FvcOke9Jimkva359MQ-ZyBIkUpf8QIA6-to,1793
|
770
770
|
reconcile/utils/mr/aws_access.py,sha256=w-UJutB_OfBJOvr-gsPzhtBPkDfKcNZZWGGuI9cN3HI,2605
|
771
771
|
reconcile/utils/mr/base.py,sha256=TP6xaxznxsF_v2KcC_D3ut1cX_4KCcx4pjIC1-4eZUY,7307
|
@@ -775,6 +775,7 @@ reconcile/utils/mr/labels.py,sha256=9QRTRjZAtq45zELd9SwavaraczMjwjn5no3RK1YxFTg,
|
|
775
775
|
reconcile/utils/mr/notificator.py,sha256=cp80wFzu_ZzrJPye7L1pI0H6JRGb7hOGuNxJYUq4Yr8,2967
|
776
776
|
reconcile/utils/mr/ocm_update_recommended_version.py,sha256=p_aVP0TGrlKk9WBwgQnYWqUDsED_Hg6G5Bqj0UvtRwA,1536
|
777
777
|
reconcile/utils/mr/ocm_upgrade_scheduler_org_updates.py,sha256=ojnIjw-8vRnmCCxOGBOEgPZLH4nC1hcuef74LWw2Rpk,3004
|
778
|
+
reconcile/utils/mr/promote_qontract.py,sha256=AgA7AXizYvUoycLMZb1zaa4BCLi4stsokWfEH4B0eWY,1266
|
778
779
|
reconcile/utils/mr/user_maintenance.py,sha256=cHPBn8zrReWLHalyk-EFdkFJe9zjVjRoZhT4t2zZfGE,3956
|
779
780
|
reconcile/utils/ocm/__init__.py,sha256=xv7CJp7K9LCQfa4gL_W0MMCOD1P4qOy8t5aZj1xXNUE,808
|
780
781
|
reconcile/utils/ocm/addons.py,sha256=_LDdJ-gapM3s5exKlIUt-MlXZTAUoHezbYBU0QmvfWQ,7335
|
@@ -827,7 +828,7 @@ tools/app_interface_metrics_exporter.py,sha256=zkwkxdAUAxjdc-pzx2_oJXG25fo0Fnyd5
|
|
827
828
|
tools/app_interface_reporter.py,sha256=1ZP58LYV6ww3XOLVxgy8NKasMb1jQmp4BNqzTEB0VBE,17723
|
828
829
|
tools/glitchtip_access_reporter.py,sha256=oPBnk_YoDuljU3v0FaChzOwwnk4vap1xEE67QEjzdqs,2948
|
829
830
|
tools/glitchtip_access_revalidation.py,sha256=8kbBJk04mkq28kWoRDDkfCGIF3GRg3pJrFAh1sW0dbk,2821
|
830
|
-
tools/qontract_cli.py,sha256=
|
831
|
+
tools/qontract_cli.py,sha256=iY_ORJiPBF2CShM33AtPdRPX-1f8PFM4Kfbe4M5TlPQ,126959
|
831
832
|
tools/sd_app_sre_alert_report.py,sha256=e9vAdyenUz2f5c8-z-5WY0wv-SJ9aePKDH2r4IwB6pc,5063
|
832
833
|
tools/template_validation.py,sha256=qpKYaTgk0GOPGa2Ct5_5sKdwIHtCAKIBGzsMPuJU5fw,3371
|
833
834
|
tools/cli_commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -858,8 +859,8 @@ tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jr
|
|
858
859
|
tools/test/test_saas_promotion_state.py,sha256=dy4kkSSAQ7bC0Xp2CociETGN-2aABEfL6FU5D9Jl00Y,6056
|
859
860
|
tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
|
860
861
|
tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
|
861
|
-
qontract_reconcile-0.10.
|
862
|
-
qontract_reconcile-0.10.
|
863
|
-
qontract_reconcile-0.10.
|
864
|
-
qontract_reconcile-0.10.
|
865
|
-
qontract_reconcile-0.10.
|
862
|
+
qontract_reconcile-0.10.1rc1009.dist-info/METADATA,sha256=kaExAbwxrmdFEH6fxY0-AV4mlc67NsMZyobWXQeLRGY,2263
|
863
|
+
qontract_reconcile-0.10.1rc1009.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
864
|
+
qontract_reconcile-0.10.1rc1009.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
|
865
|
+
qontract_reconcile-0.10.1rc1009.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
|
866
|
+
qontract_reconcile-0.10.1rc1009.dist-info/RECORD,,
|
reconcile/gitlab_housekeeping.py
CHANGED
@@ -177,7 +177,7 @@ def project() -> Project:
|
|
177
177
|
def can_be_merged_merge_request() -> Mock:
|
178
178
|
mr = create_autospec(ProjectMergeRequest)
|
179
179
|
mr.merge_status = "can_be_merged"
|
180
|
-
mr.
|
180
|
+
mr.draft = False
|
181
181
|
mr.commits.return_value = [create_autospec(ProjectCommit)]
|
182
182
|
mr.labels = ["lgtm"]
|
183
183
|
mr.iid = 1
|
reconcile/utils/mr/__init__.py
CHANGED
@@ -12,6 +12,7 @@ from reconcile.utils.mr.ocm_update_recommended_version import (
|
|
12
12
|
from reconcile.utils.mr.ocm_upgrade_scheduler_org_updates import (
|
13
13
|
CreateOCMUpgradeSchedulerOrgUpdates,
|
14
14
|
)
|
15
|
+
from reconcile.utils.mr.promote_qontract import PromoteQontractSchemas
|
15
16
|
from reconcile.utils.mr.user_maintenance import (
|
16
17
|
CreateDeleteUserAppInterface,
|
17
18
|
CreateDeleteUserInfra,
|
@@ -29,6 +30,7 @@ __all__ = [
|
|
29
30
|
"CreateAppInterfaceNotificator",
|
30
31
|
"CreateDeleteUserAppInterface",
|
31
32
|
"CreateDeleteUserInfra",
|
33
|
+
"PromoteQontractSchemas",
|
32
34
|
]
|
33
35
|
|
34
36
|
|
@@ -0,0 +1,41 @@
|
|
1
|
+
from reconcile.utils.gitlab_api import GitLabApi
|
2
|
+
from reconcile.utils.mr.base import MergeRequestBase
|
3
|
+
|
4
|
+
|
5
|
+
class PromoteQontractSchemas(MergeRequestBase):
|
6
|
+
name = "promote_qontract_schemas"
|
7
|
+
|
8
|
+
def __init__(self, version: str):
|
9
|
+
self.path = ".env"
|
10
|
+
self.version = version
|
11
|
+
|
12
|
+
super().__init__()
|
13
|
+
|
14
|
+
self.labels = []
|
15
|
+
|
16
|
+
@property
|
17
|
+
def title(self) -> str:
|
18
|
+
return f"[{self.name}] promote qontract-schemas to version {self.version}"
|
19
|
+
|
20
|
+
@property
|
21
|
+
def description(self) -> str:
|
22
|
+
return f"promote qontract-schemas to version {self.version}"
|
23
|
+
|
24
|
+
def process(self, gitlab_cli: GitLabApi) -> None:
|
25
|
+
raw_file = gitlab_cli.project.files.get(
|
26
|
+
file_path=self.path, ref=gitlab_cli.main_branch
|
27
|
+
)
|
28
|
+
content = raw_file.decode().decode("utf-8")
|
29
|
+
lines = content.splitlines()
|
30
|
+
for index, text in enumerate(lines):
|
31
|
+
if text.startswith("export SCHEMAS_IMAGE_TAG="):
|
32
|
+
lines[index] = f"export SCHEMAS_IMAGE_TAG={self.version}"
|
33
|
+
|
34
|
+
new_content = "\n".join(lines) + "\n"
|
35
|
+
|
36
|
+
gitlab_cli.update_file(
|
37
|
+
branch_name=self.branch,
|
38
|
+
file_path=self.path,
|
39
|
+
commit_message=self.description,
|
40
|
+
content=new_content,
|
41
|
+
)
|
tools/qontract_cli.py
CHANGED
@@ -2017,7 +2017,7 @@ def app_interface_review_queue(ctx) -> None:
|
|
2017
2017
|
|
2018
2018
|
queue_data = []
|
2019
2019
|
for mr in merge_requests:
|
2020
|
-
if mr.
|
2020
|
+
if mr.draft:
|
2021
2021
|
continue
|
2022
2022
|
if len(mr.commits()) == 0:
|
2023
2023
|
continue
|
@@ -2116,7 +2116,7 @@ def app_interface_open_selfserviceable_mr_queue(ctx):
|
|
2116
2116
|
]
|
2117
2117
|
queue_data = []
|
2118
2118
|
for mr in merge_requests:
|
2119
|
-
if mr.
|
2119
|
+
if mr.draft:
|
2120
2120
|
continue
|
2121
2121
|
if len(mr.commits()) == 0:
|
2122
2122
|
continue
|
{qontract_reconcile-0.10.1rc1007.dist-info → qontract_reconcile-0.10.1rc1009.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|