Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Handle failures in reaching gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
locriandev committed Oct 11, 2022
1 parent fb2a7c2 commit 5765e55
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions doozerlib/distgit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1636,8 +1636,13 @@ def _should_match_upstream(self) -> bool:
return False
elif self.runtime.group_config.canonical_builders_from_upstream == 'auto':
# canonical_builders_from_upstream set to 'auto': rebase according to release schedule
feature_freeze_date = ReleaseSchedule(self.runtime).get_ff_date()
return datetime.now() < feature_freeze_date
try:
feature_freeze_date = ReleaseSchedule(self.runtime).get_ff_date()
return datetime.now() < feature_freeze_date
except ChildProcessError:
# Could not access Gitlab: display a warning and fallback to default
self.logger.error('Failed retrieving release schedule from Gitlab: fallback to using ART\'s config')
return False
elif self.runtime.group_config.canonical_builders_from_upstream == 'on':
return True
elif self.runtime.group_config.canonical_builders_from_upstream == 'off':
Expand Down

0 comments on commit 5765e55

Please sign in to comment.