Opened 16 years ago

Closed 16 years ago

#2543 closed enhancement (fixed)

Add GDAL_DOWNLOAD_TEST_DATA=yes when running autotest from the buildbot slaves

Reported by: Even Rouault Owned by: Mateusz Łoskot
Priority: normal Milestone: 1.6.0
Component: Buildbot Version: unspecified
Severity: normal Keywords: test data download
Cc: warmerdam

Description

It could be interesting to define the environment variable GDAL_DOWNLOAD_TEST_DATA=yes before running the autotest, so that the tests relying on data available on web server can run.

Note : this should probably only be set on full buildbot slaves, not incremental ones.

The total size currently downloaded is 38 MB.

Change History (7)

comment:1 by Even Rouault, 16 years ago

Cc: warmerdam added

comment:2 by Even Rouault, 16 years ago

I'm not so sure about my first comment. It could probably be defined for incremental builds too IF the gdrivers/tmp/cache directory doesn't get cleaned at each time. There's a cache mechanism that avoids downloading the data when it's already in the cache.

comment:3 by Mateusz Łoskot, 16 years ago

Status: newassigned

comment:4 by Mateusz Łoskot, 16 years ago

Keywords: test data download added
Resolution: fixed
Status: assignedclosed

Configured for telascience-quick slave only. Even has confirmed it works.

comment:5 by tamas, 16 years ago

Milestone: 1.6.0
Resolution: fixed
Status: closedreopened

I've added this option to the windows slaves however it doesn't appear to cache the downloaded data, which have been deleted right after the particular tests were competed.

I'd require this caching behaviour to work since the lack of this option slows down the test process and requires extra bandwith at the server.

comment:6 by Even Rouault, 16 years ago

Tamas

Hum, strange that the files are not cached. Are you sure that it isn't something in your windows slaves configuration that erases the whole autotest directory before a new test cycles occurs ?

For example, right now, I can see that http://vbkto.dyndns.org:1080/gdal/szekerest-vc80-full/autotest/gcore/tmp/cache and http://vbkto.dyndns.org:1080/gdal/szekerest-vc80-full/autotest/gdrivers/tmp/cache contains a lot of cached files

If you run twice autotest/gcore/bmp_read.py, does the caching works ?

in reply to:  6 comment:7 by tamas, 16 years ago

Resolution: fixed
Status: reopenedclosed

Replying to rouault:

Tamas

Hum, strange that the files are not cached. Are you sure that it isn't something in your windows slaves configuration that erases the whole autotest directory before a new test cycles occurs ?

For example, right now, I can see that http://vbkto.dyndns.org:1080/gdal/szekerest-vc80-full/autotest/gcore/tmp/cache and http://vbkto.dyndns.org:1080/gdal/szekerest-vc80-full/autotest/gdrivers/tmp/cache contains a lot of cached files

If you run twice autotest/gcore/bmp_read.py, does the caching works ?

Yes, it seems to be a buildbot issue. The SVN update is happening in a separate directory and the build directory is overwritten with that. Therefore all of the modification in the build directory is lost. Therefore I've added to copy the cache to the SVN checkout dir in the last step of the build process so as to have these files preserved.

Note: See TracTickets for help on using tickets.