packit-service icon indicating copy to clipboard operation
packit-service copied to clipboard

Failed to trigger Koji build with no relevant error message

Open lbarcziova opened this issue 1 year ago • 1 comments

When a Koji build fails to be triggered, user is not really informed about the cause of the failure:

lbarcziova avatar May 15 '24 06:05 lbarcziova

For the context, I had triggered the Packit exception with this PR https://github.com/packit/ogr/pull/852 I have created the PR to play with the command line and build in-koji a scratch build (this was successful). I was testing scratch builds as a way to "trigger" Koschei and I have broken the ogr code on purpose to get a reverse dependency build failure on Koschei.

majamassarini avatar May 15 '24 13:05 majamassarini

The same happens also for Bodhi updates, e.g. https://dashboard.packit.dev/jobs/bodhi/1692. We should have the needed error in the DB in model.data["error"] for both of the jobs.

TODO:

  • [x] expose the error via API
  • [x] show it on dashboard
  • [x] include it also in the created issue

lbarcziova avatar Oct 01 '24 06:10 lbarcziova

I didn't mean to close this yet, the service part is done, and I will create followup PR for dashboard.

lbarcziova avatar Nov 27 '24 10:11 lbarcziova