qontract-reconcile 0.10.1rc773__py3-none-any.whl → 0.10.1rc774__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.1rc773
3
+ Version: 0.10.1rc774
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
@@ -15,7 +15,7 @@ reconcile/closedbox_endpoint_monitoring_base.py,sha256=SMhkcQqprWvThrIJa3U_3uh5w
15
15
  reconcile/cluster_deployment_mapper.py,sha256=2Ah-nu-Mdig0pjuiZl_XLrmVAjYzFjORR3dMlCgkmw0,2352
16
16
  reconcile/dashdotdb_base.py,sha256=a5aPLVxyqPSbjdB0Ty-uliOtxwvEbbEljHJKxdK3-Zk,4813
17
17
  reconcile/dashdotdb_cso.py,sha256=FoXrWGpOwXG5jf0eklN84tjJVUAYzKat7rtq_28JMlQ,3672
18
- reconcile/dashdotdb_dora.py,sha256=n9EJXhxCoMYuldj4Fa5s0TqfiiolSrqDEOCaLBV3uag,17235
18
+ reconcile/dashdotdb_dora.py,sha256=hwGqjRbySKJeP7ekN96fwW5UFUpTWiQ-IZ_tzWQYbKY,17565
19
19
  reconcile/dashdotdb_dvo.py,sha256=YXqpI6fBQAql-ybGI0grj9gWMzmKiAvPE__pNju6obk,8996
20
20
  reconcile/dashdotdb_slo.py,sha256=bf1WSh5JP9obHVQsMy0OO71_VTYZgwAopElFZM6DmRo,6714
21
21
  reconcile/database_access_manager.py,sha256=42dBJyihdwx4WjEBjwi3lUiDzQ1t_2ZFViJri2c4_aE,25716
@@ -785,8 +785,8 @@ tools/test/test_app_interface_metrics_exporter.py,sha256=SX7qL3D1SIRKFo95FoQztvf
785
785
  tools/test/test_qontract_cli.py,sha256=w2l4BHB09k1d-BGJ1jBUNCqDv7zkqYrMHojQXg-21kQ,4155
786
786
  tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
787
787
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
788
- qontract_reconcile-0.10.1rc773.dist-info/METADATA,sha256=BTq0sMtbXDJnJ9rUZhlAz0JpFDJzcRvLfNx2a3jCmFU,2382
789
- qontract_reconcile-0.10.1rc773.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
790
- qontract_reconcile-0.10.1rc773.dist-info/entry_points.txt,sha256=rIxI5zWtHNlfpDeq1a7pZXAPoqf7HG32KMTN3MeWK_8,429
791
- qontract_reconcile-0.10.1rc773.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
792
- qontract_reconcile-0.10.1rc773.dist-info/RECORD,,
788
+ qontract_reconcile-0.10.1rc774.dist-info/METADATA,sha256=I9lXAkituklwaEp2VxZU_rBUp1jOMlcGDN7XisBfH28,2382
789
+ qontract_reconcile-0.10.1rc774.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
790
+ qontract_reconcile-0.10.1rc774.dist-info/entry_points.txt,sha256=rIxI5zWtHNlfpDeq1a7pZXAPoqf7HG32KMTN3MeWK_8,429
791
+ qontract_reconcile-0.10.1rc774.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
792
+ qontract_reconcile-0.10.1rc774.dist-info/RECORD,,
@@ -17,6 +17,7 @@ from typing import (
17
17
 
18
18
  import requests
19
19
  import yaml
20
+ from github import GithubException
20
21
  from psycopg2 import (
21
22
  connect,
22
23
  sql,
@@ -418,7 +419,14 @@ class DashdotdbDORA(DashdotdbBase):
418
419
 
419
420
  LOG.info("Fetching commits %s", rc)
420
421
  if rc.repo_url.startswith("https://github.com"):
421
- commits = self._github_compare_commits(rc)
422
+ try:
423
+ commits = self._github_compare_commits(rc)
424
+ except GithubException as e:
425
+ if e.status == 404:
426
+ LOG.info(
427
+ f"Ignoring RepoChanges for {rc} because could not calculate them: {e.data['message']}"
428
+ )
429
+ return rc, []
422
430
  elif rc.repo_url.startswith(self.gl.server):
423
431
  commits = self._gitlab_compare_commits(rc)
424
432
  else: