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] System.OverflowException: Value was either too large or too small for an Int32 #2915

Closed
parismiguel opened this issue Nov 11, 2021 · 2 comments · Fixed by #3028
Closed
Labels
Milestone

Comments

@parismiguel
Copy link

parismiguel commented Nov 11, 2021

Describe the bug
We are used to run our builds using TeamCity and GitHub. Recently, we tried to implement GitHub workflows instead of TeamCity, nevertheless, it's not working yet, thus, we deactivated. By the time we wanted to run our builds again with TeamCity, we are not able to get GitVersion to calculate our release.

Expected Behavior

GitVersion calculates our build release

Actual Behavior

GitVersion breaks with the following warning an error messages::
Failed to inherit Increment branch configuration, ended up with: main, origin/main
System.OverflowException: Value was either too large or too small for an Int32

Logs

[02:38:16] :	 [Step 3/3] Executing task: set-release-version
[02:38:16] :	 [Step 3/3] Determine the version of the build, artifact, and release
[02:38:16] :	 [Step 3/3] Executing: "D:/work/20df56ab28fbee9/tools/GitVersion.CommandLine/tools/GitVersion.exe" -verbosity Debug
[02:38:18] :	 [Step 3/3] INFO [11/11/21 2:38:17:35] Applicable build agent found: 'TeamCity'.
[02:38:18] :	 [Step 3/3] INFO [11/11/21 2:38:17:40] Working directory: D:\work\20df56ab28fbee9
[02:38:18] :	 [Step 3/3] INFO [11/11/21 2:38:17:43] Branch from build environment: refs/pull/115/head
[02:38:18] :	 [Step 3/3] INFO [11/11/21 2:38:17:44] Project root is: D:\work\20df56ab28fbee9\
[02:38:18] :	 [Step 3/3] INFO [11/11/21 2:38:17:44] DotGit directory is: D:\work\20df56ab28fbee9\.git
[02:38:18] :	 [Step 3/3] INFO [11/11/21 2:38:17:44] Begin: Normalizing git directory for branch 'refs/pull/115/head'
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:47] One remote found (origin -> '[email protected]:im-web-experience/ifp-aptc-estimation-micro-frontend.git').
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:47] Skipping fetching, if GitVersion does not calculate your version as expected you might need to allow fetching or use dynamic repositories
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:48] Creating local branch refs/heads/pull/115/head pointing at 0d4863cd271c158082b0e6d86ad330e89846fe82
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:54] Skipping update of 'refs/remotes/origin/ENIFP-993-v3' as it already matches the remote ref.
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:54] Skipping update of 'refs/remotes/origin/WE-14291-add-application-insights-using-npm-setup-brady' as it already matches the remote ref.
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:54] Skipping update of 'refs/remotes/origin/WE-14500-add-disclaimer' as it already matches the remote ref.
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:54] Skipping update of 'refs/remotes/origin/WE-8436-load-test-updates' as it already matches the remote ref.
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:54] Skipping update of 'refs/remotes/origin/app-improvements' as it already matches the remote ref.
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:54] Skipping update of 'refs/remotes/origin/app-insights-spike' as it already matches the remote ref.
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:54] Skipping update of 'refs/remotes/origin/dependabot/npm_and_yarn/axios-0.21.4' as it already matches the remote ref.
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:54] Skipping update of 'refs/remotes/origin/dependabot/npm_and_yarn/nth-check-2.0.1' as it already matches the remote ref.
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:54] Skipping update of 'refs/remotes/origin/dependabot/npm_and_yarn/tmpl-1.0.5' as it already matches the remote ref.
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:54] Skipping update of 'refs/remotes/origin/fix-mac-usage' as it already matches the remote ref.
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:54] Skipping update of 'refs/remotes/origin/fix-sumologic-sourcecategory' as it already matches the remote ref.
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:54] Skipping update of 'refs/remotes/origin/main' as it already matches the remote ref.
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:54] Skipping update of 'refs/remotes/origin/page-chrome' as it already matches the remote ref.
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:55] Skipping update of 'refs/remotes/origin/upgrade-webpack' as it already matches the remote ref.
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:55] HEAD points at branch 'refs/heads/pull/115/head'.
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:55] End: Normalizing git directory for branch 'refs/pull/115/head' (Took: 111.22ms)
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:58] Begin: Loading version variables from disk cache
[02:38:18] :	 [Step 3/3]     INFO [11/11/21 2:38:17:58] Cache file D:\work\20df56ab28fbee9\.git\gitversion_cache\C0F07FA656445ACCDC21D2A9AFAC2B73891C33A7.yml not found.
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:58] End: Loading version variables from disk cache (Took: 2.98ms)
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:60] Using latest commit on specified branch
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:61] Begin: Attempting to inherit branch configuration from parent branch
[02:38:18] :	 [Step 3/3]     INFO [11/11/21 2:38:17:62] Begin: Finding branch source of 'pull/115/head'
[02:38:18] :	 [Step 3/3]       INFO [11/11/21 2:38:17:63] Begin: Finding merge base between 'pull/115/head' and 'main'.
[02:38:18] :	 [Step 3/3]         INFO [11/11/21 2:38:17:64] Found merge base of 1f1ee6baca368a1ca44c0e0ae1a8942f1cbc6fff
[02:38:18] :	 [Step 3/3]         INFO [11/11/21 2:38:17:65] Merge base of pull/115/head' and 'main is 1f1ee6baca368a1ca44c0e0ae1a8942f1cbc6fff
[02:38:18] :	 [Step 3/3]       INFO [11/11/21 2:38:17:65] End: Finding merge base between 'pull/115/head' and 'main'. (Took: 16.28ms)
[02:38:18] :	 [Step 3/3]     INFO [11/11/21 2:38:17:66] End: Finding branch source of 'pull/115/head' (Took: 36.76ms)
[02:38:18] :	 [Step 3/3]     INFO [11/11/21 2:38:17:66] Begin: Getting branches containing the commit '1f1ee6baca368a1ca44c0e0ae1a8942f1cbc6fff'.
[02:38:18] :	 [Step 3/3]       INFO [11/11/21 2:38:17:66] Trying to find direct branches.
[02:38:18] :	 [Step 3/3]       INFO [11/11/21 2:38:17:66] No direct branches found, searching through all branches.
[02:38:18] :	 [Step 3/3]       INFO [11/11/21 2:38:17:66] Searching for commits reachable from 'main'.
[02:38:18] :	 [Step 3/3]       INFO [11/11/21 2:38:17:67] The branch 'main' has a matching commit.
[02:38:18] :	 [Step 3/3]       INFO [11/11/21 2:38:17:67] Searching for commits reachable from 'origin/main'.
[02:38:18] :	 [Step 3/3]       INFO [11/11/21 2:38:17:67] The branch 'origin/main' has a matching commit.
[02:38:18] :	 [Step 3/3]     INFO [11/11/21 2:38:17:67] End: Getting branches containing the commit '1f1ee6baca368a1ca44c0e0ae1a8942f1cbc6fff'. (Took: 12.71ms)
[02:38:18] :	 [Step 3/3]     INFO [11/11/21 2:38:17:67] Begin: Getting branches containing the commit '0d4863cd271c158082b0e6d86ad330e89846fe82'.
[02:38:18] :	 [Step 3/3]       INFO [11/11/21 2:38:17:67] Trying to find direct branches.
[02:38:18] :	 [Step 3/3]       INFO [11/11/21 2:38:17:67] No direct branches found, searching through all branches.
[02:38:18] :	 [Step 3/3]       INFO [11/11/21 2:38:17:67] Searching for commits reachable from 'main'.
[02:38:18] :	 [Step 3/3]       INFO [11/11/21 2:38:17:68] The branch 'main' has no matching commits.
[02:38:18] :	 [Step 3/3]       INFO [11/11/21 2:38:17:68] Searching for commits reachable from 'origin/main'.
[02:38:18] :	 [Step 3/3]       INFO [11/11/21 2:38:17:69] The branch 'origin/main' has no matching commits.
[02:38:18] :	 [Step 3/3]     INFO [11/11/21 2:38:17:69] End: Getting branches containing the commit '0d4863cd271c158082b0e6d86ad330e89846fe82'. (Took: 15.85ms)
[02:38:18] :	 [Step 3/3]     INFO [11/11/21 2:38:17:69] Found possible parent branches: main, origin/main
[02:38:18] :	 [Step 3/3]     WARN [11/11/21 2:38:17:70] Failed to inherit Increment branch configuration, ended up with: main, origin/main
[02:38:18] :	 [Step 3/3] Falling back to main branch config
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:70] End: Attempting to inherit branch configuration from parent branch (Took: 82.97ms)
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:72] Running against branch: pull/115/head (0d4863cd271c158082b0e6d86ad330e89846fe82)
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:73] Begin: Calculating base versions
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:88] End: Calculating base versions (Took: 153.81ms)
[02:38:18] :	 [Step 3/3]   ERROR [11/11/21 2:38:17:89] An unexpected error occurred:
[02:38:18] :	 [Step 3/3] System.OverflowException: Value was either too large or too small for an Int32.
[02:38:18] :	 [Step 3/3]    at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type)
[02:38:18] :	 [Step 3/3]    at System.Number.ParseInt32(ReadOnlySpan`1 value, NumberStyles styles, NumberFormatInfo info)
[02:38:18] :	 [Step 3/3]    at System.Int32.Parse(String s)
[02:38:18] :	 [Step 3/3]    at GitVersion.SemanticVersionPreReleaseTag.Parse(String preReleaseTag)
[02:38:18] :	 [Step 3/3]    at GitVersion.SemanticVersion.TryParse(String version, String tagPrefixRegex, SemanticVersion& semanticVersion)
[02:38:18] :	 [Step 3/3]    at GitVersion.RepositoryMetadataProvider.GetValidVersionTags(String tagPrefixRegex, Nullable`1 olderThan)
[02:38:18] :	 [Step 3/3]    at GitVersion.VersionCalculation.TaggedCommitVersionStrategy.GetTaggedVersions(Branch currentBranch, Nullable`1 olderThan)
[02:38:18] :	 [Step 3/3]    at GitVersion.VersionCalculation.TaggedCommitVersionStrategy.GetVersions()
[02:38:18] :	 [Step 3/3]    at GitVersion.VersionCalculation.BaseVersionCalculator.<GetBaseVersion>b__7_0(IVersionStrategy s)
[02:38:18] :	 [Step 3/3]    at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()
[02:38:18]W:	 [Step 3/3] An error occurred when executing task 'set-release-version'.
[02:38:18] :	 [Step 3/3]    at System.Linq.Enumerable.SelectEnumerableIterator`2.ToList()
[02:38:18] :	 [Step 3/3]    at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
[02:38:18] :	 [Step 3/3]    at GitVersion.VersionCalculation.BaseVersionCalculator.GetBaseVersion()
[02:38:18] :	 [Step 3/3]    at GitVersion.VersionCalculation.NextVersionCalculator.FindVersion()
[02:38:18] :	 [Step 3/3]    at GitVersion.GitVersionTool.CalculateVersionVariables()
[02:38:18] :	 [Step 3/3]    at GitVersion.GitVersionExecutor.RunGitVersionTool(GitVersionOptions gitVersionOptions)
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:89] Attempting to show the current git graph (please include in issue): 
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:89] Showing max of 100 commits
[02:38:18] :	 [Step 3/3]   INFO [11/11/21 2:38:17:98] * 0d4863c 25 minutes ago  (HEAD -> pull/115/head, origin/ENIFP-993-v3, refs/pull/115/head, refs/pull/113/head, ENIFP-993-v3)
[02:38:18] :	 [Step 3/3] *   1f1ee6b 9 hours ago  (tag: v6.5.35, origin/main, main)
[02:38:18] :	 [Step 3/3] |\  
[02:38:18] :	 [Step 3/3] | | * 5500fe6 63 minutes ago  (refs/pull/114/head)
[02:38:18] :	 [Step 3/3] | |/  
[02:38:18] :	 [Step 3/3] | * b9e1fcc 2 days ago 
[02:38:18] :	 [Step 3/3] | * 05f39c6 2 days ago 
[02:38:18] :	 [Step 3/3] | *   2e7aec3 5 days ago 
[02:38:18] :	 [Step 3/3] | |\  
[02:38:18] :	 [Step 3/3] | * | c9c6b91 6 days ago 
[02:38:18] :	 [Step 3/3] | * | 0e9fe56 6 days ago 
[02:38:18] :	 [Step 3/3] | | | * ea7bd53 35 hours ago  (origin/app-improvements, app-improvements)
[02:38:18] :	 [Step 3/3] | | | * 3aa6bc6 35 hours ago 
[02:38:18] :	 [Step 3/3] | | | * b392799 2 days ago 
[02:38:18] :	 [Step 3/3] | | | * 23ebb5f 3 days ago 
[02:38:18] :	 [Step 3/3] | | | * 5a3b639 3 days ago 
[02:38:18] :	 [Step 3/3] | | | * 6b00e2e 3 days ago 
[02:38:18] :	 [Step 3/3] | | | * 3f8b09d 3 days ago 
[02:38:18] :	 [Step 3/3] | | | * 0c55017 3 days ago 
[02:38:18] :	 [Step 3/3] | | | * e42b201 3 days ago 
[02:38:18] :	 [Step 3/3] | | | * 35f043b 3 days ago 
[02:38:18] :	 [Step 3/3] | | | * 2a37c1c 3 days ago 
[02:38:18] :	 [Step 3/3] | |_|/  
[02:38:18] :	 [Step 3/3] |/| |   
**[02:38:18] :	 [Step 3/3] | | | * f03671c 2 days ago  (tag: v1.0.0-ENIFP-993-v2.211109141617)
[02:38:18] :	 [Step 3/3] | | | * 10a6ddd 2 days ago  (tag: v1.0.0-ENIFP-993-v2.211109045618)**
[02:38:18] :	 [Step 3/3] | |_|/  
[02:38:18] :	 [Step 3/3] |/| |   
[02:38:18] :	 [Step 3/3] * | |   6520668 3 days ago  (tag: 6.5.34)
[02:38:18] :	 [Step 3/3] |\ \ \  
[02:38:18] :	 [Step 3/3] | |_|/  
[02:38:18] :	 [Step 3/3] |/| |   
[02:38:18] :	 [Step 3/3] | * | a3cfd42 5 days ago 
[02:38:18] :	 [Step 3/3] | * | 271ec2e 5 days ago 
[02:38:18] :	 [Step 3/3] |/ /  
[02:38:18] :	 [Step 3/3] * |   3f2ebe4 6 days ago  (tag: 6.5.33)
[02:38:18] :	 [Step 3/3] |\ \  
[02:38:18] :	 [Step 3/3] | * | 42f96ef 6 days ago 
[02:38:18] :	 [Step 3/3] |/ /  
[02:38:18] :	 [Step 3/3] * |   0bd2236 6 days ago 
[02:38:18] :	 [Step 3/3] |\ \  
[02:38:18] :	 [Step 3/3] | |/  
[02:38:18] :	 [Step 3/3] |/|   
[02:38:18] :	 [Step 3/3] | * 6d6e55c 6 days ago 
[02:38:18] :	 [Step 3/3] | * 6658813 6 days ago 
[02:38:18] :	 [Step 3/3] | * 8afc644 6 days ago 
[02:38:18] :	 [Step 3/3] | * e82bcdb 7 days ago 
[02:38:18] :	 [Step 3/3] | * c9819b3 7 days ago 
[02:38:18] :	 [Step 3/3] | * 4e52038 7 days ago 
[02:38:18] :	 [Step 3/3] | * ee30950 7 days ago 
[02:38:18] :	 [Step 3/3] | * 7216f98 7 days ago 
[02:38:18] :	 [Step 3/3] | * 3cab192 7 days ago 
[02:38:18] :	 [Step 3/3] | * f7acdf5 7 days ago 
[02:38:18] :	 [Step 3/3] | * e133a28 7 days ago 
[02:38:18] :	 [Step 3/3] | * 6ca128e 7 days ago 
[02:38:18] :	 [Step 3/3] | * 5cd5275 7 days ago 
[02:38:18] :	 [Step 3/3] | * 9a4c4db 7 days ago 
[02:38:18] :	 [Step 3/3] | * 25622cd 7 days ago 
[02:38:18] :	 [Step 3/3] | * 07f835c 7 days ago 
[02:38:18] :	 [Step 3/3] |/  
[02:38:18] :	 [Step 3/3] *   e1dfc99 7 days ago 
[02:38:18] :	 [Step 3/3] |\  
[02:38:18] :	 [Step 3/3] | * b37e072 8 days ago 
[02:38:18] :	 [Step 3/3] |/  
[02:38:18] :	 [Step 3/3] *   9155975 4 weeks ago 
[02:38:18] :	 [Step 3/3] |\  
[02:38:18] :	 [Step 3/3] | * 5c954d3 4 weeks ago 
[02:38:18] :	 [Step 3/3] * |   1d63387 4 weeks ago 
[02:38:18] :	 [Step 3/3] |\ \  
[02:38:18] :	 [Step 3/3] | * | 2ff5ef5 4 weeks ago 
[02:38:18] :	 [Step 3/3] | |/  
[02:38:18] :	 [Step 3/3] * |   373381e 4 weeks ago 
[02:38:18] :	 [Step 3/3] |\ \  
[02:38:18] :	 [Step 3/3] | * | 073d206 4 weeks ago 
[02:38:18] :	 [Step 3/3] | |/  
[02:38:18] :	 [Step 3/3] * |   5876a15 4 weeks ago 
[02:38:18] :	 [Step 3/3] |\ \  
[02:38:18] :	 [Step 3/3] | * | fae407a 4 weeks ago 
[02:38:18] :	 [Step 3/3] | |/  
[02:38:18] :	 [Step 3/3] * |   c954f56 4 weeks ago 
[02:38:18] :	 [Step 3/3] |\ \  
[02:38:18] :	 [Step 3/3] | |/  
[02:38:18] :	 [Step 3/3] |/|   
[02:38:18] :	 [Step 3/3] | * ec25dee 4 weeks ago 
[02:38:18] :	 [Step 3/3] |/  
[02:38:18] :	 [Step 3/3] *   87990e9 4 weeks ago  (tag: 6.5.32)
[02:38:18] :	 [Step 3/3] |\  
[02:38:18] :	 [Step 3/3] | * ab33c0c 4 weeks ago 
[02:38:18] :	 [Step 3/3] |/  
[02:38:18] :	 [Step 3/3] *   8d18696 7 weeks ago  (tag: 6.5.31)
[02:38:18] :	 [Step 3/3] |\  
[02:38:18] :	 [Step 3/3] | * 8470e34 7 weeks ago 
[02:38:18] :	 [Step 3/3] | * a750924 7 weeks ago 
[02:38:18] :	 [Step 3/3] | | * 47990c7 7 weeks ago  (origin/dependabot/npm_and_yarn/nth-check-2.0.1, dependabot/npm_and_yarn/nth-check-2.0.1)
[02:38:18] :	 [Step 3/3] | |/  
[02:38:18] :	 [Step 3/3] |/|   
[02:38:18] :	 [Step 3/3] | | * ef131f3 7 weeks ago  (origin/dependabot/npm_and_yarn/tmpl-1.0.5, dependabot/npm_and_yarn/tmpl-1.0.5)
[02:38:18] :	 [Step 3/3] | |/  
[02:38:18] :	 [Step 3/3] |/|   
[02:38:18] :	 [Step 3/3] | | * a1bfb66 8 weeks ago  (origin/dependabot/npm_and_yarn/axios-0.21.4, dependabot/npm_and_yarn/axios-0.21.4)
[02:38:18] :	 [Step 3/3] | |/  
[02:38:18] :	 [Step 3/3] |/|   
[02:38:18] :	 [Step 3/3] * |   e48c2c0 8 weeks ago  (tag: 6.5.30)
[02:38:18] :	 [Step 3/3] |\ \  
[02:38:18] :	 [Step 3/3] | * | b275e73 8 weeks ago 
[02:38:18] :	 [Step 3/3] | * | 70baf95 8 weeks ago 
[02:38:18] :	 [Step 3/3] | * | 7ce637d 8 weeks ago 
[02:38:18] :	 [Step 3/3] | * | 83e9f63 8 weeks ago 
[02:38:18] :	 [Step 3/3] | * | ed53cf9 8 weeks ago 
[02:38:18] :	 [Step 3/3] | * | b653b05 8 weeks ago 
[02:38:18] :	 [Step 3/3] | * | 8ad6f36 8 weeks ago 
[02:38:18] :	 [Step 3/3] | * | 115d0d6 8 weeks ago 
[02:38:18] :	 [Step 3/3] | * | 7d73140 8 weeks ago 
[02:38:18] :	 [Step 3/3] | * | 9af3407 8 weeks ago 
[02:38:18] :	 [Step 3/3] | * | 8f09e34 8 weeks ago 
[02:38:18] :	 [Step 3/3] | * | 56e9d1f 9 weeks ago 
[02:38:18] :	 [Step 3/3] | * | dcf82b4 9 weeks ago 
[02:38:18] :	 [Step 3/3] | * | a1a008b 9 weeks ago 
[02:38:18]W:	 [Step 3/3] Error: System.AggregateException: One or more errors occurred. ---> Cake.Core.CakeException: GitVersion: Process returned an error (exit code 1).
[02:38:18] :	 [Step 3/3] | * | 16c92f9 9 weeks ago 
[02:38:18]W:	 [Step 3/3]    at Cake.Core.Tooling.Tool`1.ProcessExitCode(Int32 exitCode)
[02:38:18] :	 [Step 3/3] | * |   0ca30cd 9 weeks ago 
[02:38:18] :	 [Step 3/3] | |\ \  
[02:38:18]W:	 [Step 3/3]    at Cake.Core.Tooling.Tool`1.Run(TSettings settings, ProcessArgumentBuilder arguments, ProcessSettings processSettings, Action`1 postAction)
[02:38:18] :	 [Step 3/3] | |/ /  
[02:38:18] :	 [Step 3/3] |/| |   
[02:38:18]W:	 [Step 3/3]    at Cake.Common.Tools.GitVersion.GitVersionRunner.Run(GitVersionSettings settings)
[02:38:18] :	 [Step 3/3] | | | * 5931589 8 weeks ago  (origin/WE-14291-add-application-insights-using-npm-setup-brady, WE-14291-add-application-insights-using-npm-setup-brady)
[02:38:18]W:	 [Step 3/3]    at Submission#0.GitVersion(GitVersionSettings settings) in :line 488
[02:38:18] :	 [Step 3/3] | |_|/  
[02:38:18] :	 [Step 3/3] |/| |   
[02:38:18]W:	 [Step 3/3]    at Submission#0.<<Initialize>>b__0_1() in D:\work\20df56ab28fbee9\cake-scripts\globals.cake:line 41
[02:38:18] :	 [Step 3/3] * | |   bc6ef05 9 weeks ago  (tag: 6.5.29)
[02:38:18] :	 [Step 3/3] |\ \ \  
[02:38:18]W:	 [Step 3/3]    at Cake.Core.CakeTaskBuilderExtensions.<>c__DisplayClass32_0.<Does>b__0(ICakeContext x)
[02:38:18] :	 [Step 3/3] | |_|/  
[02:38:18]W:	 [Step 3/3]    at Cake.Core.CakeTask.<Execute>d__43.MoveNext()
[02:38:18] :	 [Step 3/3] |/| |   
[02:38:18] :	 [Step 3/3] | * | 00b06b3 9 weeks ago 
[02:38:18]W:	 [Step 3/3] --- End of stack trace from previous location where exception was thrown ---
[02:38:18] :	 [Step 3/3] | * | 6897d87 9 weeks ago 
[02:38:18]W:	 [Step 3/3]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[02:38:18] :	 [Step 3/3] | * | 6988981 9 weeks ago 
[02:38:18] :	 [Step 3/3] | * | a9b556a 2 months ago 
[02:38:18]W:	 [Step 3/3]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[02:38:18] :	 [Step 3/3] |/ /  
[02:38:18]W:	 [Step 3/3]    at Cake.Core.DefaultExecutionStrategy.<ExecuteAsync>d__4.MoveNext()
[02:38:18] :	 [Step 3/3] | | * 2dc4ba8 8 weeks ago  (origin/fix-mac-usage, fix-mac-usage)
[02:38:18]W:	 [Step 3/3] --- End of stack trace from previous location where exception was thrown ---
[02:38:18] :	 [Step 3/3] | | * 19d510d 9 weeks ago 
[02:38:18]W:	 [Step 3/3]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[02:38:18] :	 [Step 3/3] | |/  
[02:38:18] :	 [Step 3/3] |/|   
[02:38:18]W:	 [Step 3/3]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[02:38:18] :	 [Step 3/3] | | * 96ec1e1 9 weeks ago  (origin/app-insights-spike, app-insights-spike)
[02:38:18]W:	 [Step 3/3]    at Cake.Core.CakeEngine.<ExecuteTaskAsync>d__31.MoveNext()
[02:38:18] :	 [Step 3/3] | | * 82de18d 9 weeks ago 
[02:38:18]W:	 [Step 3/3] --- End of stack trace from previous location where exception was thrown ---
[02:38:18] :	 [Step 3/3] | | * f41a524 9 weeks ago 
[02:38:18]W:	 [Step 3/3]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[02:38:18] :	 [Step 3/3] | |/  
[02:38:18]W:	 [Step 3/3]    at Cake.Core.CakeEngine.<ExecuteTaskAsync>d__31.MoveNext()
[02:38:18] :	 [Step 3/3] | * 71878e1 9 weeks ago 
[02:38:18] :	 [Step 3/3] | * a98ffed 9 weeks ago 
[02:38:18]W:	 [Step 3/3] --- End of stack trace from previous location where exception was thrown ---
[02:38:18] :	 [Step 3/3] | * 5531b59 9 weeks ago 
[02:38:18]W:	 [Step 3/3]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[02:38:18] :	 [Step 3/3] | * 9511384 9 weeks ago 
[02:38:18]W:	 [Step 3/3]    at Cake.Core.CakeEngine.<ExecuteTaskAsync>d__31.MoveNext()
[02:38:18] :	 [Step 3/3] | * 4d3efc3 9 weeks ago 
[02:38:18]W:	 [Step 3/3] --- End of stack trace from previous location where exception was thrown ---
[02:38:18] :	 [Step 3/3] | * c71f621 9 weeks ago 
[02:38:18]W:	 [Step 3/3]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[02:38:18] :	 [Step 3/3] | * 3503af1 9 weeks ago 
[02:38:18] :	 [Step 3/3] | * b9bf1aa 9 weeks ago 
[02:38:18]W:	 [Step 3/3]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[02:38:18] :	 [Step 3/3] | * d136290 9 weeks ago 
[02:38:18]W:	 [Step 3/3]    at Cake.Core.CakeEngine.<RunTask>d__28.MoveNext()
[02:38:18] :	 [Step 3/3] 
[02:38:18]W:	 [Step 3/3] --- End of stack trace from previous location where exception was thrown ---
[02:38:18]W:	 [Step 3/3]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[02:38:18]W:	 [Step 3/3]    at Cake.Core.CakeEngine.<RunTargetAsync>d__27.MoveNext()
[02:38:18]W:	 [Step 3/3] --- End of stack trace from previous location where exception was thrown ---
[02:38:18]W:	 [Step 3/3]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[02:38:18]W:	 [Step 3/3]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[02:38:18]W:	 [Step 3/3]    at Cake.Scripting.BuildScriptHost.<RunTargetAsync>d__3.MoveNext()
[02:38:18]W:	 [Step 3/3] --- End of stack trace from previous location where exception was thrown ---
[02:38:18]W:	 [Step 3/3]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[02:38:18]W:	 [Step 3/3]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[02:38:18]W:	 [Step 3/3]    at Cake.Core.Scripting.ScriptHost.RunTarget(String target)
[02:38:18]W:	 [Step 3/3]    at Submission#0.<<Initialize>>d__0.MoveNext() in D:\work\20df56ab28fbee9\build.cake:line 93
[02:38:18]W:	 [Step 3/3] --- End of stack trace from previous location where exception was thrown ---
[02:38:18]W:	 [Step 3/3]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[02:38:18]W:	 [Step 3/3]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[02:38:18]W:	 [Step 3/3]    at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.<RunSubmissionsAsync>d__9`1.MoveNext()
[02:38:18]W:	 [Step 3/3] --- End of stack trace from previous location where exception was thrown ---
[02:38:18]W:	 [Step 3/3]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[02:38:18]W:	 [Step 3/3]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[02:38:18]W:	 [Step 3/3]    at Microsoft.CodeAnalysis.Scripting.Script`1.<RunSubmissionsAsync>d__21.MoveNext()
[02:38:18]W:	 [Step 3/3]    --- End of inner exception stack trace ---
[02:38:18]W:	 [Step 3/3]    at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
[02:38:18]W:	 [Step 3/3]    at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
[02:38:18]W:	 [Step 3/3]    at Cake.Scripting.Roslyn.RoslynScriptSession.Execute(Script script)
[02:38:18]W:	 [Step 3/3]    at Cake.Core.Scripting.ScriptRunner.Run(IScriptHost host, FilePath scriptPath, IDictionary`2 arguments)
[02:38:18]W:	 [Step 3/3]    at Cake.Commands.BuildCommand.Execute(CakeOptions options)
[02:38:18]W:	 [Step 3/3]    at Cake.CakeApplication.Run(CakeOptions options)
[02:38:18]W:	 [Step 3/3]    at Cake.Program.Main()
[02:38:18]W:	 [Step 3/3] ---> (Inner Exception #0) Cake.Core.CakeException: GitVersion: Process returned an error (exit code 1).
[02:38:18]W:	 [Step 3/3]    at Cake.Core.Tooling.Tool`1.ProcessExitCode(Int32 exitCode)
[02:38:18]W:	 [Step 3/3]    at Cake.Core.Tooling.Tool`1.Run(TSettings settings, ProcessArgumentBuilder arguments, ProcessSettings processSettings, Action`1 postAction)
[02:38:18]W:	 [Step 3/3]    at Cake.Common.Tools.GitVersion.GitVersionRunner.Run(GitVersionSettings settings)
[02:38:18]W:	 [Step 3/3]    at Submission#0.GitVersion(GitVersionSettings settings) in :line 488
[02:38:18]W:	 [Step 3/3]    at Submission#0.<<Initialize>>b__0_1() in D:\work\20df56ab28fbee9\cake-scripts\globals.cake:line 41
[02:38:18]W:	 [Step 3/3]    at Cake.Core.CakeTaskBuilderExtensions.<>c__DisplayClass32_0.<Does>b__0(ICakeContext x)
[02:38:18]W:	 [Step 3/3]    at Cake.Core.CakeTask.<Execute>d__43.MoveNext()
[02:38:18]W:	 [Step 3/3] --- End of stack trace from previous location where exception was thrown ---
[02:38:18]W:	 [Step 3/3]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[02:38:18]W:	 [Step 3/3]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[02:38:18]W:	 [Step 3/3]    at Cake.Core.DefaultExecutionStrategy.<ExecuteAsync>d__4.MoveNext()
[02:38:18]W:	 [Step 3/3] --- End of stack trace from previous location where exception was thrown ---
[02:38:18]W:	 [Step 3/3]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[02:38:18]W:	 [Step 3/3]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[02:38:18]W:	 [Step 3/3]    at Cake.Core.CakeEngine.<ExecuteTaskAsync>d__31.MoveNext()
[02:38:18]W:	 [Step 3/3] --- End of stack trace from previous location where exception was thrown ---
[02:38:18]W:	 [Step 3/3]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[02:38:18]W:	 [Step 3/3]    at Cake.Core.CakeEngine.<ExecuteTaskAsync>d__31.MoveNext()
[02:38:18]W:	 [Step 3/3] --- End of stack trace from previous location where exception was thrown ---
[02:38:18]W:	 [Step 3/3]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[02:38:18]W:	 [Step 3/3]    at Cake.Core.CakeEngine.<ExecuteTaskAsync>d__31.MoveNext()
[02:38:18]W:	 [Step 3/3] --- End of stack trace from previous location where exception was thrown ---
[02:38:18]W:	 [Step 3/3]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[02:38:18]W:	 [Step 3/3]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[02:38:18]W:	 [Step 3/3]    at Cake.Core.CakeEngine.<RunTask>d__28.MoveNext()
[02:38:18]W:	 [Step 3/3] --- End of stack trace from previous location where exception was thrown ---
[02:38:18]W:	 [Step 3/3]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[02:38:18]W:	 [Step 3/3]    at Cake.Core.CakeEngine.<RunTargetAsync>d__27.MoveNext()
[02:38:18]W:	 [Step 3/3] --- End of stack trace from previous location where exception was thrown ---
[02:38:18]W:	 [Step 3/3]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[02:38:18]W:	 [Step 3/3]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[02:38:18]W:	 [Step 3/3]    at Cake.Scripting.BuildScriptHost.<RunTargetAsync>d__3.MoveNext()
[02:38:18]W:	 [Step 3/3] --- End of stack trace from previous location where exception was thrown ---
[02:38:18]W:	 [Step 3/3]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[02:38:18]W:	 [Step 3/3]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[02:38:18]W:	 [Step 3/3]    at Cake.Core.Scripting.ScriptHost.RunTarget(String target)
[02:38:18]W:	 [Step 3/3]    at Submission#0.<<Initialize>>d__0.MoveNext() in D:\work\20df56ab28fbee9\build.cake:line 93
[02:38:18]W:	 [Step 3/3] --- End of stack trace from previous location where exception was thrown ---
[02:38:18]W:	 [Step 3/3]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[02:38:18]W:	 [Step 3/3]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[02:38:18]W:	 [Step 3/3]    at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.<RunSubmissionsAsync>d__9`1.MoveNext()
[02:38:18]W:	 [Step 3/3] --- End of stack trace from previous location where exception was thrown ---
[02:38:18]W:	 [Step 3/3]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[02:38:18]W:	 [Step 3/3]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[02:38:18]W:	 [Step 3/3]    at Microsoft.CodeAnalysis.Scripting.Script`1.<RunSubmissionsAsync>d__21.MoveNext()<---
[02:38:18]W:	 [Step 3/3] 
[02:38:18]W:	 [Step 3/3] Process exited with code 1
[02:38:13]E:	 [Step 3/3] Process exited with code 1 (Step: PowerShell)
[02:38:18]E:	 [Step 3/3] Step PowerShell failed

Context

We are not able to build our branches with TeamCity anymore because it fails when trying to calculate the version using GitVersion

@asbjornu
Copy link
Member

Looks like a duplicate of #2390.

@asbjornu asbjornu mentioned this issue Mar 3, 2022
5 tasks
@asbjornu asbjornu added this to the 5.x milestone Mar 3, 2022
@arturcic arturcic modified the milestones: 5.x, 5.8.3 Mar 5, 2022
@github-actions
Copy link

github-actions bot commented Mar 5, 2022

🎉 This issue has been resolved in version 5.8.3 🎉
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

Successfully merging a pull request may close this issue.

3 participants