qontract-reconcile 0.10.1rc1121__py3-none-any.whl → 0.10.1rc1123__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.1rc1121.dist-info → qontract_reconcile-0.10.1rc1123.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.1rc1121.dist-info → qontract_reconcile-0.10.1rc1123.dist-info}/RECORD +7 -7
- reconcile/gitlab_housekeeping.py +7 -3
- tools/qontract_cli.py +1 -2
- {qontract_reconcile-0.10.1rc1121.dist-info → qontract_reconcile-0.10.1rc1123.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.1rc1121.dist-info → qontract_reconcile-0.10.1rc1123.dist-info}/entry_points.txt +0 -0
- {qontract_reconcile-0.10.1rc1121.dist-info → qontract_reconcile-0.10.1rc1123.dist-info}/top_level.txt +0 -0
{qontract_reconcile-0.10.1rc1121.dist-info → qontract_reconcile-0.10.1rc1123.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.1rc1123
|
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.1rc1121.dist-info → qontract_reconcile-0.10.1rc1123.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=D0DOqC-xuMBMct04_MI8Lq32OAi_QMvvGLOz_E-77Dw,22482
|
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
|
@@ -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=1YA7gDYsU-QW1DaTCpz7zPWxsXuLRDLuO0u9HpiL6U0,130561
|
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.1rc1123.dist-info/METADATA,sha256=QPnwh45NAXdasJR2bqLK6ApW8ouYVsdq-YCDd2EWCwY,2213
|
873
|
+
qontract_reconcile-0.10.1rc1123.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
874
|
+
qontract_reconcile-0.10.1rc1123.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
|
875
|
+
qontract_reconcile-0.10.1rc1123.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
|
876
|
+
qontract_reconcile-0.10.1rc1123.dist-info/RECORD,,
|
reconcile/gitlab_housekeeping.py
CHANGED
@@ -3,6 +3,7 @@ from collections.abc import (
|
|
3
3
|
Iterable,
|
4
4
|
Set,
|
5
5
|
)
|
6
|
+
from contextlib import suppress
|
6
7
|
from dataclasses import dataclass
|
7
8
|
from datetime import (
|
8
9
|
UTC,
|
@@ -562,9 +563,12 @@ def publish_access_token_expiration_metrics(gl: GitLabApi) -> None:
|
|
562
563
|
if pat.active:
|
563
564
|
expiration_date = datetime.strptime(pat.expires_at, EXPIRATION_DATE_FORMAT)
|
564
565
|
days_until_expiration = expiration_date.date() - datetime.now(UTC).date()
|
565
|
-
gitlab_token_expiration.labels(
|
566
|
-
|
567
|
-
)
|
566
|
+
gitlab_token_expiration.labels(pat.name).set(days_until_expiration.days)
|
567
|
+
else:
|
568
|
+
with suppress(KeyError, ValueError):
|
569
|
+
# there's no publicly exposed method to determine if a label exists for a gauge
|
570
|
+
# which is why I wrapped the error like this
|
571
|
+
gitlab_token_expiration.remove(pat.name)
|
568
572
|
|
569
573
|
|
570
574
|
def run(dry_run, wait_for_pipeline):
|
tools/qontract_cli.py
CHANGED
@@ -2906,13 +2906,12 @@ def change_log_tracking(ctx):
|
|
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),
|
2909
|
-
"error": change_log_item.error,
|
2910
2909
|
}
|
2911
2910
|
data.append(item)
|
2912
2911
|
|
2913
2912
|
# TODO(mafriedm): Fix this
|
2914
2913
|
ctx.obj["options"]["sort"] = False
|
2915
|
-
columns = ["commit", "merged_at", "apps", "changes"
|
2914
|
+
columns = ["commit", "merged_at", "apps", "changes"]
|
2916
2915
|
print_output(ctx.obj["options"], data, columns)
|
2917
2916
|
|
2918
2917
|
|
{qontract_reconcile-0.10.1rc1121.dist-info → qontract_reconcile-0.10.1rc1123.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|