• Welcome, guest

  • Login

  •  

Type:
Bug
Priority:
Critical Critical  
State:
Fixed
Subsystem:
Agent
Reporter:
Allen Cook (acook) Send Email
Assignee:
Kirill Maximov (maxkir) Send Email
Affects:
TeamCity 2.1 (4244)
Fixed in:
TeamCity 2.1.1 (4261), Benares EAP (5433)
Created:
14 months ago (07 Jun 2007 00:54)
Updated:
14 months ago (28 Jun 2007 15:23)
Votes:
0
Resolved:
JIRA source:
TW-2797
svnkit.jar (1181 kb)
Issue has no links

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

  • Allen Cook (acook) Send Email
    14 months ago (07 Jun 2007 00:57)

The source code control is Subversion and it checks out the changes on the agent.

  • Allen Cook (acook) Send Email
    14 months ago (07 Jun 2007 01:06)

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 (lesya) Send Email
    14 months ago (07 Jun 2007 13:35)

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 (acook) Send Email
    14 months ago (07 Jun 2007 18:24)

This is an agent side checkout, not a server side checkout.

  • Yegor Yarko (yaegor) Send Email
    14 months ago (09 Jun 2007 20:21)

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 (acook) Send Email
    14 months ago (11 Jun 2007 19:32)

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 (yaegor) Send Email
    14 months ago (13 Jun 2007 13:50)

Thank you for checking this.

  • Yegor Yarko (yaegor) Send Email
    14 months ago (13 Jun 2007 18:18)

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 (acook) Send Email
    14 months ago (13 Jun 2007 21:27)

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 (acook) Send Email
    14 months ago (13 Jun 2007 22:27)

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 (yaegor) Send Email
    14 months ago (13 Jun 2007 22:34)

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 (acook) Send Email
    14 months ago (14 Jun 2007 00:00)

Yes if I don't change the VCS settings this seems to be working perfectly. Thanks for your rapid reponse

  • Yegor Yarko (yaegor) Send Email
    14 months ago (28 Jun 2007 14:35)

SVNkit updated to 1.1.3 version in both Agra Minot and Benares

Old New
Allen Cook (acook) - 14 months ago (28 Jun 2007 15:23)

JetBrains Tracker revision #1044 [21-Aug-2008 11:26] (version #46) Copyright 2007-2008 JetBrains s.r.o.