qontract-reconcile 0.10.2.dev190__py3-none-any.whl → 0.10.2.dev192__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.4
2
2
  Name: qontract-reconcile
3
- Version: 0.10.2.dev190
3
+ Version: 0.10.2.dev192
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
@@ -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=c31Jtw5t8bnOzUO9jMWF_0DHitPzol93AA7YWBxM5L0,25416
32
+ reconcile/gitlab_housekeeping.py,sha256=U8DKWsFZe7Q3ArN5WSlrPM8Pxxf2_4V0KgvQAnm1mSQ,25550
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
@@ -226,7 +226,7 @@ reconcile/glitchtip_project_alerts/integration.py,sha256=BgMx-NyV9mTuv7Sotb2OioC
226
226
  reconcile/glitchtip_project_dsn/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
227
227
  reconcile/glitchtip_project_dsn/integration.py,sha256=2iugub-kHYkHNK33n0v9_TeWonuxCPah_VkoTPvaajE,8077
228
228
  reconcile/gql_definitions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
229
- reconcile/gql_definitions/introspection.json,sha256=MT1HCR90ZahZxjrgaBEp34JNhjaEiDRblQK-qfSrfF0,2316277
229
+ reconcile/gql_definitions/introspection.json,sha256=f7LtPBJlVNfTTlhQjVpp2D6-AF73BqYGoJ3afW8YtJ4,2322856
230
230
  reconcile/gql_definitions/acs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
231
231
  reconcile/gql_definitions/acs/acs_instances.py,sha256=L91WW9LbhJbBSrECqShQpFtjoBOsmNIYLRpMbx1io5o,2181
232
232
  reconcile/gql_definitions/acs/acs_policies.py,sha256=Ygpfl2-VkYLSlJvHgp_dJBfb66K_Rwfdfpsa18w1v1s,4338
@@ -809,7 +809,7 @@ tools/saas_promotion_state/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
809
809
  tools/saas_promotion_state/saas_promotion_state.py,sha256=UfwwRLS5Ya4_Nh1w5n1dvoYtchQvYE9yj1VANt2IKqI,3925
810
810
  tools/sre_checkpoints/__init__.py,sha256=CDaDaywJnmRCLyl_NCcvxi-Zc0hTi_3OdwKiFOyS39I,145
811
811
  tools/sre_checkpoints/util.py,sha256=zEDbGr18ZeHNQwW8pUsr2JRjuXIPz--WAGJxZo9sv_Y,894
