Re: Fw: distributed cruise: parallel builds
Vindhya S <[email protected]> Fri, 27 Jan 2012 11:04:01 -0800 (PST)
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Dan, Thanks a lot for the reply. Here is my usecase: 1. Our current build taking more than 10 hours to complete, we want to reduce the build time(ex: 2 hours). 2. This build includes around 500 tests execution. 3. We are thinking of distributing the build tests to different agents and get the results to master under single project. so we can complete build in less time. I am using cruise control distributed 2.8.4 source. Questions: 1. Here is my sample config file. <cruisecontrol> <system> <configuration> <threads count="5" /> </configuration> </system> <project name="master-pr"............ <schedule interval="60"> <composite> <distributed entries="agent.name=num1" </project> <project name="agent-pr"............ </cruisecontrol> I have devided the tests among the projects(different build file for each project with different set of tests). build starting on the agents and executing the tests. But how can I get single set of results(under master-pr) ?. 2. If build on the agent fails(ex: if any unit test fails) it should fail master-pr build as agent-pr result part of master build. How it is possible as these two are different projects. 3. How master-pr will wait for the agent-pr build completion?. Thanks Vin From: Dan Rollo <[email protected]> To: [email protected] Sent: Thursday, January 26, 2012 8:29 PM Subject: [Cruisecontrol-user] Fw: distributed cruise: parallel builds Hi Vin, I may not understand your use case, so please say more if I'm missing the point. 1. If you want to ensure a given set of builds all run on the same agent, you could rearrange the <composite> and <distributed> tags: <distributed> <composite> <ant 1> <ant 2> </componsite> </distributed> More info here: 2. If you want to run multiple builds concurrently, you can use the system->configuration->threads tag to enable concurrent builds. See: http://cruisecontrol.sourceforge.net/main/configxml.html#threads Using the <threads> features, you will also need to create multiple <project> tags in your config.xml. Then multiple projects can execute concurrently. 3. However, inside a single project, only one <builder> will ever be executing at a time. Even if multiple <builders> are configured via <composite>. Was any of these what you need? If not, please ask again, and maybe say more about your use case so I can understand the 'why' behind the question. Regards, Dan Message: 1 Date: Wed, 25 Jan 2012 16:55:47 -0800 (PST) From: Vindhya S <[email protected]> Subject: [Cruisecontrol-user] Fw: distributed cruise: parallel builds To: "[email protected]" <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1" Hi, I am able to run the builds on different agents using distributed cruise control. <composit> ? <distributed> ???? <ant>.... ?? <distributed> ???? <ant>.... </composit> But these builds are starting one after the other. agent2 statring build after completing the build on?agent1. I have requirment to run the builds?on different agents?in parallel(start at the same time). Please let me know how to do that using distributed cruise control. Thanks, -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Wed, 25 Jan 2012 16:59:51 -0800 (PST) From: Vindhya S <[email protected]> Subject: [Cruisecontrol-user] how to start the builds at the same time on different agents.. To: "[email protected]" <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1" Hi, I was?working on cruise control distributed concept to start the builds on different agents at the same time. please let me know how can I start builds on different agents at the same time. Thanks, vin ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Cruisecontrol-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user <schedule interval="60"> <distributed entries="agent.name=num2" </project> ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Cruisecontrol-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user