Skip to content

GitVersion is exteremely slow within TFS build agent context #1292

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

Closed
lucom opened this issue Sep 12, 2017 · 2 comments
Closed

GitVersion is exteremely slow within TFS build agent context #1292

lucom opened this issue Sep 12, 2017 · 2 comments
Labels

Comments

@lucom
Copy link

lucom commented Sep 12, 2017

When GitVersion is run as part of a build definition in TFS (as GitVersion TFS Task or inside a PowerShell script) it takes around 8 minutes to determine the version and to finish.

The command (typed in and also generated by GitVersion Task for TFS):
D:\agent\tasks\GitVersion\3.6.5\GitVersion.exe D:\agent\_work\13\s /output buildserver /nofetch /ensureassemblyinfo /updateassemblyinfo VersionInfo.cs

Running exactly the same command with the same parameters as a normal user on the same repository only takes around one second.

This was tested with the following:

  • GitVersion 3.6.5 and 3.6.4 (from GitVersion Task for TFS or installed via Chocolately)
  • GitVersion as TFS Task or as command within a PowerShell build task
  • On a freshly fetched repo and on an already checked out repo

ProcessMonitor shows that GitVersion behaves differently when run within a build agent. It checks way more files and directories and seems to iterate through the checked out files instead of only changing VersionInfo.cs which lies in the root of the repo.

@asbjornu
Copy link
Member

Sounds like a duplicate of #1065?

@stale
Copy link

stale bot commented Jun 29, 2019

This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 29, 2019
@stale stale bot closed this as completed Jul 29, 2019
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

2 participants