Commit Graph
197 Commits
Author SHA1 Message Date
lukaszraczylo d6edd40d79 feat(cache): evict items idle past cache.idle_ttl
Every cached item got a 7-day expiry at store time. A popular tarball
left the cache seven days after it was cached, however often clients
requested it.

Artifacts now get no age-based expiry. Cleanup removes any item whose
last_accessed is older than cache.idle_ttl (default 168h, 0 disables).
It reads the items in bounded batches of 500 through the indexed
last_accessed column and deletes them through deletePackage. Metadata
entries keep the freshness expiry from default_ttl.

Startup and each cleanup run clear the expiry that earlier versions set
on artifact rows. Cleanup records the idle and ttl eviction reasons and
logs the count and bytes freed. The stats API reports idle_ttl in
seconds. Package deletes are soft deletes and no history table has a
foreign key to packages, so download history stays intact.
2026-11-23 12:49:47 +00:00
github-actions[bot]andGitHub f65c0cc1f3 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-23 03:17:22 +00:00
github-actions[bot]andGitHub 00a2d2f6ed chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-22 03:15:48 +00:00
github-actions[bot]andGitHub 379fd53c73 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-21 03:14:29 +00:00
github-actions[bot]andGitHub de75f67720 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-20 03:15:12 +00:00
github-actions[bot]andGitHub 6a37d56e33 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-19 03:16:42 +00:00
github-actions[bot]andGitHub 951f501ff6 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-16 03:14:45 +00:00
github-actions[bot]andGitHub c57c4ccfb0 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-15 03:13:55 +00:00
github-actions[bot]andGitHub 138edbede7 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-14 03:49:04 +00:00
github-actions[bot]andGitHub 3ae90aa0ee chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-13 03:14:52 +00:00
github-actions[bot]andGitHub d71371674d chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-12 03:17:59 +00:00
github-actions[bot]andGitHub a174afee73 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-10 03:14:46 +00:00
github-actions[bot]andGitHub 046e074be5 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-09 03:25:01 +00:00
github-actions[bot]andGitHub c38916aebb chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-08 03:17:55 +00:00
github-actions[bot]andGitHub 015f48b468 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-07 03:19:25 +00:00
github-actions[bot]andGitHub ad5b03ba60 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-06 03:18:12 +00:00
github-actions[bot]andGitHub eec24a5894 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-03 03:17:52 +00:00
github-actions[bot]andGitHub 9be1d85bf9 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-02 03:18:39 +00:00
github-actions[bot]andGitHub 5107fd728f chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-01 03:24:49 +00:00
github-actions[bot]andGitHub 4c94e2bf15 chore(deps): update module github.com/prometheus/common to v0.73.0
Automated dependency update. All tests passed.
2026-10-31 03:22:31 +00:00
github-actions[bot]andGitHub 00582d3203 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-30 03:21:11 +00:00
github-actions[bot]andGitHub dd66f8e84a chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-29 03:21:08 +00:00
github-actions[bot]andGitHub b283c43a12 chore(deps): update module github.com/molecule-man/go-brrr to v1.3.1
Automated dependency update. All tests passed.
2026-10-27 03:25:15 +00:00
github-actions[bot]andGitHub bb919aea90 chore(deps): update module github.com/prometheus/procfs to v0.23.0
Automated dependency update. All tests passed.
2026-10-26 03:36:29 +00:00
github-actions[bot]andGitHub 61cc52380f chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-25 03:36:45 +00:00
github-actions[bot]andGitHub 61d633dfeb chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-24 03:29:51 +00:00
github-actions[bot]andGitHub 9913fdabfe chore(deps): update module github.com/gofiber/schema to v1.9.0
Automated dependency update. All tests passed.
2026-10-23 03:26:57 +00:00
github-actions[bot]andGitHub b576bb19b1 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-21 03:35:55 +00:00
github-actions[bot]andGitHub 0c6a143c2a chore(deps): update module github.com/philhofer/fwd to v1.2.1
Automated dependency update. All tests passed.
2026-10-19 03:28:07 +00:00
github-actions[bot]andGitHub 1c70a4f643 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-17 03:31:13 +00:00
github-actions[bot]andGitHub afb61661ab chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-16 03:28:43 +00:00
github-actions[bot]andGitHub e5026bc422 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-15 03:29:33 +00:00
github-actions[bot]andGitHub 93d78c141d chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-14 03:22:51 +00:00
github-actions[bot]andGitHub 1a7f45c6f5 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-12 03:49:41 +00:00
github-actions[bot]andGitHub 616abc8701 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-11 03:34:12 +00:00
github-actions[bot]andGitHub 1bb258ef59 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-10 03:39:05 +00:00
github-actions[bot]andGitHub 9c2da8fe7a chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-09 03:26:31 +00:00
github-actions[bot]andGitHub e1715cdc7a chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-08 03:40:38 +00:00
github-actions[bot]andGitHub 2e7a3263a5 chore(deps): update module github.com/molecule-man/go-brrr to v1.2.0
Automated dependency update. All tests passed.
2026-10-06 03:25:33 +00:00
github-actions[bot]andGitHub 34340895a3 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-05 03:43:27 +00:00
github-actions[bot]andGitHub 37874387e7 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-04 10:34:08 +00:00
github-actions[bot]andGitHub 7e8ba3d4e2 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-04 04:36:22 +00:00
lukaszraczylo f72b481720 chore(deps): migrate fiber from v2 to v3
The automated update changed only go.mod, so the build failed on the old v2 imports. This commit moves the code to the v3 API.

The commit replaces BodyParser with Bind().Body, Static with the static middleware, and ListenTLS with ListenConfig. It also updates the tests for TestConfig.

Fixes #179
2026-10-04 00:50:37 +01:00
github-actions[bot]andGitHub 3c33bcdd61 chore(deps): update module github.com/cenkalti/backoff/v4 to v7
Automated dependency update. All tests passed.
2026-10-03 17:13:15 +00:00
github-actions[bot]andGitHub 328f764024 chore(deps): update module github.com/gofiber/fiber/v2 to v3
Automated dependency update. All tests passed.
2026-10-03 16:44:01 +00:00
github-actions[bot]andGitHub 8f5ed9c972 chore(deps): update module github.com/cenkalti/backoff/v4 to v7
Automated dependency update. All tests passed.
2026-10-03 16:39:46 +00:00
github-actions[bot]andGitHub 21d004eae9 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-03 16:35:25 +00:00
github-actions[bot]andGitHub 436633bc68 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-03 16:12:39 +00:00
lukaszraczyloandGitHub 8fae680cbe Update go.mod and go.sum (#151) 2026-10-03 04:29:22 +01:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
d57a21817b chore(deps): bump go.opentelemetry.io/otel/sdk (#149)
Bumps the go_modules group with 1 update in the / directory: [go.opentelemetry.io/otel/sdk](https://github.com/open-telemetry/opentelemetry-go).


Updates `go.opentelemetry.io/otel/sdk` from 1.44.0 to 1.45.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.44.0...v1.45.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/sdk
  dependency-version: 1.45.0
  dependency-type: indirect
  dependency-group: go_modules
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-02 13:56:19 +01:00