openSUSE / open-build-service

Build and distribute Linux packages from sources in an automatic, consistent and reproducible way #obs
https://openbuildservice.org
GNU General Public License v2.0
921 stars 437 forks source link

Error reporting for build constraints that are constantly not matched #1012

Open michelmno opened 9 years ago

michelmno commented 9 years ago

allow user to read builder config and specifically constraints I understand that today only admins are able to access builder configurations.

my use case as initially documented in (1) is to allow user to understand why scheduled tasks are not dispatched to builders that seems idles in builder status (2)

(1) http://lists.opensuse.org/opensuse-buildservice/2015-08/msg00004.html (2) https://build.opensuse.org/monitor


Michel Normand

hennevogel commented 9 years ago

So the situation is that there are build constraints that constantly can't be satisfied with the available workers. In this situation there is no error reporting only constant rescheduling

k0da commented 9 years ago

and worker capabilities are not exposed to public

hennevogel commented 9 years ago

Why would they need to be?

k0da commented 9 years ago

I could imagine the following usecase: buildjob is failing. No space left on device, I wonder why, then go and look what was the build host configuration.

hennevogel commented 9 years ago

Why? You won't have any influence on which host get's picked the next time anyway. Maybe we could expose this to the admins, but not to users.

k0da commented 9 years ago

You can adapt _constraints to get your job scheduled to the right worker, without guessing a result

hennevogel commented 9 years ago

_constraints are not meant to get your job scheduled like you want to :neckbeard:

adrianschroeter commented 9 years ago

yes, we need a dispatch state/error reporting. We discussed it several times meanwhile, but have no concrete plan for that. Will take care ...

We can also think about how to make work capabilities available, but that is another feature.