Skip to content

Package Retention don't delete all version #31961

Open
@wassy92x

Description

@wassy92x

Description

I have a package (container-images) with 1805 versions uploaded to gitea.
I discovered, that not all versions are deleted.
So I tested the cleanup-regexes against the not deleted versions - short answer the regex is correct.

I turned on Debug-Logging and there is no matching log-entry logged, that those versions will be kept.

In the source code I discovered that in the cleanup job only the first 200 versions of each package are loaded.
So the regex is only applied to to those first 200 versions.

Gitea Version

1.22.1

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Ubuntu-Server 22.04.4 LTS

How are you running Gitea?

Gitea is running from docker. The image is gitea/gitea:1.22.1-rootless.

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions