Back    
Priority:
Type:
State:
Assignee:
Subsystem:
Affected versions:
Fixed in:

TW-2797

TeamCity Agent deletes source every time even without "​clean​" checked in the build configuration

0
I have a project with two build configurations.
When the first one runs, it checks out the source and builds.
When the second one runs, copies the source directory "Dir.OLD", then deletes the source code (very slowly) then re-checks out the source code (also very slowly)

This adds like an hour onto a build that should take 3 minutes total.

The directory in question has externals, I think this is related to the externals support.

This is critical and is going to keep us from rolling TeamCity out in any official capacity as an extra hour for each build configuration slows our builds to a crawl.

Issue wasclosed
Comments (13)
History (1)
Allen Cook Allen Cook 07 Jun 2007 00:57 (2 years ago)
The source code control is Subversion and it checks out the changes on the agent.
Allen Cook Allen Cook 07 Jun 2007 01:06 (2 years ago)
Also, this happens when I modify the externals on the directory. The next update completely deletes everything and starts over, even though a simple SVN update can handle this scenario just fine.
Olesya Smirnova Olesya Smirnova 07 Jun 2007 13:35 (2 years ago)
Server side checkout process cannot do real svn update because there are no source code. If externals property changes it just deletes al sources and gets them anew. We supposed changing externals is not very frequent operation.
BTW, you can use agent side check out, it performs actual svn update.
Allen Cook Allen Cook 07 Jun 2007 18:24 (2 years ago)
This is an agent side checkout, not a server side checkout.
Yegor Yarko Yegor Yarko 09 Jun 2007 20:21 (2 years ago)
Allen,
directory cleaning after changing externals' revision seems to be svnkit library issue. I hope it will be fixed soon and you will be able to update it in your TeamCity installation.

Can you confirm that changing externals property is the only reason of cleaning the sources or there might be some other cases?
Allen Cook Allen Cook 11 Jun 2007 19:32 (2 years ago)
I have confirmed with my setup that if I don't change the externals definitions that it does an "svn update" just fine. This only occurs in my setup with I change the svn externals.
Yegor Yarko Yegor Yarko 13 Jun 2007 13:50 (2 years ago)
Thank you for checking this.
Yegor Yarko Yegor Yarko 13 Jun 2007 18:18 (2 years ago)
Allen,
the issue is fixed in the latest build of SVNkit library. (Can be obtained from
https://teamcity.svnkit.com/repository/download/bt6/324:id/deploy/org.tmatesoft.svn_1.1.2.3145.standalone.zip )

If you wish, you can update your TeamCity installation with new libraries.
to do that:
  • stop TeamCity

overwrite the files:
<TeamCity home>\webapps\ROOT\WEB-INF\lib\svnkit.jar
<TeamCity home>\webapps\ROOT\update\plugins\svnAgent.zip\svnAgent\lib\svnkit.jar (note, this is inside zip archive)
with the one attached.
  • start TeamCity: agents should upgrade to the new version of the library automatically.
Allen Cook Allen Cook 13 Jun 2007 21:27 (2 years ago)
I have applied this patch and now instead of only deleting the directory when I change externals it seems to be forcing a clean every time even though "clean files" is not checked. This happens with all directories now regardless of whether or not they have svn:externals defined

[13:01:24]: Clearing F:\BuildAgent\work\Agent\Test\build
[13:01:24]: Checking F:\BuildAgent\work\Agent\Test\build out from svn
[13:01:27]: Clearing F:\BuildAgent\work\Agent\Test\Tools
[13:01:27]: Checking F:\BuildAgent\work\Agent\Test\Tools out from svn
[13:12:06]: Clearing F:\BuildAgent\work\Agent\Test\Test
[13:12:06]: Checking F:\BuildAgent\work\Agent\Test\Testout from svn
Allen Cook Allen Cook 13 Jun 2007 22:27 (2 years ago)
Does it do this every time you change the VCS settings? If so I guess that's expected. Trying it without changing any VCS settings now.
Yegor Yarko Yegor Yarko 13 Jun 2007 22:34 (2 years ago)
Please make sure the build was run on the agent before and no one changed VCS settings since the previous build on this agent.

Does this reproduce only after externals property changing?
Allen Cook Allen Cook 14 Jun 2007 00:00 (2 years ago)
Yes if I don't change the VCS settings this seems to be working perfectly. Thanks for your rapid reponse
Yegor Yarko Yegor Yarko 28 Jun 2007 14:35 (2 years ago)
SVNkit updated to 1.1.3 version in both Agra Minot and Benares