Red Hat Bugzilla – Bug 436358
ctest gets NightlyStartTime value wrong
Last modified: 2008-06-26 04:31:39 EDT
When you tell ctest to perform a Nightly test (-D Nightly), it is supposed to
use the NightlyStartTime parameter in the DartConfiguration.tcl file to
normalize the start times, to ensure that all nightly runs get submitted to the
dashboard with a consistent time. Specifically, the reported time is supposed
to be set to the most recently occurring instance of NightlyStartTime.
So, for example, if NightlyStartTime is set to 9pm EST, and a build was started
at 1am EST on a Wednesday, the build should be reported to the dashboard with an
official start time of 9pm Tuesday.
Instead, what is happening is the build timestamp is being set to a value of
23:59 GMT, or 18:59 EST. I've attached a sample output XML file from such a
run, with NightlyStartTime set to '21:00:00 EST', but I've tried numerous other
values (both different time values and different timezones, including GMT).
Regardless of how I configure it, the BuildStamp element always has a time value
of 23:59 UTC.
This is with cmake-2.4.7-3.fc8
Created attachment 297086 [details]
Sample report with incorrect BuildStamp
Please test with 2.4.8 that has just been pushed. If it is still a problem,
this really needs to get reported upstream.
Will do - is this update in fedora 8 updates, or should I grab the build from
fedora 9 alpha?
F8 updates - just got released today.
Okay, I installed cmake-2.4.8-1.fc8 and tried again. The results were identical.
In addition, I was able to get a sample XML results file from another user,
using ctest 2.4.8 on FreeBSD, and identical configuration files. On that
system, the BuildStamp value was generated correctly.
Created attachment 297138 [details]
ctest 2.4.8 on fedora with incorrect buildstamp
Created attachment 297139 [details]
ctest 2.4.8 on freebsd with correct buildstamp
I'm afraid I have no experience with ctest -D and Dart. Could you attach a
Sure. The simplest way to generate a file is
ctest -D NightlyConfigure
The output files will be created as Testing/<build stamp>/*.xml
Created attachment 297234 [details]
ctest dashboard configuration
According to the cmake folks, the directory this is run in needs to be a CVS/svn
checked out directory. Is that the case? Can you attach the output of "ctest
-V -D Nightly"?
Created attachment 297951 [details]
ctest -V -D Nightly output
Just to clarify, you can see the problem in these lines:
Determine Nightly Start Time
Specified time: 21:00:00 EST
Create new tag: 20080312-2359 - Nightly
The nightly start time of 21:00:00 EST matches the config file, but the tag is
then generated with a timestamp that doesn't match.
Upstream bug: http://public.kitware.com/Bug/view.php?id=6583
cmake-2.4.8-2.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update cmake'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F8/FEDORA-2008-5015
That version fixes the problem for me.
cmake-2.4.8-2.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.