PBR

Package installation is slow when a large git submodule is inside the installation tree

Bug #1778752 reported by David Moreau Simard
8
This bug affects 1 person
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-role-openstack-ansible-*, etc.).

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://github.com/dmsimard/pbr-perf

- 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.

[1]: https://github.com/openshift/openshift-ansible

Revision history for this message
David Moreau Simard (dmsimard) wrote :

FWIW, here's a recording of the issue manifesting itself in practice: https://asciinema.org/a/xKkrkrGoGiHVZqEZW6nTVnCXC

Revision history for this message
Ben Nemec (bnemec) wrote :

I'm marking this wishlist because it sounds more like an optimization request than an actual bug, and there may be nothing pbr can do about it if the time is being spent in git or something else.

Changed in pbr:
status: New → Confirmed
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.