Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Normalization takes a very long time #3397

Closed
NorbertNemec opened this issue Feb 24, 2023 · 5 comments
Closed

[Bug] Normalization takes a very long time #3397

NorbertNemec opened this issue Feb 24, 2023 · 5 comments
Labels
Milestone

Comments

@NorbertNemec
Copy link

NorbertNemec commented Feb 24, 2023

This is reopening #1266 because the time for normalization really is a serious issue in our case, using GitVersion 5.12.0 on Azure Pipelines.

I'm attempting to introduce GitVersion to an existing large project with ~100 developers and ~1000 personal branches. I'm in no position to sort that out, but due to that, running gitversion/execute@0 in our Azure Pipeline takes ~1.5 min spewing out log messages ("Creating local branch from remote tracking...") for each of those personal branches.

Adding >1min to each of our pipeline builds just for introducing GitVersion will be seriously hard sell. Is there any means to avoid that normalization or filter the branches that need to be added locally for the version calculation?

@asbjornu
Copy link
Member

Have you ensured that AzDO does a full clone of the repository and not just a shallow one?

@NorbertNemec
Copy link
Author

Yes, ADO is doing a full clone, including all branches. I just edited my description to remove my hypothesis about an incomplete initial clone, which was clearly wrong and misleading.

I have no idea what kind of "normalization" GitVersion needs to do after that clone and why "creating local branches" takes ~50ms per branch.

@HHobeck HHobeck added this to the 6.x milestone Mar 2, 2023
@asbjornu
Copy link
Member

asbjornu commented Mar 4, 2023

Are you able to run GitVersion with the /nonormalize argument?

@NorbertNemec
Copy link
Author

Hmm - interesting that I missed that option. It might have fixed the issue. Anyway - by now I have built a simple alternative solution that does not depend on GitVersion. Pity...

@arturcic arturcic modified the milestones: 6.x, 6.0.0-beta.2 Apr 6, 2023
@arturcic
Copy link
Member

arturcic commented Apr 6, 2023

🎉 This issue has been resolved in version 6.0.0-beta.2 🎉
The release is available on:

Your GitReleaseManager bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants