Re: Losing Modifications during Build?
Julian Simpson <[email protected]> Fri, 24 Feb 2012 15:36:13 +0000
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <CANwBkz9_7eAsHd2ony2spW0XENJgPGQFXyB-XJZ+waTrr5LvJw@mail.gmail.com> |
On 24 February 2012 14:46, Glenn Boysko <[email protected]> wrote: > Julian:**** > > ** ** > > Thanks for the reply. I understand your comment about NTP and time > synchronization, but how does SVNBootstrapper affect this? I can load a > file in during bootstrap (like build.xml), but I wasn’t going to bootstrap > all files. Should I? > Yes. Because if you let the tool do the bootstrapping, it guaruntees that the timestamps are ok. Otherwise, CruiseControl will think you have time t, and you'll be dealing with time t+3 in your working copy because SVN is so slow to update. > **** > > ** ** > > I already had localWorkingCopy set on the SVNBootstrapper element. Also, I > had localWorkingCopy set on the svn element inside ModificationSet. > ModificationSet doesn’t take a localWorkingCopy attribute.**** > > ** > That's exactly right. > ** > > I think I have a more basic question. Should I have a call to update my > entire code base as part of the Ant script which is invoked from the <ant> > element in <schedule>? I have been doing that and now I’m wondering if that > is wrong. **** > > ** > No. I don't believe that your build tool should need to mess about with the Version Control system. And if it doesn't, the CI tool can make reasonable assumptions about it's checkout. > ** > > One final question: what is the expected behavior if checkins occur after > the build process has started? Start another build immediately afterwards > (assuming it has satisfied the quietperiod)? That seems like the only > reasonable thing to do. Otherwise, you wait for hold long? Until another > checkin occurs? If CC starts to look for checkins AFTER the build has > finished, clearly it won’t find the checkin that occurred during the build. > It's as you describe. poll -> detect change -> build -> poll. Changes that happen during the build will be collected in the next subsequent build. If not, you're doing something wrong. Best Julian. > **** > > ** ** > > Thanks, > Glenn**** > > ** ** > > *From:* Julian Simpson [mailto:[email protected]] > *Sent:* Friday, February 24, 2012 3:27 AM > *To:* [email protected] > *Subject:* Re: [Cruisecontrol-user] Losing Modifications during Build?**** > > ** ** > > ** ** > > On 21 February 2012 23:24, Glenn Boysko <[email protected]> wrote: > **** > > Hello CC Users:**** > > **** > > I am encountering on occasions the loss of a triggered build from a > modification. I can’t tell whether I am not correctly configuring my > project or it is an inherent limitation in CruiseControl.**** > > **** > > I am using Subversion for revision control. I have a schedule interval of > 10 minutes and a quiet period of 5 minutes.**** > > **** > > It appears that if a checkin occurs while a build is in progress, > CruiseControl seems to “lose” it. It doesn’t trigger a follow-up build. Nor > does it list the checkin on the set of modified files in the subsequent > build that is triggered.**** > > **** > > Has anyone seen this behavior before?**** > > **** > > Pretty sure I have. > > Biggest thing to check out is time synch. Are both the SVN server and > CruiseControl using the same time? You want NTP running on both machines. > > Also, use the SVNBootstrapper > > And, make sure localWorkingCopy is set on both the Bootstrapper and the > ModificationSet. > > Julian. **** > > **** > > Is CruiseControl working as expected?**** > > **** > > I have buildAfterFailed set to false for the project (with quietPeriod on > modificationset set to “300” and interval on schedule set to “600”). **** > > **** > > Regards, > Glenn**** > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > 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-d2d > _______________________________________________ > Cruisecontrol-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user**** > > > > > -- **** > > Julian Simpson**** > > The Build Doctor Ltd.**** > > http://www.build-doctor.com**** > > [email protected]**** > > (+44) 207 183 0323**** > > ** ** > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Cruisecontrol-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user > > -- Julian Simpson The Build Doctor Ltd. http://www.build-doctor.com [email protected] (+44) 207 183 0323 ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Cruisecontrol-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user