Add more job selection debug lines

Even if a global variant matches, a project pipeline variant must
still match.  This is important information to know when debugging.

Change-Id: Iaaff183c62457f9d264111002371f5f44ced867b
This commit is contained in:
James E. Blair 2017-12-11 10:38:20 -08:00
parent d07999954c
commit 4e4a5e671e
1 changed files with 7 additions and 0 deletions

View File

@ -2586,6 +2586,8 @@ class Layout(object):
try:
variants = self.collectJobs(jobname, change)
except NoMatchingParentError:
self.log.debug("No matching parents for job %s and change %s",
jobname, change)
variants = None
if not variants:
# A change must match at least one defined job variant
@ -2607,6 +2609,11 @@ class Layout(object):
if variant.changeMatches(change):
frozen_job.applyVariant(variant)
matched = True
self.log.debug("Pipeline variant %s matched %s",
repr(variant), change)
else:
self.log.debug("Pipeline variant %s did not match %s",
repr(variant), change)
if not matched:
# A change must match at least one project pipeline
# job variant.