[CMake] Strange behavior with Nightly builds

Richard Wackerbarth richard at NFSNet.org
Wed Jun 6 17:31:43 EDT 2012


> NoRulez,
 
A better question is "Why was revision 8 not included in the nightly run?"
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.

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.

On Jun 6, 2012, at 3:49 PM, Stefan Reuschl wrote:

> Am 06.06.2012, 08:57 Uhr, schrieb NoRulez <norulez at me.com>:
> 
>> Hello,
>> 
>> here is the build process of the build server:
>> 
>> 1.) e.g.: last commit at 03:00 pm (svn revision 8) => build is ok
>> 2.) The nightly build starts at 10:00 pm (svn revision 7) => build is ok
>>    Why is the svn revision before the last commit, it should be 8?
>> 3.) In the morning (~ 06:00 am) a continuous build is triggered (SVN revision 8) => build is ok
>>    Why is this continuous build triggered?
>> 
>> The folder structure for the project on the build server is the following:
>> 
>> MyProject
>>    |
>>    +----build
>>    |
>>    +----source
>> 
>> In the CTestScript.cmake if have the following:
>> 
>> if(MODEL STREQUAL "Nightly")
>>    file(REMOVE_RECURSE "${CTEST_BINARY_DIRECTORY}")
>>    set(CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE)
>> endif()
>> 
>> According to my understanding the build directory should be removed and newly created.
>> But I don't know why the revisions are changed during the nightly build.
> 
> That's because the svn update for both Nightly and Continuous are done on
> the common source tree.
> The solution is to have independent source trees:
> 
> MyProject
>     |
>     +----Continuous
>     |        |
>     |        +----build
>     |        |
>     |        +----source
>     |
>     +----Nightly
>     |        |
>     |        +----build
>     |        |
>     |        +----source
> 
> Regards,
>  Stefan
> --
> 
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list