Watch
1
0
Fork
You've already forked pkg-proxy
1
mirror of https://github.com/git-pkgs/proxy.git synced 2026-11-12 17:19:17 -05:00
Commit graph pkg-proxy/internal/server/templates/pages/git_repositories.html
Author SHA1 Message Date
Simon Chrzanowski
3ed8bc2cf1 Delete a cached Git repository from the UI and API
With cache_delete set, DELETE /api/git/{upstream}/{repo} removes one
repository from the git cache and /ui/git gets a Delete button per
repository. The repository is moved aside under the cache's lock, as
eviction does, so the next clone fetches it again. One that a clone, a
fetch or a client is using answers 409. The response names the
repository and the bytes freed.
2026-11-11 16:31:26 +01:00
Simon Chrzanowski
c878b0c090 Bound what a view of the git page spends on reading repositories
A view ran four git processes for each repository whose state wasn't
cached, with no limit, and each concurrent view did the same.

RepositoryState now runs one read at a time and gives up with its
context. The page reads for at most two seconds, lists the rest without
branches and commits, and says how many are left; the cache keeps what
was read, so each reload reads more.

Also test that an upstream, a repos pattern and a repository with
uppercase letters are listed as spelled, and correct two comments.
2026-11-10 07:00:03 +01:00
Simon Chrzanowski
2b525dc442 Count the git page's summary from its rows, and keep failed state reads
The summary said "1 repositories" and counted the size of repositories it
didn't list. A repository whose state can't be read is no longer read on
every page view, only after its next upstream check.
2026-11-07 17:57:07 +01:00
Simon Chrzanowski
f867f3d5a1 List cached Git repositories in the UI and the ecosystem gauges
/ui/git lists the git cache's repositories with their upstream, clone URL,
size, last check and use, requests served and the last refresh error. The
per-ecosystem cache size and artifact gauges report the git cache as
ecosystem="git".
2026-11-07 17:43:20 +01:00