GitLab web interface files & storage sizes not updated after repo size reduced
Summary
After successfully reducing the size of the repository by following this procedure for BFG to rewrite the history to make the repository smaller https://docs.gitlab.com/ee/user/project/repository/reducing_the_repo_size_using_git.html, a repository's main project web page continues to display the previous (larger) size near the top, when it should display the new, smaller size instead.
For example: 8.3 GB Files 8.3 GB Storage
While cloning a fresh copy of the repo and running the following command proves the smaller size:
$ du -hs .git/objects
645M objects
Steps to reproduce
- Use steps defined in
- Clone the repo
- $ git clone --mirror git@gitlab.com:myrepo.git myrepo-reduced
- Record original size of repo
- $ cd myrepo-reduced
- $ du -hs objects
- Run BFG Repo-Cleaner (BFG)
- $ cd
- $ java -jar /c/bin/bfg-repo-cleaner/bfg-1.13.0.jar --delete-files mylargefile1 myrepo-reduced
- $ java -jar /c/bin/bfg-repo-cleaner/bfg-1.13.0.jar --delete-files mylargefile2 myrepo-reduced
- $ java -jar /c/bin/bfg-repo-cleaner/bfg-1.13.0.jar --delete-files mylargefileN myrepo-reduced
- Physically delete the files from repo
- $ cd myrepo-reduced
- $ git reflog expire --expire=now --all && git gc --prune=now --aggressive
- Verify final repo size is reduced
- $ cd myrepo-reduced
- $ du -hs objects
- Update the master repo
- $ git push
- Clone fresh copy of repo and verify the size has been reduced
- $ cd
- $ du -hs .git/objects/
- Refresh GitLab project page, but it does not display the new, smaller Files and Storage numbers. In fact, I think it even displays an even higher size than when this procedure was started.
Example Projects
https://gitlab.com/device-upgrades/nexeo
https://gitlab.com/device-upgrades/zoom-nitro-2
What is the current bug behavior?
After reducing the size of the repo using BFG and additional Git commands, the GitLab project page does not display the new, smaller Files and Storage size numbers (and may actually be higher than before).
What is the expected correct behavior?
The GitLab project page displays the new, reduced Files and Storage size numbers.