812
- qontract_reconcile-0.10.2.dev190.dist-info/METADATA,sha256=M8HNFaDsoe3dEbG8jlcNJGwc1jHGo6Epm75Tmwy7vi8,24555
813
- qontract_reconcile-0.10.2.dev190.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
814
- qontract_reconcile-0.10.2.dev190.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
815
- qontract_reconcile-0.10.2.dev190.dist-info/RECORD,,
812
+ qontract_reconcile-0.10.2.dev192.dist-info/METADATA,sha256=k0G4P25wbsCOkHg4TS0eD_mHgGuihKi2U1BvpwEh8HA,24555
813
+ qontract_reconcile-0.10.2.dev192.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
814
+ qontract_reconcile-0.10.2.dev192.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
815
+ qontract_reconcile-0.10.2.dev192.dist-info/RECORD,,
@@ -72,6 +72,7 @@ HOLD_LABELS = [
72
72
  QONTRACT_INTEGRATION = "gitlab-housekeeping"
73
73
  DATE_FORMAT = "%Y-%m-%dT%H:%M:%S.%fZ"
74
74
  EXPIRATION_DATE_FORMAT = "%Y-%m-%d"
75
+ SQUASH_OPTION_ALWAYS = "always"
75
76
 
76
77
  merged_merge_requests = Counter(
77
78
  name="qontract_reconcile_merged_merge_requests",
@@ -613,7 +614,8 @@ def merge_merge_requests(
613
614
  logging.info(["merge", gl.project.name, mr.iid])
614
615
  if not dry_run and merges < merge_limit:
615
616
  try:
616
- mr.merge()
617
+ squash = (gl.project.squash_option == SQUASH_OPTION_ALWAYS) or mr.squash
618
+ mr.merge(squash=squash)
617
619
  labels = mr.labels
618
620
  merged_merge_requests.labels(
619
621
  project_id=mr.target_project_id,
@@ -5725,6 +5725,11 @@
5725
5725
  "name": "AutomatedActionCreateToken_v1",
5726
5726
  "ofType": null
5727
5727
  },
5728
+ {
5729
+ "kind": "OBJECT",
5730
+ "name": "AutomatedActionNoOp_v1",
5731
+ "ofType": null
5732
+ },
5728
5733
  {
5729
5734
  "kind": "OBJECT",
5730
5735
  "name": "AutomatedActionOpenshiftWorkloadRestart_v1",
@@ -27215,6 +27220,11 @@
27215
27220
  "name": "AutomatedActionCreateToken_v1",
27216
27221
  "ofType": null
27217
27222
  },
27223
+ {
27224
+ "kind": "OBJECT",
27225
+ "name": "AutomatedActionNoOp_v1",
27226
+ "ofType": null
27227
+ },
27218
27228
  {
27219
27229
  "kind": "OBJECT",
27220
27230
  "name": "AutomatedActionOpenshiftWorkloadRestart_v1",
@@ -53187,6 +53197,148 @@
53187
53197
  "enumValues": null,
53188
53198
  "possibleTypes": null
53189
53199
  },
53200
+ {
53201
+ "kind": "OBJECT",
53202
+ "name": "AutomatedActionNoOp_v1",
53203
+ "description": null,
53204
+ "fields": [
53205
+ {
53206
+ "name": "schema",
53207
+ "description": null,
53208
+ "args": [],
53209
+ "type": {
53210
+ "kind": "NON_NULL",
53211
+ "name": null,
53212
+ "ofType": {
53213
+ "kind": "SCALAR",
53214
+ "name": "String",
53215
+ "ofType": null
53216
+ }
53217
+ },
53218
+ "isDeprecated": false,
53219
+ "deprecationReason": null
53220
+ },
53221
+ {
53222
+ "name": "path",
53223
+ "description": null,
53224
+ "args": [],
53225
+ "type": {
53226
+ "kind": "NON_NULL",
53227
+ "name": null,
53228
+ "ofType": {
53229
+ "kind": "SCALAR",
53230
+ "name": "String",
53231
+ "ofType": null
53232
+ }
53233
+ },
53234
+ "isDeprecated": false,
53235
+ "deprecationReason": null
53236
+ },
53237
+ {
53238
+ "name": "type",
53239
+ "description": null,
53240
+ "args": [],
53241
+ "type": {
53242
+ "kind": "NON_NULL",
53243
+ "name": null,
53244
+ "ofType": {
53245
+ "kind": "SCALAR",
53246
+ "name": "String",
53247
+ "ofType": null
53248
+ }
53249
+ },
53250
+ "isDeprecated": false,
53251
+ "deprecationReason": null
53252
+ },
53253
+ {
53254
+ "name": "description",
53255
+ "description": null,
53256
+ "args": [],
53257
+ "type": {
53258
+ "kind": "SCALAR",
53259
+ "name": "String",
53260
+ "ofType": null
53261
+ },
53262
+ "isDeprecated": false,
53263
+ "deprecationReason": null
53264
+ },
53265
+ {
53266
+ "name": "maxOps",
53267
+ "description": null,
53268
+ "args": [],
53269
+ "type": {
53270
+ "kind": "NON_NULL",
53271
+ "name": null,
53272
+ "ofType": {
53273
+ "kind": "SCALAR",
53274
+ "name": "Int",
53275
+ "ofType": null
53276
+ }
53277
+ },
53278
+ "isDeprecated": false,
53279
+ "deprecationReason": null
53280
+ },
53281
+ {
53282
+ "name": "instances",
53283
+ "description": null,
53284
+ "args": [],
53285
+ "type": {
53286
+ "kind": "NON_NULL",
53287
+ "name": null,
53288
+ "ofType": {
53289
+ "kind": "LIST",
53290
+ "name": null,
53291
+ "ofType": {
53292
+ "kind": "NON_NULL",
53293
+ "name": null,
53294
+ "ofType": {
53295
+ "kind": "OBJECT",
53296
+ "name": "AutomatedActionsInstance_v1",
53297
+ "ofType": null
53298
+ }
53299
+ }
53300
+ }
53301
+ },
53302
+ "isDeprecated": false,
53303
+ "deprecationReason": null
53304
+ },
53305
+ {
53306
+ "name": "permissions",
53307
+ "description": null,
53308
+ "args": [],
53309
+ "type": {
53310
+ "kind": "LIST",
53311
+ "name": null,
53312
+ "ofType": {
53313
+ "kind": "NON_NULL",
53314
+ "name": null,
53315
+ "ofType": {
53316
+ "kind": "OBJECT",
53317
+ "name": "PermissionAutomatedActions_v1",
53318
+ "ofType": null
53319
+ }
53320
+ }
53321
+ },
53322
+ "isDeprecated": false,
53323
+ "deprecationReason": null
53324
+ }
53325
+ ],
53326
+ "inputFields": null,
53327
+ "interfaces": [
53328
+ {
53329
+ "kind": "INTERFACE",
53330
+ "name": "AutomatedAction_v1",
53331
+ "ofType": null
53332
+ },
53333
+ {
53334
+ "kind": "INTERFACE",
53335
+ "name": "DatafileObject_v1",
53336
+ "ofType": null
53337
+ }
53338
+ ],
53339
+ "enumValues": null,
53340
+ "possibleTypes": null
53341
+ },
53190
53342
  {
53191
53343
  "kind": "OBJECT",
53192
53344
  "name": "AutomatedActionOpenshiftWorkloadRestart_v1",