qontract-reconcile 0.10.2.dev225__py3-none-any.whl → 0.10.2.dev227__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.2.dev225.dist-info → qontract_reconcile-0.10.2.dev227.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.2.dev225.dist-info → qontract_reconcile-0.10.2.dev227.dist-info}/RECORD +6 -6
- reconcile/gitlab_housekeeping.py +3 -2
- reconcile/openshift_saas_deploy_trigger_base.py +9 -1
- {qontract_reconcile-0.10.2.dev225.dist-info → qontract_reconcile-0.10.2.dev227.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.2.dev225.dist-info → qontract_reconcile-0.10.2.dev227.dist-info}/entry_points.txt +0 -0
{qontract_reconcile-0.10.2.dev225.dist-info → qontract_reconcile-0.10.2.dev227.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: qontract-reconcile
|
3
|
-
Version: 0.10.2.
|
3
|
+
Version: 0.10.2.dev227
|
4
4
|
Summary: Collection of tools to reconcile services with their desired state as defined in the app-interface DB.
|
5
5
|
Project-URL: homepage, https://github.com/app-sre/qontract-reconcile
|
6
6
|
Project-URL: repository, https://github.com/app-sre/qontract-reconcile
|
{qontract_reconcile-0.10.2.dev225.dist-info → qontract_reconcile-0.10.2.dev227.dist-info}/RECORD
RENAMED
@@ -29,7 +29,7 @@ reconcile/github_repo_permissions_validator.py,sha256=PNqL4dqa2OaNBy-NmLVN-t1HZa
|
|
29
29
|
reconcile/github_users.py,sha256=ZeYNMyvZPVMx6mh5TiKEUQy4W1uw3VmUZOHiXus5I0Y,5073
|
30
30
|
reconcile/github_validator.py,sha256=-j17tn3csFVjPMSPL3te48iWVkPZCncRXdeKeLdGjjQ,931
|
31
31
|
reconcile/gitlab_fork_compliance.py,sha256=RbHckzLnE9zkOFHJANzoejEMMbMAivmqJVs3Suvp9lU,4591
|
32
|
-
reconcile/gitlab_housekeeping.py,sha256=
|
32
|
+
reconcile/gitlab_housekeeping.py,sha256=JEnerWbirICkJQy91ZVepcHge2XWrVUazfIeKnZ94ZQ,26345
|
33
33
|
reconcile/gitlab_labeler.py,sha256=BA2dbXsN9hErUwJl22qcxfeH7XiPCuQ9LN3NddWdnpo,4540
|
34
34
|
reconcile/gitlab_members.py,sha256=yRZOZqwB9_FJ5DWIFEod6hoG0X38z36atInNshAWddI,8263
|
35
35
|
reconcile/gitlab_mr_sqs_consumer.py,sha256=i_MDVfA3Uk_TJiNkfEJzhO6_rwR7z3I3dH9oEw686U4,2681
|
@@ -77,7 +77,7 @@ reconcile/openshift_rolebindings.py,sha256=9mlJ2FjWUoH-rsjtasreA_hV-K5Z_YR00qR_R
|
|
77
77
|
reconcile/openshift_routes.py,sha256=fXvuPSjcjVw1X3j2EQvUAdbOepmIFdKk-M3qP8QzPiw,1075
|
78
78
|
reconcile/openshift_saas_deploy.py,sha256=T1dvb9zajisaJNjbnR6-AZHU-itscHtr4oCqLj8KCK0,13037
|
79
79
|
reconcile/openshift_saas_deploy_change_tester.py,sha256=12uyBwaeMka1C3_pejmQPIBPAx2V1sJ4dJkScq-2e2M,8793
|
80
|
-
reconcile/openshift_saas_deploy_trigger_base.py,sha256=
|
80
|
+
reconcile/openshift_saas_deploy_trigger_base.py,sha256=fHCnlskcRKcitmIWWF3ePhKhQ0WlMeEaRDZM2IAW9BY,14649
|
81
81
|
reconcile/openshift_saas_deploy_trigger_cleaner.py,sha256=roLyVAVntaQptKaZbnN1LyLvCA8fyvqELfjU6M8xfeY,3511
|
82
82
|
reconcile/openshift_saas_deploy_trigger_configs.py,sha256=eUejMGWuaQabZTLuvPLLvROfN5HOFyYZOpH4YEsiU_g,928
|
83
83
|
reconcile/openshift_saas_deploy_trigger_images.py,sha256=iUsiBGJf-CyFw7tSLWo59rXmSvsVnN6TTaAObbsVpNg,936
|
@@ -803,7 +803,7 @@ tools/saas_promotion_state/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
|
|
803
803
|
tools/saas_promotion_state/saas_promotion_state.py,sha256=UfwwRLS5Ya4_Nh1w5n1dvoYtchQvYE9yj1VANt2IKqI,3925
|
804
804
|
tools/sre_checkpoints/__init__.py,sha256=CDaDaywJnmRCLyl_NCcvxi-Zc0hTi_3OdwKiFOyS39I,145
|
805
805
|
tools/sre_checkpoints/util.py,sha256=zEDbGr18ZeHNQwW8pUsr2JRjuXIPz--WAGJxZo9sv_Y,894
|
806
|
-
qontract_reconcile-0.10.2.
|
807
|
-
qontract_reconcile-0.10.2.
|
808
|
-
qontract_reconcile-0.10.2.
|
809
|
-
qontract_reconcile-0.10.2.
|
806
|
+
qontract_reconcile-0.10.2.dev227.dist-info/METADATA,sha256=0R2v9Q314LY9zE5FtJWV90CsSYzdjCiyXhIGBCvKt4U,24431
|
807
|
+
qontract_reconcile-0.10.2.dev227.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
808
|
+
qontract_reconcile-0.10.2.dev227.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
|
809
|
+
qontract_reconcile-0.10.2.dev227.dist-info/RECORD,,
|
reconcile/gitlab_housekeeping.py
CHANGED
@@ -213,9 +213,10 @@ def verify_on_demand_tests(
|
|
213
213
|
if not dry_run and state_change:
|
214
214
|
markdown_report = (
|
215
215
|
f"On-demand Tests: \n\n For latest [commit]({commit.web_url}) You will need to pass following test jobs to get this MR merged.\n\n"
|
216
|
-
f"Add comment with `/test [test_name]` to trigger the
|
216
|
+
f"Add a comment with `/test [test_name]` to trigger a test; multiple tests can be triggered from the same comment: repeat the `/test [test_name]` command separated by lines.\n\n"
|
217
217
|
)
|
218
|
-
markdown_report += f"* {', '.join(remaining_tests)}\n"
|
218
|
+
markdown_report += f"* {', '.join(remaining_tests)}\n\n"
|
219
|
+
markdown_report += "An update of the MR will reset the on-demand tests. Consider running them once the MR is REVIEWED and no more code changes are required.\n\n"
|
219
220
|
gl.delete_merge_request_comments(mr, startswith="On-demand Tests:")
|
220
221
|
gl.add_comment_to_merge_request(mr, markdown_report)
|
221
222
|
state.add(state_key, remaining_tests, force=True)
|
@@ -38,7 +38,7 @@ from reconcile.utils.saasherder import (
|
|
38
38
|
TriggerSpecUnion,
|
39
39
|
)
|
40
40
|
from reconcile.utils.saasherder.interfaces import SaasPipelinesProviderTekton
|
41
|
-
from reconcile.utils.saasherder.models import TriggerTypes
|
41
|
+
from reconcile.utils.saasherder.models import TriggerSpecConfig, TriggerTypes
|
42
42
|
from reconcile.utils.secret_reader import create_secret_reader
|
43
43
|
from reconcile.utils.sharding import is_in_shard
|
44
44
|
from reconcile.utils.state import init_state
|
@@ -267,6 +267,10 @@ def _trigger_tekton(
|
|
267
267
|
)
|
268
268
|
return False
|
269
269
|
|
270
|
+
target_ref = None
|
271
|
+
if isinstance(spec, TriggerSpecConfig):
|
272
|
+
target_ref = spec.target_ref
|
273
|
+
|
270
274
|
tkn_trigger_resource, tkn_name = _construct_tekton_trigger_resource(
|
271
275
|
spec.saas_file_name,
|
272
276
|
spec.env_name,
|
@@ -278,6 +282,7 @@ def _trigger_tekton(
|
|
278
282
|
integration_version,
|
279
283
|
saasherder.include_trigger_trace,
|
280
284
|
spec.reason,
|
285
|
+
target_ref,
|
281
286
|
)
|
282
287
|
|
283
288
|
error = False
|
@@ -334,6 +339,7 @@ def _construct_tekton_trigger_resource(
|
|
334
339
|
integration_version: str,
|
335
340
|
include_trigger_trace: bool,
|
336
341
|
reason: str | None,
|
342
|
+
target_ref: str | None,
|
337
343
|
) -> tuple[OR, str]:
|
338
344
|
"""Construct a resource (PipelineRun) to trigger a deployment via Tekton.
|
339
345
|
|
@@ -348,6 +354,7 @@ def _construct_tekton_trigger_resource(
|
|
348
354
|
integration_version (string): Version of calling integration
|
349
355
|
include_trigger_trace (bool): Should include traces of the triggering integration and reason
|
350
356
|
reason (string): The reason this trigger was created
|
357
|
+
target_ref (string): the SHA ref of the target
|
351
358
|
|
352
359
|
Returns:
|
353
360
|
OpenshiftResource: OpenShift resource to be applied
|
@@ -385,6 +392,7 @@ def _construct_tekton_trigger_resource(
|
|
385
392
|
"labels": {
|
386
393
|
"qontract.saas_file_name": saas_file_name,
|
387
394
|
"qontract.env_name": env_name,
|
395
|
+
"qontract.target_ref": target_ref or "",
|
388
396
|
},
|
389
397
|
},
|
390
398
|
"spec": {
|
{qontract_reconcile-0.10.2.dev225.dist-info → qontract_reconcile-0.10.2.dev227.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|