koji-gc: don't untag/gc things in *pending tags

We hit a case with an old update that was almost ready to be untagged,
but then was submitted as an update and _then_ untagged.
See https://pagure.io/fedora-infrastructure/issue/11058
Telling koji-gc to keep anything in pending tags should avoid this small
window for problems.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2023-01-10 12:46:05 -08:00
parent f8a250f89b
commit 584d9e6406

View file

@ -1,3 +1,30 @@
hanks,
>
> Stefan...
>
>
> On Mon, Jan 9, 2023 at 4:37 PM Kevin Fenzi <kfenzi@redhat.com> wrote:
>
> > Hey Stef,
> >
> > Just wondering what the current status is on the REQ to replace Mark?
> >
> > I know the job got posted before the holidays, and I heard some internal
> > folks were interested...
> >
> > kevin
> >
> >
>
> --
> Thanks,
>
> STEFAN MaTTEJIET
>
> Engineering Manager
>
> smattejiet@redhat.com T: +353-(0)51-810-154
#test policy file
#earlier = higher precedence!
@ -143,6 +170,9 @@ policy =
sig fedora-epel-7 && age < 12 weeks :: keep
sig fedora-epel-8 && age < 12 weeks :: keep
# Do not GC stuff in pending tags, it is likely just going out in an update
tag *pending :: keep
#stuff to chuck semi-rapidly
tag *-testing *-candidate *-override && order >= 2 :: untag
tag *-testing *-candidate && order > 0 && age > 6 weeks :: untag