On Thu, Jun 14, 2012 at 3:07 AM, NoRulez <span dir="ltr"><<a href="mailto:norulez@me.com" target="_blank">norulez@me.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>I think i fond the problem, but I don't know how to solve it.<br><br>I have the following defined in the CTestScript.cmake:<br><span style="font-size:12px;font-family:courier new,monospace;color:rgb(130,130,130)">if(${NEED_REPOSITORY_CHECKOUT})</span><br>
<span style="font-size:12px;font-family:courier new,monospace;color:rgb(130,130,130)"> set(CTEST_CHECKOUT_COMMAND "${CTEST_UPDATE_COMMAND} co ${REPOSITORY_URL} \"${CTEST_SOURCE_DIRECTORY}\" -r HEAD")</span><br>
<span style="font-size:12px;font-family:courier new,monospace;color:rgb(130,130,130)">else()</span><br><span style="font-size:12px;font-family:courier new,monospace;color:rgb(130,130,130)"> set(CTEST_CHECKOUT_COMMAND "${CTEST_UPDATE_COMMAND} update")</span><br>
<span style="font-size:12px;font-family:courier new,monospace;color:rgb(130,130,130)">endif()</span></div></div></blockquote><div><br></div><div><br></div><div>The CTEST_CHECKOUT_COMMAND should only be used for checkout. It should not be used for update.</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><br><br>which seems to be correct, but in CDash the update command looks like:<br>
<b>Update Command: </b>"C:/Program Files/Subversion/bin/svn.exe" "update" "--non-interactive" "-r{2012-06-12 23:00:00 +0000}"<br></div></div></blockquote><div><br></div><div><br></div>
<div>This comes from the ctest_update command, and it intentionally uses the nightly date stamp to guarantee a consistent snapshot across clients. Otherwise, you could get different source trees on different machines depending on the timing of running the ctest_update command.</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><br>From the svn documentation:<br><span style="color:rgb(130,130,130);font-family:courier new,monospace;font-size:12px"> If no revision is given, bring working copy up-to-date with HEAD rev.</span><br>
<span style="color:rgb(130,130,130);font-family:courier new,monospace;font-size:12px"> Else synchronize working copy to revision given by -r.</span><br><br>So, how could I remove the last command line argument ("-r{2012-06-12 23:00:00 +0000}")?<div class="im">
<br><br>Thanks in advance<br><br>Best Regards<br><br><br></div></div><div><br>Am 06. Jun 2012 um 23:31 schrieb Richard Wackerbarth <richard@NFSNet.org>:<div><div class="h5"><br><br><div><blockquote type="cite"><div>
<div>> NoRulez,<br> <br> A better question is "Why was revision 8 not included in the nightly run?"<br> Using one source tree for both continuous and nightly assumes that there will be no continuous runs between the last update incorporated in the nightly run and the time at which the nightly run is performed. It appears that you are not suspending continuous runs between the nightly epoch and the time that you perform the nightly run.<br>
<br> By following Stefan's scheme of two complete trees, each tree meets the above criteria because the nightly version never does continuous runs and the continuous version never does nightly runs.<br> <br> On Jun 6, 2012, at 3:49 PM, Stefan Reuschl wrote:<br>
<br> > Am 06.06.2012, 08:57 Uhr, schrieb NoRulez <<a href="mailto:norulez@me.com" target="_blank">norulez@me.com</a>>:<br> > <br> >> Hello,<br> >> <br> >> here is the build process of the build server:<br>
>> <br> >> 1.) e.g.: last commit at 03:00 pm (svn revision 8) => build is ok<br> >> 2.) The nightly build starts at 10:00 pm (svn revision 7) => build is ok<br> >> Why is the svn revision before the last commit, it should be 8?<br>
>> 3.) In the morning (~ 06:00 am) a continuous build is triggered (SVN revision 8) => build is ok<br> >> Why is this continuous build triggered?<br> >> <br> >> The folder structure for the project on the build server is the following:<br>
>> <br> >> MyProject<br> >> |<br> >> +----build<br> >> |<br> >> +----source<br> >> <br> >> In the CTestScript.cmake if have the following:<br> >> <br> >> if(MODEL STREQUAL "Nightly")<br>
>> file(REMOVE_RECURSE "${CTEST_BINARY_DIRECTORY}")<br> >> set(CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE)<br> >> endif()<br> >> <br> >> According to my understanding the build directory should be removed and newly created.<br>
>> But I don't know why the revisions are changed during the nightly build.<br> > <br> > That's because the svn update for both Nightly and Continuous are done on<br> > the common source tree.<br> > The solution is to have independent source trees:<br>
> <br> > MyProject<br> > |<br> > +----Continuous<br> > | |<br> > | +----build<br> > | |<br> > | +----source<br> > |<br> > +----Nightly<br> > | |<br> > | +----build<br> > | |<br> > | +----source<br>
> <br> > Regards,<br> > Stefan<br> > --<br> > <br> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br> > <br> > Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
> <br> > Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br> > <br> > Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br> <br> --<br> <br> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br> <br> Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br> Follow this link to subscribe/unsubscribe:<br> <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><div style="width:0px;min-height:0px"> </div></div>
</div></blockquote></div></div></div></div></div><br>--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>