TeamCity 8.0.1 Perforce "Building clean patch for VCS root" takes 1 hour

We are running TeamCity Enterprise 8.0.1 (build 27435).

We use Perforce for version control and I have tried to follow the advice in the help (http://confluence.jetbrains.com/display/TCD8/VCS+Checkout+Rules) "The general recommendation is to have a small number of VCS roots (pointing to the root of the repository) and define what is checked out by a specific build configuration via checkout rules."

I have consolidated all of our VCS roots down to just two and configured checkout rules on each build configuration. The issue is that the first checkout of each build on each agent takes 1 hour which means that our TC server has ground to a halt.

The VCS checkout mode is set to "automatically on server"

and the checkout rules are in the form of :

-:.

+:Live/Project/Folder=>.

So that only a subset of all the files in the VCS root are downloaded. The first time each build runs on each agent it says:

[Updating sources] Will perform clean checkout. Reason: Agent doesn't have any version of the project sources

[13:24:51][Updating sources] Building clean patch for VCS root: OurRootName

When it does complete it says:

[18:17:00][Updating sources] Will perform clean checkout. Reason: Agent doesn't have any version of the project sources

[18:17:00][Updating sources] Building clean patch for VCS root: OurRootName

[18:19:01][Updating sources] Transferring repository sources: 177.23 MB so far...

[18:21:01][Updating sources] Transferring repository sources: 300.22 MB so far...

[18:23:01][Updating sources] Transferring repository sources: 596.53 MB so far...

[18:25:05][Updating sources] Transferring repository sources: 861.0 MB so far...

[18:27:05][Updating sources] Transferring repository sources: 1.02 GB so far...

[19:00:44][Updating sources] Transferring repository sources: 1.12 GB so far...

[19:00:44][Updating sources] Repository sources transferred: 1.12 GB total

Another configuration with different checkout rules:

[11:30:41][Updating sources] Will perform clean checkout. Reason: Agent doesn't have any version of the project sources

[11:30:41][Updating sources] Building clean patch for VCS root: OurRootName

[12:12:10][Updating sources] Transferring repository sources: 12.05 MB so far...

[12:12:10][Updating sources] Repository sources transferred: 12.06 MB total

(note this 12.05MB took over 41 mins!)


Any ideas what is wrong with this setup as this has rendered our TeamCity setup useless? Any help much appreciated.

Please sign in to leave a comment.