Как решить ошибку TeamCity GitVersion infinte l oop? - PullRequest
1 голос
/ 26 мая 2020

У меня странная ошибка с процедурой GitVersion в TeamCity. Он попадает в infinte l oop, состоящий из кода ниже.

Branch0 является родительским для branch1 и branch2. Я пытаюсь развернуть ветку 2, и отображается ошибка, связанная с отображаемой веткой 1, где она вообще не должна иметь к ней никакого соединения.

Также мне любопытно, в чем разница между 'develop' и 'origin / develop 'в этом контексте, поскольку для меня они обе должны быть одной и той же удаленной веткой, не так ли? действительно разобраться. Любопытно то, что когда я удаляю ветку 1, я могу легко развернуть ветку 0 и ветку 2. Как только я снова создаю ветку 1 из ветки 0, она снова терпит неудачу.

Falling back to branch1 branch config
[15:07:52][Step 1/1]             INFO [05/25/20 15:07:52:16] No branch configuration found for branch branch1, falling back to default configuration
[15:07:52][Step 1/1]             INFO [05/25/20 15:07:52:16] Begin: Attempting to inherit branch configuration from parent branch
[15:07:52][Step 1/1]               INFO [05/25/20 15:07:52:16] HEAD is merge commit, this is likely a pull request using master as base
[15:07:52][Step 1/1]               INFO [05/25/20 15:07:52:17] Begin: Finding branch source of 'master'
[15:07:52][Step 1/1]                 INFO [05/25/20 15:07:52:17] Multiple source branches have been found, picking the first one (develop).
[15:07:52][Step 1/1] This may result in incorrect commit counting.
[15:07:52][Step 1/1] Options were:
[15:07:52][Step 1/1]  develop, origin/develop
[15:07:52][Step 1/1]               INFO [05/25/20 15:07:52:17] End: Finding branch source of 'master' (Took: 1.00ms)
[15:07:52][Step 1/1]               INFO [05/25/20 15:07:52:17] Begin: Getting branches containing the commit 'hash1'.
[15:07:52][Step 1/1]                 INFO [05/25/20 15:07:52:17] Trying to find direct branches.
[15:07:52][Step 1/1]                 INFO [05/25/20 15:07:52:17] No direct branches found, searching through tracked branches.
[15:07:52][Step 1/1]                 INFO [05/25/20 15:07:52:17] Searching for commits reachable from 'develop'.
[15:07:52][Step 1/1]                 INFO [05/25/20 15:07:52:20] The branch 'develop' has a matching commit.
[15:07:52][Step 1/1]                 INFO [05/25/20 15:07:52:20] Searching for commits reachable from 'origin/develop'.
[15:07:52][Step 1/1]                 INFO [05/25/20 15:07:52:24] The branch 'origin/develop' has a matching commit.
[15:07:52][Step 1/1]               INFO [05/25/20 15:07:52:24] End: Getting branches containing the commit 'hash1'. (Took: 68.00ms)
[15:07:52][Step 1/1]               INFO [05/25/20 15:07:52:24] Begin: Getting branches containing the commit 'hash2'.
[15:07:52][Step 1/1]                 INFO [05/25/20 15:07:52:24] Trying to find direct branches.
[15:07:52][Step 1/1]                 INFO [05/25/20 15:07:52:24] No direct branches found, searching through tracked branches.
[15:07:52][Step 1/1]                 INFO [05/25/20 15:07:52:24] Searching for commits reachable from 'develop'.
[15:07:52][Step 1/1]                 INFO [05/25/20 15:07:52:27] The branch 'develop' has a matching commit.
[15:07:52][Step 1/1]                 INFO [05/25/20 15:07:52:27] Searching for commits reachable from 'origin/develop'.
[15:07:52][Step 1/1]                 INFO [05/25/20 15:07:52:30] The branch 'origin/develop' has a matching commit.
[15:07:52][Step 1/1]               INFO [05/25/20 15:07:52:30] End: Getting branches containing the commit 'hash1'. (Took: 66.00ms)
[15:07:52][Step 1/1]               INFO [05/25/20 15:07:52:30] Found possible parent branches: 
[15:07:52][Step 1/1]               WARN [05/25/20 15:07:52:30] Failed to inherit Increment branch configuration, no branches found.```

1 Ответ

0 голосов
/ 03 июня 2020

После некоторых проб и ошибок кажется, что лучшим решением здесь было обновить временную метку игнорирования для git коммитов в файле GitVersionConfig.yaml

...