As the building with mock takes more than 1 hours, I want a resume feature for mbs-build command. Because i may want to shutdown and take my laptop during the building. This can be happened.
For example, to build with resume from a build order.
$ mbs-build --resume buildorder
Or save sesson data file to current directory when typing Ctrl+C to running mbs-build. If the file exists, continue from previous status.
Hi. This refers to the now deprecated mbs-build tool. Assuming that you are talking about builds in MBS itself (and not local builds), then this isn't so much a matter of resuming (since the original build will still be running in MBS), but of continuing to monitor the submitted build.
mbs-build
The current analogs of mbs-build are the various module subcommands of the fedpkg/rhpkg tools. If you had submitted a build in mbs with one of these tools, then could use the module-build-watch subcommand after reboot or other interruption to continue monitoring progress. For example:
module-build-watch
[mikem@localhost testmodule]$ fedpkg module-build -w Submitting the module build... [Build #15610] testmodule-rawhide-3520220707170039-ab7e7bfe is in "wait" state. Koji tag: module-testmodule-rawhide-3520220707170039-ab7e7bfe Link: https://mbs.fedoraproject.org/module-build-service/2/module-builds/15610 Components: 4 ^CAnd now your watch is ended. Use module-build-watch command to watch again. ... [mikem@localhost testmodule]$ fedpkg module-build-watch 15610 [Build #15610] testmodule-rawhide-3520220707170039-ab7e7bfe is in "wait" state. Koji tag: module-testmodule-rawhide-3520220707170039-ab7e7bfe Link: https://mbs.fedoraproject.org/module-build-service/2/module-builds/15610 Components: 4
Here I've simply killed the process, but the same approach would work in a reboot. If you don't know your build id, then you could discover it with the module-overview subcommand. E.g.
module-overview
[mikem@localhost testmodule]$ fedpkg module-overview --mine --unfinished ID: 15610 Name: testmodule Stream: rawhide Version: 3520220707170039 Scratch: False Koji Tag: module-testmodule-rawhide-3520220707170039-ab7e7bfe Owner: mikem State: wait
Metadata Update from @mikem: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.