-
Notifications
You must be signed in to change notification settings - Fork 651
Tests fail: Can't find git #440
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
Tests fail: Can't find git #440
Conversation
Add NoFetch option to GitVersionTask.targets
… null (or empty) arguments throw ArgumentNullException.
…st instead of relying on Process.Start() to do it, since it doesn't say anything about which file it can't find (which makes debugging very hard).
…h for Win32Exception with NativeErrorCode equal to 2 translated to a more informative FileNotFoundException.
Thanks for the PR. It is used for the The reason for it is that when the test fails, having the commit graph logged out in the test output is really handy. And afaik libgit2sharp can't format logs like the We should add a note to contributing. |
…nstalled and available in PATH.
@JakeGinnivan I see. I've added a If this PR looks good to you, it would be awesome to have it merged so I can rebase off of it to continue the profiling and testing of #456! 😄 |
All merged (including #456). Master should be in a good state now, if you could give it a run that would be awesome |
While attempting to add profiling to GitVersion in order to debug #437, I stumbled upon an issue running the following tests:
PullRequestScenarios.CanCalculatePullRequestChanges
PullRequestScenarios.CanCalculatePullRequestChangesFromRemoteRepo
PullRequestScenarios.CanCalculatePullRequestChangesInheritingConfig
GitPreparerTests.UpdatesExistingDynamicRepository
GitHelperTests.CanDetermineTheVersionFromAFetchedFeature
They are all failing for the same reason:
git
can't be found. Here's the stack trace:So I created this branch to at least figure out that it was
git
it couldn't find, because as you can see from the stack trace, theWin32Exception
that was originally thrown in isolate, is not very informative ("The system cannot find the file specified"; what file?).Thus, this branch and PR does not fix the underlying problem, but at least makes the symptom of the problem discoverable. I hope we can discuss in this PR:
CONTRIBUTING.md
doesn't mention this😃