Display Uncompressed Repository Size in Admin UI

Description

The repository size that is displayed in the GitLab UI is calculated from the compressed bundled size of the whole repository on disk. The note from client below summarizes the problem.

Basically this issue arose where it appears that users may be running up against our maximum repository size limit, but I'm unable to view this repository size correctly when viewing all projects from the Admin UI and sorting by repository size. The sizes shown are incorrect so it makes it difficult to understand which projects are making use of more space than others.

Since this view currently shows the same "size" as the project's compressed size, this makes it difficult to understand what groups / projects may not be correctly utilizing GitLab correctly, such as embedding 3rd party libraries into their own repository when they could likely just leverage the CI to install and cache these.

Proposal

Display the uncompressed size of the whole repository including attachments in the Admin UI.

Links / references

  1. https://gitlab.zendesk.com/agent/tickets/80797
  2. https://gitlab.com/gitlab-org/gitlab-ee/blob/v9.4.2-ee/lib/gitlab/git/repository.rb#L296

Use cases

To assist admins in running checks on which projects are utilizing more disk space.

Edited Jun 18, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading