Closed ChristianStadelmann closed 1 month ago
Hi @ChristianStadelmann thank you for bringing this issue up. We're working on more prioritized issues at the moment but will get back to this one as soon as we can.
This issue has had no activity in 180 days. Please comment if it is not actually stale
What happened?
Steps to reproduce:
What happens:
With steps 3 and 4, the .git folder grows in size. It will accumulate lots of
.pack
files in.git/modules/[submodule name]/objects/pack/
.In my case, even though the maintenance job was configured to run once a week, some submodules had old
.pack
files lying around which were some months old. Over time with many changes on the repo and large submodules, the pipeline will consume a lot of disk space. (In my case, one of the submodules has a.pack
file of a few GB, easily accumulating to tens of GB within a few days.)According to the maintenance logs (see attached logs), the maintenance job only runs
What should happen:
The maintenance job should recursively run on submodules too, otherwise they will never be cleaned (up as long as the pipeline is executed often enough not to be deleted by maintenance job criteria).
In technical terms, the maintenance job should run git commands prefixed with
git submodule foreach --recursive
for bothgit repack
andgit prune
.Versions
Agent version: 3.232.3 OS version: Windows 10 22H2 (10.0.19045)
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
Azure DevOps Server (Please specify exact version in the textbox below)
Azure DevOps Server Version (if applicable)
No response
Operation system
No response
Version control system
Git
Relevant log output