MockModuleBuilder's _createrepo filters out packages from repo based on mmd.filters. This is currently applied everytime we run this method, but instead it should be applied only to last createrepo call in the given module build to remove the filtered packages in the resulting repo.
Otherwise this code can remove dependencies of next batch before it is built.
:+1: to fix.
@jkaluza Are you currently working on this? I'm interesting in it for the pythonX-ecosystem module builds, so I started looking at what would be involved in fixing it.
MockModuleBuilder.buildroot_add_artifacts
apply_output_filters=True
scheduler.handlers.components._finalize
buildroot_add_artifacts
As far as I can tell, ModuleBuild doesn't currently include anything along the lines of "expected batch count", so in order to implement this, that would need to be added, and then the build finalizer could set apply_output_filters = (component_build.batch == parent.last_expected_batch )
apply_output_filters = (component_build.batch == parent.last_expected_batch )
Does that seem like a reasonable way to tackle it?
FYI: https://pagure.io/fm-orchestrator/pull-request/757
Metadata Update from @mprahl: - Issue assigned to mcurlej - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.