TeamCity Build Log messed up with "Cannot find Latest successful build"

Answered

Hello,

I added a new (legacy) project to TeamCity and my Build Log is messed up with "Cannot find Latest successful build" messages like the lines below.

My build log file has 15280 lines and 3140 of them start with "Cannot find Latest successful build". The Build Process is also very slow on the build server (longer than 30 minutes). It takes only some seconds to build the project on my developer PC.

Any ideas how to fix this?

Best regards!
   Stefan

 

[18:50:42]W: Cannot find Latest successful build, branch: 'feature/MM-51-update-der-unittests' to calculate metric 'number of failed tests' for branch feature/MM-51-update-der-unittests
[18:50:42]W: Cannot find Latest successful build to calculate metric 'number of failed tests'
[18:50:42]W: Cannot find Latest successful build, branch: 'feature/MM-51-update-der-unittests' to calculate metric 'number of inspection errors' for branch feature/MM-51-update-der-unittests
[18:50:42]W: Cannot find Latest successful build to calculate metric 'number of inspection errors'
[18:50:42]W: Cannot find Latest successful build, branch: 'feature/MM-51-update-der-unittests' to calculate metric 'number of inspection warnings' for branch feature/MM-51-update-der-unittests
[18:50:42]W: Cannot find Latest successful build to calculate metric 'number of inspection warnings'
[18:50:42]W: Cannot find Latest successful build, branch: 'feature/MM-51-update-der-unittests' to calculate metric 'number of tests' for branch feature/MM-51-update-der-unittests
[18:50:42]W: Cannot find Latest successful build to calculate metric 'number of tests'
[18:50:42]W: Cannot find Latest successful build, branch: 'feature/MM-51-update-der-unittests' to calculate metric 'number of ignored tests' for branch feature/MM-51-update-der-unittests
[18:50:42]W: Cannot find Latest successful build to calculate metric 'number of ignored tests'
[18:50:43]W: Cannot find Latest successful build, branch: 'feature/MM-51-update-der-unittests' to calculate metric 'artifacts size' for branch feature/MM-51-update-der-unittests
[18:50:43]W: Cannot find Latest successful build to calculate metric 'artifacts size'




1
3 comments

Hi Stefan,

These messages are reported because you have many build failure conditions configured, but there is no build on dedicated branch. Do you see these messages if you run one more build on the same branch?

Regarding slow build, please investigate the case using the guidelines: https://confluence.jetbrains.com/display/TCD10/Common+Problems#CommonProblems-BuildisslowunderTeamCity.

0
Avatar
Permanently deleted user

Hello Alina,

thanks for your reply.

As the build always fails (due to Execution timeout) I always see this messages (and it never succeeds). And I only have 9 failure conditions, not 3140 ;-)

The problem is somewhere in the "Visual Studio Tests" build step. The build step starts e.g. at [11:37:24], a little bit later I get the results:

[11:40:06][Step 8/11] Results File: C:\ProgramData\JetBrains\TeamCity\buildAgent\work\1832b9c09fa70428\TestResults\Administrator_UNCLEBOB 2016-12-13 11_39_17.trx
[11:40:06][Step 8/11] 
[11:40:06][Step 8/11] Total tests: 220. Passed: 141. Failed: 74. Skipped: 5.

[11:40:06][Step 8/11] Test Run Failed.
[11:40:06][Step 8/11] Test execution time: 1,5018 Minutes

And then I get the about 2000 lines with "Cannot find Latest successful build" and 20 Minutes later (still in this build step) I get the message "[12:02:16][Step 8/11] The build XXXX#2.1.2.0_#21 {buildId=3202} has been running for more than 30 minutes. Terminating..."

I had a quick look at the "Common Problems" but didn't find a solution.

I will open a ticket and send you the build log.

Regards!
   Stefan

 

0
Avatar
Permanently deleted user
0

Please sign in to leave a comment.