Package installation is slow when a large git submodule is inside the installation tree
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PBR |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
pbr is currently used in the context of Ansible roles (ex: zuul-jobs, ansible-
For a specific project, I need to pin and check out a specific version of openshift-ansible [1].
I've found that as soon as I have openshift-ansible checked out, the installation of the project will take several minutes instead of completing under 1 minute as usual.
I have not gotten to the bottom of this yet but I've created a reproducer: https:/
- Running "tox -e debug" from the "master" branch yields an almost instantaneous install
- Running "tox -e debug" from the "slow" branch takes >2 minutes
Note that, at this time, I am not confident that the issue is with pbr itself.
For example, openshift-ansible has a LOT of symlinks, has > 10k git commits, etc.
I am, however, filing this bug anyway because we might be interested in seeing if there are improvement opportunities.
FWIW, here's a recording of the issue manifesting itself in practice: https:/ /asciinema. org/a/xKkrkrGoG iHVZqEZW6nTVnCX C