Split repoclosure into separate phase

Move repoclosure out from test phase into its own phase and
run parallel with image building phases(osbs, imagebuild, ...)
to speed things up.

JIRA: RHELCMP-8
Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
Haibo Lin 2020-04-13 14:50:00 +08:00
parent e187b5ea79
commit 477b43d4e9
9 changed files with 473 additions and 380 deletions

View file

@ -349,6 +349,7 @@ def run_compose(
image_build_phase = pungi.phases.ImageBuildPhase(compose)
osbs_phase = pungi.phases.OSBSPhase(compose)
image_checksum_phase = pungi.phases.ImageChecksumPhase(compose)
repoclosure_phase = pungi.phases.RepoclosurePhase(compose)
test_phase = pungi.phases.TestPhase(compose)
# check if all config options are set
@ -467,6 +468,7 @@ def run_compose(
image_build_phase,
livemedia_phase,
osbs_phase,
repoclosure_phase,
)
compose_images_phase = pungi.phases.WeaverPhase(compose, compose_images_schema)
compose_images_phase.start()