diff options
author | Tobias Henkel <tobias.henkel@bmw-carit.de> | 2017-03-28 11:23:21 +0200 |
---|---|---|
committer | Tobias Henkel <tobias.henkel@bmw-carit.de> | 2017-04-27 10:47:47 +0200 |
commit | 6b9390f5ba42f3b09f4f58e30fa9be3ebf60566a (patch) | |
tree | e32047436c6287f9660738397eeba909a546ab3c /zuul/manager/__init__.py | |
parent | 2d079ab8139ee89ae2b75ee222a7b4e1b7e8460d (diff) | |
download | zuul-6b9390f5ba42f3b09f4f58e30fa9be3ebf60566a.tar.gz |
Move dependency cycle detection into pipelines
This changes the gerrit connection to tolerate cyclic patch
dependencies. This is a first step towards support of cyclic patch
dependencies where this will need to be handled in the pipelines
themselves. For now the pipelines are changed to detect the cycles by
themselves allowing to enhance them for cyclic dependencies later on.
Change-Id: I26e37b3fe66f46250a1baea1b803fd82d07145d7
Diffstat (limited to 'zuul/manager/__init__.py')
-rw-r--r-- | zuul/manager/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zuul/manager/__init__.py b/zuul/manager/__init__.py index 3a4ea6a97..bcda89fdc 100644 --- a/zuul/manager/__init__.py +++ b/zuul/manager/__init__.py @@ -179,7 +179,7 @@ class PipelineManager(object): return True def enqueueChangesAhead(self, change, quiet, ignore_requirements, - change_queue): + change_queue, history=None): return True def enqueueChangesBehind(self, change, quiet, ignore_requirements, @@ -278,7 +278,7 @@ class PipelineManager(object): def addChange(self, change, quiet=False, enqueue_time=None, ignore_requirements=False, live=True, - change_queue=None): + change_queue=None, history=None): self.log.debug("Considering adding change %s" % change) # If we are adding a live change, check if it's a live item @@ -309,7 +309,7 @@ class PipelineManager(object): return False if not self.enqueueChangesAhead(change, quiet, ignore_requirements, - change_queue): + change_queue, history=history): self.log.debug("Failed to enqueue changes " "ahead of %s" % change) return False |