Merge #422 Fix #421 - Build next component immediatelly after the previous component build is finished.

This commit is contained in:
Jan Kaluža
2017-03-14 12:03:32 +00:00
5 changed files with 83709 additions and 1 deletions

View File

@@ -106,7 +106,7 @@ def _finalize(config, session, msg, state):
builder.buildroot_add_artifacts(built_components_in_batch, install=install)
builder.tag_artifacts(built_components_in_batch)
session.commit()
elif (not any([c.state == koji.BUILD_STATES['BUILDING']
elif (any([c.state != koji.BUILD_STATES['BUILDING']
for c in unbuilt_components_in_batch])):
# We are not in the middle of the batch building and
# we have some unbuilt components in this batch. We might hit the

View File

@@ -121,6 +121,7 @@ def start_build_batch(config, module, session, builder, components=None):
# Local check for component relicts
if any([c.state == koji.BUILD_STATES['BUILDING']
and c.batch != module.batch
for c in module.component_builds]):
err_msg = "Cannot start a batch when another is in flight."
log.error(err_msg)