project in broken state after repository cleanup
Summary
We added several large data files to the repo and we are trying to clean it up.
This is the main repo we are looking to clean up: https://gitlab.com/cxc/software/csc/level3/qa/manual-qa/
but I created a copy by exporting and importing the project back in as olaurino/manual-qa-export
I followed the instructions here: https://docs.gitlab.com/ee/user/project/repository/reducing_the_repo_size_using_git.html
Everything works well before the Repository cleanup, but the references in the MRs don't get updated, so the repo size doesn't shrink. If we clone the repo, the size of the clone is actually small, but there is a disconnect in Gitlab as the old MRs point to the old commits. When I upload a commit-map using Project Cleanup the size shrinks, but the old MR pages are completely broken. They report 0 changes and 0 commits and they never finish loading, with an error message alert showing "something went wrong on our part". I checked the commit-map and it seems to make sense, with old commits being the ones in the old history, and the new ones being the ones in the new history. In previous attempts I made, doing multiple passes of git-filter-repo, the commit-map didn't really match the contents of the old repo, so that couldn't possibly work. But now it should.
I can't really tell if this is a bug or if I am doing something wrong.
Steps to reproduce
- Export the repo
- Import the repo as a new project
- untar the repo export tarball and run
git-filter-repoas described in https://docs.gitlab.com/ee/user/project/repository/reducing_the_repo_size_using_git.html - push the references as described in the document linked above
- the size of the repository is still around 300MB. The MRs are correctly displayed, but they are pointing to the commits in the old history.
- wait 30 minutes.
- Start Repository Cleanup with the commit-map generated by
git-filter-repo. - wait for an email saying the cleanup was finished. The email reports the repo is now at around 7MB. yay.
- Check the MRs, and notice they are broken
Example Project
https://gitlab.com/olaurino/manual-qa-export/
What is the current bug behavior?
The MR pages show 0 commits and 0 changes. They never finish loading and they report Something went wrong on our end. Please try again!
What is the expected correct behavior?
The MR pages are correctly displayed and they point to the new commits as per commit-map
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com