diff options
author | James E. Blair <jeblair@redhat.com> | 2017-12-11 10:38:20 -0800 |
---|---|---|
committer | James E. Blair <jeblair@redhat.com> | 2017-12-11 10:38:35 -0800 |
commit | 4e4a5e671ec15c3e0a7b89ff9092354a68032cc6 (patch) | |
tree | d873ef697432c21ba619c0e316e624c35880ddf1 | |
parent | d07999954c14bdc9384b9500ad9599cf2f60cc30 (diff) | |
download | zuul-4e4a5e671ec15c3e0a7b89ff9092354a68032cc6.tar.gz |
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
-rw-r--r-- | zuul/model.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/zuul/model.py b/zuul/model.py index 3a948e416..e53a357d2 100644 --- a/zuul/model.py +++ b/zuul/model.py @@ -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. |