Add queue.dependencies-by-topic

This adds a pipeline queue setting to emulate the Gerrit behavior
of submitWholeTopic without needing to enable it site-wide in Gerrit.

Change-Id: Icb33a1e87d15229e6fb3aa1e4b1ad14a60623a29
This commit is contained in:
James E. Blair
2022-03-07 13:32:37 -08:00
parent 249ccc403b
commit e16fcc80f8
11 changed files with 248 additions and 15 deletions

View File

@@ -126,8 +126,23 @@ class BaseSource(object, metaclass=abc.ABCMeta):
search scope.
"""
def getChangesByTopic(self, topic):
"""Return changes in the same topic.
This should return changes under the same topic, as well as
changes under the same topic of any git-dependent changes,
recursively.
This is only implemented by the Gerrit driver, however if
other systems have a similar "topic" functionality, it could
be added to other drivers.
"""
return []
@abc.abstractmethod
def getProjectOpenChanges(self, project):
"""Get the open changes for a project."""
@abc.abstractmethod