<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal style='text-autospace:none'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>I hadn’t heard any suggestions
from anyone so I dove in the CTest source code (cmake-2.8.1) and found the
answer. I recommend that this information below about how ctest_update is
implemented (at least for subversion) should either be logged in the stdout
stream (please show actual svn command) or be included in the documentation
somewhere. This issue had been a problem for us for over a week and we
wasted a lot of time trying to figure it out.<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>In </span></font><font size=1
face=Consolas><span style='font-size:8.0pt;font-family:Consolas'>cmCTestSVN::UpdateImpl()<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=1 face=Consolas><span
style='font-size:8.0pt;font-family:Consolas'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=1 face=Consolas><span
style='font-size:8.0pt;font-family:Consolas'> <font color=green><span
style='color:green'>// Specify the start time for nightly testing.</span></font><o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=1 face=Consolas><span
style='font-size:8.0pt;font-family:Consolas'> <font color=blue><span
style='color:blue'>if</span></font>(<font color=blue><span style='color:blue'>this</span></font>->CTest->GetTestModel()
== cmCTest::NIGHTLY)<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=1 face=Consolas><span
style='font-size:8.0pt;font-family:Consolas'> {<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=1 face=Consolas><span
style='font-size:8.0pt;font-family:Consolas'> args.push_back(<font
color="#a31515"><span style='color:#A31515'>"-r{"</span></font> + <font
color=blue><span style='color:blue'>this</span></font>->GetNightlyTime() + <font
color="#a31515"><span style='color:#A31515'>" +0000}"</span></font>);<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=1 face=Consolas><span
style='font-size:8.0pt;font-family:Consolas'> }<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>So according to this code, CTest uses the nightly build
start time variable CTEST_NIGHTLY_START_TIME to svn update the source directory
to the revision at that time. We also use CTest for on-demand experimental
builds, which svn updated with no problems, leaving us very confused.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I found a related CDash mailing list posting from 2008 that pretty
much threw us for another red herring:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><a
href="http://public.kitware.com/pipermail/cdash/2008-May/000137.html">http://public.kitware.com/pipermail/cdash/2008-May/000137.html</a><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<pre><font size=2 face="Courier New"><span style='font-size:10.0pt'>“CDash doesn't use the CTEST_NIGHTLY_START_TIME anymore, since it's a <o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>server side option.<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>You can see how to change the nightly start time of your dashboard from <o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>CDash project's page:<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'><a
href="http://public.kitware.com/Wiki/CDash:Administration#Creating_a_project">http://public.kitware.com/Wiki/CDash:Administration#Creating_a_project</a><o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>Let us know if you still have any issues,<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>Julien”<o:p></o:p></span></font></pre>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>This information is not correct. The
client-side CTEST_NIGHTLY_START_TIME apparently _<i><span style='font-style:
italic'>is</span></i>_ used to determine the revision number when svn updating.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Luke<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Luke Kucalaba <br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, May 04, 2010 11:16
AM<br>
<b><span style='font-weight:bold'>To:</span></b> cmake@cmake.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> CTest_Update not updating
to head revision (svn)</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi, I have a question about using CTest for automatic
nightly builds. Our company has been using CMake/CTest/CDash tools for
about a year now with no problems when the nightly build time was at 1am.
We moved the nightly build time to 9pm because now we have a lot more software
to build and many more compilers. We changed all the projects nightly
start time (on the CDash server) to 6pm to ensure the nightly builds show up
for the next day. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>However the problem we are seeing is that CTest_Update does not
seem to update to the head revision anymore, but rather seems to update to the
previous day’s revision? I have found a few posts suggesting that
the variable CTEST_NIGHTLY_START_TIME is not used anymore? Is this
true? All of our ctest config files had set this value to midnight
because I think it was required in older versions of CMake/CTest? Is it
possible that this old behavior/capability of using this client-side variable
is still present and is causing our svn update problem? From the output
log of the svn update command it appears that the nightly start time is
affecting the svn update operation to update to yesterday’s
revision. Can I just remove the Set (CTEST_NIGHTLY_START_TIME) command
from our client update ctest scripts to fix this problem? Will older
versions of CMake require this variable to work?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Below is the log output of the CTest/CDash update script we
use to recursively update our repositories. You can see where the nightly
start time is set, and how the old revision number is newer than the new
revision number.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<pre><font size=2 face="Courier New"><span style='font-size:10.0pt'>SetCTestConfiguration:SourceDirectory:N:/dsci/repo/common/scripts/CDashBuilder<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>SetCTestConfiguration:BuildDirectory:N:/dsci/repo/common/scripts/CDashBuilder/ctest<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>Run dashboard with model Nightly<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> Source directory: N:/dsci/repo/common/scripts/CDashBuilder<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> Build directory: N:/dsci/repo/common/scripts/CDashBuilder/ctest<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> Reading ctest configuration file: N:/dsci/repo/common/scripts/CDashBuilder/CTestConfig.cmake<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>SetCTestConfigurationFromCMakeVariable:NightlyStartTime:CTEST_NIGHTLY_START_TIMESetCTestConfiguration:NightlyStartTime:00:00:00 EDT<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>SetCTestConfigurationFromCMakeVariable:Site:CTEST_SITESetCTestConfiguration:Site:192.168.15.187<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>SetCTestConfigurationFromCMakeVariable:BuildName:CTEST_BUILD_NAMESetCTestConfiguration:BuildName:WindowsXP-N__dsci_repo_common_ext_dll<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> Site: 192.168.15.187<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> Build name: WindowsXP-N__dsci_repo_common_ext_dll<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>Determine Nightly Start Time<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> Specified time: 00:00:00 EDT<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> Use Nightly tag: 20100503-0400<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>SetCTestConfiguration:SourceDirectory:N:/dsci/repo/common/ext/dll<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>SetCTestConfigurationFromCMakeVariable:SVNCommand:CTEST_SVN_COMMANDSetCTestConfiguration:SVNCommand:svn<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>SetCTestConfiguration:BuildDirectory:N:/dsci/repo/common/scripts/CDashBuilder/ctest<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>SetCTestConfiguration:SourceDirectory:N:/dsci/repo/common/ext/dll<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> Updating the repository: N:/dsci/repo/common/ext/dll<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> Use SVN repository type<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> Old revision of repository is: 27078<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>Determine Nightly Start Time<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> Specified time: 00:00:00 EDT<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> New revision of repository is: 27054<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> Gathering version information (one . per revision):<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> <o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> Found 6 updated files<o:p></o:p></span></font></pre>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Any advice/suggestions you could offer would be greatly
appreciated. Thanks!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Sincerely, <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Luke Kucalaba<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Senior Software Engineer<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>D&S Consultants Inc<o:p></o:p></span></font></p>
<p class=MsoNormal><st1:place w:st="on"><st1:City w:st="on"><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>Columbus</span></font></st1:City><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>, <st1:State
w:st="on">Ohio</st1:State></span></font></st1:place><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
</div>
</body>
</html>