How does "checking for changes" work?
We're having a big problem with all of our builds stuck in the initial "checking for changes" state. They all take more than 30 minutes to begin while they perform this step. We've applied the workaround mentioned in this issue: http://youtrack.jetbrains.net/issue/TW-16017 but we haven't discerned any positive effect. We also don't see that there are any problems with svn:externals references in our Subversion repositories. The fact that all of our repositories suffer equally seems to suggest that this is not the problem as well.
In order to better troubleshoot this problem, I'd like to gain a better understanding of what exactly "checking for changes" does. It seems to me that the SCM trigger has already checked for changes and that's why most of these builds have been placed into the queue in the first place. If that's the case, what does "checking for changes" do as soon as the build "starts" on the target agent?
Please sign in to leave a comment.
It would also be helpful to understand the exact subversion operations being performed. This might help us isolate any repository latency from the problem.
Hello,
Checking for changes is a rather complex operation, and its flow depends on many parameters
- is there quiet period set
- are there snapshot dependencies
- VCS-specific things, like whether SVN externals should be checked for changes.
To get a log of VCS operations performed by TeamCity, you can enable DEBUG logging for VCS (on the Diagnostics tab of the server settings),
and download teamcity-vcs.log file. This file should contain start/stop moments for the most operations involved to "Checking for changes" operation.
Kind regards,
KIR
Sounds like the DEBUG log is exactly what I need to look at. thanks.
I'm having this issue in 6.5.3 and its really impacting our ability to release.
How did you end up resolving this?
Thanks!
Hello Trevor,
Please create an issue in our tracker, and provide all relevant information: logs, thread dumps, etc.:
http://confluence.jetbrains.net/display/TCD7/Reporting+Issues
Thanks,
KIR