It is possible that @psabata will submit a build of base-runtime which will take some time to build.
While that is building, @ralph could submit another new build of base-runtime.
My module build could look for the last module build (petr's) and try to re-use its components.. except - it isn't finished! (or maybe it failed).
We should use only the last successful module build for component-re-use. If there is none, then fail.
@ralph the code to find the previous module build is:
previous_module_build = session.query(models.ModuleBuild)\ .filter_by(name=mmd.name)\ .filter(models.ModuleBuild.state.in_([3, 5]))\ .order_by(models.ModuleBuild.time_completed.desc())\ .first()
Unless I made a mistake in my query, it should find the latest module build in states 3 (done) or 5 (ready).
Edit: I will try to reproduce this on my end, but more information would be appreciated.
That looks good @mprahl. I filed this suspecting that it was a problem. Looks like I was wrong.
Metadata Update from @ralph: - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.