qontract-reconcile 0.10.1rc612__py3-none-any.whl → 0.10.1rc613__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qontract-reconcile
3
- Version: 0.10.1rc612
3
+ Version: 0.10.1rc613
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
@@ -370,11 +370,11 @@ reconcile/saas_auto_promotions_manager/publisher.py,sha256=4_M9Oykhj-kEZPUn05E2D
370
370
  reconcile/saas_auto_promotions_manager/subscriber.py,sha256=cLhPlkT71J2LIice3SLmH1WpsqzV46gd0peMxrnqyRw,7452
371
371
  reconcile/saas_auto_promotions_manager/merge_request_manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
372
372
  reconcile/saas_auto_promotions_manager/merge_request_manager/merge_request.py,sha256=BeAJWLow7b4HQyZ9zz398sQkPeIz8chpMkCts2NU27c,1282
373
- reconcile/saas_auto_promotions_manager/merge_request_manager/merge_request_manager_v2.py,sha256=awjaelk-1YbuxA-SsamzinDmM820I8TynGkelJe3Uq4,6991
373
+ reconcile/saas_auto_promotions_manager/merge_request_manager/merge_request_manager_v2.py,sha256=Z-tUicItSMWq4WoAU59WTYChtOeS2FShD_bxrhNzsgc,7069
374
374
  reconcile/saas_auto_promotions_manager/merge_request_manager/metrics.py,sha256=sdHp71Wl87tFM-Z_QvqvdHhyrppFLGi4ekksCi_e_bs,977
375
375
  reconcile/saas_auto_promotions_manager/merge_request_manager/mr_parser.py,sha256=x8Gg-YjEFWEeDPJH3Y8SrfcJbwhLuAqCz4kIhfEyaaA,7060
376
376
  reconcile/saas_auto_promotions_manager/merge_request_manager/reconciler.py,sha256=nst5ZynEQs9Hy9Z2DAjN8_ALIS_5XnrbJh7KG4YVRrE,7789
377
- reconcile/saas_auto_promotions_manager/merge_request_manager/renderer.py,sha256=QP3Ui67AYhbUmBN5LF_vSCnlp6eOl97vPPCDgqTgxXc,6902
377
+ reconcile/saas_auto_promotions_manager/merge_request_manager/renderer.py,sha256=Z2G4wMQB3DLTuMlH_MGURGR4uLyh-6RnksQJzdym5VQ,6960
378
378
  reconcile/saas_auto_promotions_manager/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
379
379
  reconcile/saas_auto_promotions_manager/utils/saas_files_inventory.py,sha256=mihuWynroB1Cea1Lsvf6V8Nb8PGiBdcLC0uhCX_52Y0,6966
380
380
  reconcile/skupper_network/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -712,8 +712,8 @@ tools/test/test_app_interface_metrics_exporter.py,sha256=SX7qL3D1SIRKFo95FoQztvf
712
712
  tools/test/test_qontract_cli.py,sha256=OvalpVRfY4pNmpMaWHHYqBjV68b1eGQjX8SCyTAXb1w,3501
713
713
  tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
714
714
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
715
- qontract_reconcile-0.10.1rc612.dist-info/METADATA,sha256=2FcFrxUEu12rVexwAK30oj2zso3eZC0Rp3WSB1tCnIo,2382
716
- qontract_reconcile-0.10.1rc612.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
717
- qontract_reconcile-0.10.1rc612.dist-info/entry_points.txt,sha256=rIxI5zWtHNlfpDeq1a7pZXAPoqf7HG32KMTN3MeWK_8,429
718
- qontract_reconcile-0.10.1rc612.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
719
- qontract_reconcile-0.10.1rc612.dist-info/RECORD,,
715
+ qontract_reconcile-0.10.1rc613.dist-info/METADATA,sha256=OmG5nHaRuu7nDCZ91tOV_K4XRN0ZAvgzKYz1IbS9j0E,2382
716
+ qontract_reconcile-0.10.1rc613.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
717
+ qontract_reconcile-0.10.1rc613.dist-info/entry_points.txt,sha256=rIxI5zWtHNlfpDeq1a7pZXAPoqf7HG32KMTN3MeWK_8,429
718
+ qontract_reconcile-0.10.1rc613.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
719
+ qontract_reconcile-0.10.1rc613.dist-info/RECORD,,
@@ -131,7 +131,10 @@ class MergeRequestManagerV2:
131
131
  is_batchable=addition.batchable,
132
132
  )
133
133
  title = self._renderer.render_title(
134
- is_draft=False, canary=False, channels=description_channels
134
+ is_draft=False,
135
+ canary=False,
136
+ channels=description_channels,
137
+ batch_size=len(addition.content_hashes),
135
138
  )
136
139
  logging.info(
137
140
  "Open MR for update in channel(s) %s",
@@ -19,7 +19,7 @@ from reconcile.utils.ruamel import create_ruamel_instance
19
19
  PROMOTION_DATA_SEPARATOR = (
20
20
  "**SAPM Data - DO NOT MANUALLY CHANGE ANYTHING BELOW THIS LINE**"
21
21
  )
22
- SAPM_VERSION = "2.1.2"
22
+ SAPM_VERSION = "2.1.3"
23
23
  CONTENT_HASHES = "content_hashes"
24
24
  CHANNELS_REF = "channels"
25
25
  IS_BATCHABLE = "is_batchable"
@@ -140,9 +140,11 @@ class Renderer:
140
140
  {VERSION_REF}: {SAPM_VERSION}
141
141
  """
142
142
 
143
- def render_title(self, is_draft: bool, canary: bool, channels: str) -> str:
143
+ def render_title(
144
+ self, is_draft: bool, canary: bool, channels: str, batch_size: int
145
+ ) -> str:
144
146
  canary_suffix = "Canary" if canary else ""
145
- content = f"[SAPM{canary_suffix}] auto-promotion ID {int(hashlib.sha256(channels.encode('utf-8')).hexdigest(), 16) % 10**8}"
147
+ content = f"[SAPM{canary_suffix}] auto-promotion ID {int(hashlib.sha256(channels.encode('utf-8')).hexdigest(), 16) % 10**8} - batch size: {batch_size}"
146
148
  if is_draft:
147
149
  return f"Draft: {content}"
148
150
  return content