[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Question about performance and space

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: Fri, 12 Nov 2010 15:43:18 +0100

On Friday 12 November 2010, San Martino wrote:
> Basically we need to test each commit from /tag while others proceed
> on /trunk. Before we used to lock - modify - TEST [- correct bugs]
> unlock. This really slows down the development because TEST is a long
> period while development needs to be very frequent. Now with
> Subversion we want to profit by concurrent progrommaing and testing.

So you want to run regression tests on every commit. This is possible without
additionally tagging every commit. I'd suggest the following approach:
Write a post-commit hook that adds an entry to the test queue. This just adds
the entry and doesn't run the test because they are time-intensive and you
don't want to block the finalization of the commit. The entry consists of the
URL and the revision to be tested. In a separate process (e.g. cronjob) you
pop an entry from the queue, check out that URL and revision (or update the
working copy to that revision) and run the test on the code.

Alternatively, you could fork a process in the post-commit hook that checks
out the code and runs the tests in parallel. Maybe that would be even easier
than using a separate queue.

Anyway, the point is that you don't need a separate name in the URL because it
only duplicates the already available URL/revision.

Cheers!

Uli

-- 
ML: http://subversion.apache.org/docs/community-guide/mailing-lists.html
FAQ: http://subversion.apache.org/faq.html
Docs: http://svnbook.red-bean.com/
Sator Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Sator Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************
Received on 2010-11-12 15:43:58 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.