Cancel builds when disabling a chroot as EOL
Opened this issue · 5 comments
FrostyX commented
We have some builds running for months, e.g.
https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/build/5942294/
That's because we disabled F36 as EOL and the build couldn't finish fedora-36-s390x
before that.
We need to mark all fedora-36-*
build chroots (or maybe all not yet running) as canceled
as a part of the chroot EOL process.
FrostyX commented
It produced a bunch of tracebacks every few seconds in frontend.log
, so I ran:
coprdb=# UPDATE build_chroot SET status=2 WHERE mock_chroot_id in (149, 150, 151, 152, 153, 154) AND status=4;
UPDATE 3
praiskup commented
nikromen commented
re-raising something from frontend won't help here since the job is stuck in /backend/penging-jobs
so frontend will process it every N secs but it won't touch it in the end.
Could we maybe fail the chroot when getting the task
Failing already EOLed/disabled chroots sounds reasonable to me