#3387 maintenance tasks
Closed by tkopecek. Opened by tkopecek.
tkopecek/koji maint-builder  into  master

Download 3387.patch

PoC for maintenance tasks. Privileged builder with e.g. RW access for
/mnt/koji could do GC, run simplified kojira tasks, etc. Cron scripts
just trigger new task and it will be processed by standard koji
mechanisms than running separate tool on some other machine. In future
delayed tasks can be used, so cron/external machinery could be
completely dropped out.

We need special builder setting to be able to take up such jobs -
allow_maintenance_tasks here. Maybe we will need additional
permissions for maintenance builders. These could be set up with regular
permissions mechanism for builder user.

Sample maintenance tasks included - rewrite of koji-prune-scratch from
koji-tools.

@mikem

rebased onto 08a059b3afec9e00afc73ff1e0419e6131cbf314

rebased onto c994c46dda8324e654ae20fee66efc3fbac9d669

rebased onto 67a9ca3844a1d1a5c5f3da0ed58b10d1ef76d47b

pretty please pagure-ci rebuild

I'm really hesitant to move towards setting up a privileged builder this way.

I see the point in recycling the task framework and the kojid code, but I'd like to have much stronger separation between these sorts of tasks and the normal ones.

It might be best to see how the task scheduler shakes out before we go down this sort of road.

Pull-Request has been closed by tkopecek

Metadata