diff options
author | James E. Blair <jeblair@redhat.com> | 2017-12-11 08:15:43 -0800 |
---|---|---|
committer | James E. Blair <jeblair@redhat.com> | 2017-12-11 08:57:30 -0800 |
commit | d07999954c14bdc9384b9500ad9599cf2f60cc30 (patch) | |
tree | 56f6e75e0bb9989a79266d3ae9b2de0388e0dccb | |
parent | 2ec95bd8f6a6eba02430282c4f35347aec7639c4 (diff) | |
download | zuul-d07999954c14bdc9384b9500ad9599cf2f60cc30.tar.gz |
Debug job selection
Add some (well, a lot, more than likely) debug lines for each
job variant which is considered when freezing the job graph.
This will help admins determine why a job doesn't run.
Change-Id: Ia3b140db2a5d5117f96c2fec9ae1cc9ddd28b2d0
-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 56d08a16f..3a948e416 100644 --- a/zuul/model.py +++ b/zuul/model.py @@ -2443,6 +2443,8 @@ class UnparsedTenantConfig(object): class Layout(object): """Holds all of the Pipelines.""" + log = logging.getLogger("zuul.layout") + def __init__(self, tenant): self.uuid = uuid4().hex self.tenant = tenant @@ -2553,7 +2555,11 @@ class Layout(object): matched = False for variant in self.getJobs(jobname): if not variant.changeMatches(change): + self.log.debug("Variant %s did not match %s", repr(variant), + change) continue + else: + self.log.debug("Variant %s matched %s", repr(variant), change) if not variant.isBase(): parent = variant.parent if not jobs and parent is None: @@ -2576,6 +2582,7 @@ class Layout(object): for jobname in job_list.jobs: # This is the final job we are constructing frozen_job = None + self.log.debug("Collecting jobs %s for %s", jobname, change) try: variants = self.collectJobs(jobname, change) except NoMatchingParentError: |