aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2020-04-22 14:39:12 +0200
committerMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2020-04-22 14:39:12 +0200
commit0de8a57f9e5659f13db97bfe27ea5b0c7d452454 (patch)
tree1fbc8f054d895d5e3a724b326e4c7cbec248a0ff
parentd318e5c1a193914ee90eab1c9a762d61d1b07acb (diff)
downloadkolla-0de8a57f9e5659f13db97bfe27ea5b0c7d452454.tar.gz
kolla-0de8a57f9e5659f13db97bfe27ea5b0c7d452454.zip
Do not try to build skipped/unbuildable images
When build is done with logging to separate files we have a lot of files with logs like this: INFO:kolla.common.utils.mongodb:Skipping mongodb This patch stops that. Builds will be a bit faster as we do not push skipped or unbuildable images into build queue anymore. Change-Id: Id8198451e77669d1472f3a21fd3a97f0e6e67cd8
-rwxr-xr-xkolla/image/build.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/kolla/image/build.py b/kolla/image/build.py
index 915fa30cb..10225400e 100755
--- a/kolla/image/build.py
+++ b/kolla/image/build.py
@@ -420,7 +420,8 @@ class BuildTask(DockerTask):
])
if self.image.children and self.success:
for image in self.image.children:
- if image.status == STATUS_UNMATCHED:
+ if image.status in (STATUS_UNMATCHED, STATUS_SKIPPED,
+ STATUS_UNBUILDABLE):
continue
followups.append(BuildTask(self.conf, image, self.push_queue))
return followups