jojo/services/packages
Gusted bf958fa355 fix: make package cleanup work again (#12446)
- Regression of forgejo/forgejo!11776 (and forgejo/forgejo!11881)
- Scope of the transaction is moved to a per-package cleanup rule basis.
This is also a enhancement for scaling (already deployed on Codeberg for a while).
- Package cleanup is now run with `RetryTx`, because rebuilding
  repository files runs `RetryTx` and it could indicate to retry the whole
  transaction.
- Previously it would error and say running `RetryTx` in a
  transaction was not possible, this is now possible. Nested `RetryTx` is
  always allowed, matching of which errors to retry is still the responsible
  of the inner `RetryTx`.

Co-authored-by: Mathieu Fenniak <mathieu@fenniak.net>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/12446
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
2026-05-07 18:10:02 +02:00
..
alpine chore(cleanup): replaces unnecessary calls to formatting functions by non-formatting equivalents (#7994) 2025-05-29 17:34:29 +02:00
alt chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
arch chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
cargo chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
cleanup fix: make package cleanup work again (#12446) 2026-05-07 18:10:02 +02:00
container Move Container API processing logic to service (#11432) 2026-03-06 18:56:49 +01:00
debian test: fix intermittent test failure in TestPackageDebianConcurrent (#11997) 2026-04-05 18:38:33 +02:00
rpm feat: replace go-rpmutils library with our own (#7953) 2025-05-25 12:30:04 +02:00
auth.go feat: allow Authorized Integrations to authenticate to Forgejo's package registries (#12310) 2026-04-29 19:13:01 +02:00
package_update.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
packages.go test: fix intermittent test failure in TestPackageDebianConcurrent (#11997) 2026-04-05 18:38:33 +02:00