Currently the module submission takes more time than I think it is necessary.
The problem is caused by calling record_component_builds function and format_mmd in it while submitting a module. The formatting function is slow because of communicating with PDC and even
record_component_builds
format_mmd
DEBUG - Getting/verifying commit hash for git://pkgs.fedoraproject.org/rpms/ed DEBUG - Getting/verifying commit hash for git://pkgs.fedoraproject.org/rpms/mksh DEBUG - Getting/verifying commit hash for git://pkgs.fedoraproject.org/rpms/ed DEBUG - Getting/verifying commit hash for git://pkgs.fedoraproject.org/rpms/mksh
As we are trying to provide frontends for MBS in form of Copr web UI and copr-cli, it is painful to have such slow submission into MBS. For such testmodule it is only annoying, but as the module dependencies grows, the submission time grows even more. For e.g. base-runtime we are talking about minutes and our servers even timeouts it.
copr-cli
By this RFE, I am requesting some kind of asynchronous submission. Do we really have to do all of this things before module is submitted, or we can postpone some of it into later stages of building?
Thank you
Personally I think that it should be possible. I am not sure whether we are talking about deleting the call of record_component_builds from module submission and adding it just before Builder is called, or rewriting hundreds of lines of code. But it should be possible, right?
Builder
I am willing to implement this, but I would like to see some feedback first.
ping?
See #657.
See PR #740
Metadata Update from @mprahl: - Issue assigned to mprahl
Metadata Update from @mprahl: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
This issue has been migrated to Fedora Forge: https://forge.fedoraproject.org/koji/mbs/issues/543
Please continue any further discussion there.