Improve debug logging around dynamic layout loading

This will give us a better idea of how much time we're spending.

Change-Id: Idbd4a8b61664d3d3af0534fb0d3f24e21808ad5a
This commit is contained in:
James E. Blair 2017-09-28 09:57:20 -07:00
parent 61e4c88f0c
commit 499c3046f8
1 changed files with 3 additions and 1 deletions

View File

@ -435,12 +435,12 @@ class PipelineManager(object):
loader = zuul.configloader.ConfigLoader()
build_set = item.current_build_set
self.log.debug("Loading dynamic layout")
try:
# First parse the config as it will land with the
# full set of config and project repos. This lets us
# catch syntax errors in config repos even though we won't
# actually run with that config.
self.log.debug("Loading dynamic layout (phase 1)")
loader.createDynamicLayout(
item.pipeline.layout.tenant,
build_set.files,
@ -450,10 +450,12 @@ class PipelineManager(object):
# Then create the config a second time but without changes
# to config repos so that we actually use this config.
self.log.debug("Loading dynamic layout (phase 2)")
layout = loader.createDynamicLayout(
item.pipeline.layout.tenant,
build_set.files,
include_config_projects=False)
self.log.debug("Loading dynamic layout complete")
except zuul.configloader.ConfigurationSyntaxError as e:
self.log.info("Configuration syntax error "
"in dynamic layout")