Inspecting module build failures in Fedora
Have you submitted a build which failed? This page will point you to the right places to get all the information about build failures.
Reminder: Building modules
With Modularity, you no longer build individual packages. Instead, you need to submit a module build.
Module builds are triggered using fedpkg
from whithin your dist-git repository.
$ fedpkg clone modules/NAME $ cd NAME $ fedpkg switch-branch BRANCH $ fedpkg module-build
-
NAME
— name of the module -
BRANCH
— name of the stream branch of the module
Please note the module build ID. You will need it to verify the build state. It also helps you in the next step. |
To watch the state of your module build, run:
$ fedpkg module-build-watch BUILD_ID
When the module is in a "ready" state, the build has successfully completed.
However, in this scenario, we expect your build failed.
Inspecting build failures
Run the following command using the BUILD_ID from the previous step:
$ fedpkg module-build-info BUILD_ID
which shows you "State Reason" — a short summary of the build failure regarding the whole module, as well as a list of individual packages in the module. Find the ones that failed and go to the "Koji Task" URL. There, click on the "Build" link which gets you to the module build page. On this page, inspect the root.log
, build.log
, and other files to get the build error.