Merge "Update following changes logging"

This commit is contained in:
Zuul 2022-11-29 19:59:03 +00:00 committed by Gerrit Code Review
commit 800c97357d
2 changed files with 4 additions and 1 deletions

View File

@ -121,6 +121,7 @@ class GerritSource(BaseSource):
queries.add('message:{Depends-On: %s}' % uri)
query = '(' + ' OR '.join(queries) + ')'
results = self.connection.simpleQuery(query)
self.log.debug('%s possible depending changes found', len(results))
seen = set()
for result in results:
for match in find_dependency_headers(result.message):

View File

@ -91,6 +91,8 @@ class DependentPipelineManager(SharedQueuePipelineManager):
needed_by_changes = self.resolveChangeReferences(
change.needed_by_changes)
log.debug(" Previously known following changes: %s",
needed_by_changes)
seen = set(needed_by_changes)
for source in sources:
log.debug(" Checking source: %s", source)
@ -101,7 +103,7 @@ class DependentPipelineManager(SharedQueuePipelineManager):
seen.add(c)
needed_by_changes.append(c)
log.debug(" Following changes: %s", needed_by_changes)
log.debug(" Updated following changes: %s", needed_by_changes)
to_enqueue = []
change_dependencies = dependency_graph.get(change, [])