[test] Update baseline images.
Improve docs and scripts associated with baselines.
MODIFY
docs/developers.rst
docs/developers.rst
@@ -81,7 +81,7 @@ The headless unit tests that require WebGL should be placed in the
Many of these tests compare against a baseline image. If a test is changed or
added, new baselines can be generated and optionally uploaded via the script
-built into ``test/baseline_images.py``.
+built into ``tests/runners/baseline_images.py``.
If a test fails, the specific test will be reported by the test runner, and the
base and test images are saved in the ``images`` subdirectory of the build

MODIFY
docs/provisioning.rst
docs/provisioning.rst
@@ -70,6 +70,7 @@ Install python packages ::
pip install --user girder-client
-Generate new baseline images for the WebGL tests ::
+Remove old baseline and generate new baseline images for the WebGL tests ::
- python test/baseline_images.py --xvfb --generate --upload --verbose
+ rm -r dist/data/base-images
+ python tests/runners/baseline_images.py --xvfb --generate --upload --verbose _build

MODIFY
scripts/datastore.js
scripts/datastore.js
@@ -6,7 +6,7 @@ var tar = require('tar');
var registry = {
'AdderallCities2015.csv': 'c3e984482cc6db1193a6dca2a55396a2baad8541a5c8c679f33750b76f766f40a119ec3e63abbabcd095d752c3df8ce21bf24cbe629502121f24ba90b4b0674c',
- 'base-images.tgz': '9eed90578ac35e96ba701198e2518cb03bf08447d649375cbf7729524139a9951a5b1b580fc03371532dc128a530794e061a8e05b69aa5b5869efbf98245670e',
+ 'base-images.tgz': '2dc58216c90c4d0d2c0f22593b804c0d5f4b39ceacf79e5cd8ebe1673f42bf95dd1bc3072861ac93aa4b371a67c1166607863dbd0ff50d3f8c483fe5f032f724',
'blue.jpg': '867b1f3c568289efc7d0dba97d827a2bc4d83a7465cebcb3b5aec7bac6a38cf70d037d1814402bc97ad1f2f6737cfb5ce97db0a4fb53a716e77fd3ba57a7ab3b',
'cities.csv': '5a665e5feda24f28e5cf4ed0801b67e73bbcf3ea781b2e50d11284214e67b25b68e6a1c48da46e5e4d4d0c54c2ec18f88d292224b4541fb279396cf7b94beac9',
'earthquakes.json': 'f098b6437411384b552419b4a36264c1bb3fed816ccfe9545145175e0b92a0b7ad5ebdcb9dddd0a12a90499143ffa471c02f6e049be5b973db607ff066892500',
@@ -24,7 +24,7 @@ var registry = {
'sample.json': '5d4b00559f17fac607eafe4a9bb933386ebd572fbe545e6138b8eafbbf510074a8ae398c7df0420a017218af83b18cc322633b77007b63a27dfea7a50db70244',
'temperature_data.tsv': 'bde5cdad7c4518694393de83da938bcf5d485b41116b51f0fce4b462737992d2973f076c577040fa816873b196c6397244aa03736fc7750a0eea0ba5cbcc48e4',
'tilefancy.png': '455effa59d421cbb73c6def815813063f1c649363de4007fa0de00cc2e0f24cba745c046266e5a83fc43b121a648017d509d7bf03c30fbee1448817e3f849683',
- 'tiles.tgz': 'b2e8af36ffa81bab566f89f9f386d4175f43619972d288c10588f9af5d20080caaed1bf44f7cd51e410850242add0101ef3f5f053b84f82771978266348136a6',
+ 'tiles.tgz': 'b777fc6b206a89241250bbfeb17fd2dd36966c7697160c7be71bb5c769db88ae2a652874200f73aac3356bc3e09a878be1daf16e11c4178ddc685f8b4370d55e',
'white.jpg': 'ea7a9d7ff76775e742572f89e90cce1248ec99c33b2f486e0fa1d19ab461b87dff324533ecb186a3db14e40a3826da97b5d66566360a201228f60140b0e89942'
};

MODIFY
scripts/get_tiles.py
scripts/get_tiles.py
import os
+import PIL.Image
+
list = """
8: 04 01 2017 09:23:23.812:WARN [web-server]: 404: /base/dist/data/tiles/8/75/94.png
8: 04 01 2017 09:23:23.837:WARN [web-server]: 404: /base/dist/data/tiles/9/150/188.png
@@ -28,9 +30,9 @@ for line in list.split('\n'):
parts = line.split('dist/data/tiles')
if len(parts) < 2:
continue
- tile = parts[1].strip('\'').strip()
- # url = 'http://a.tile.openstreetmap.org' + tile
- url = 'https://stamen-tiles-a.a.ssl.fastly.net/toner-lite ' + tile
+ tile = parts[1].strip("'").strip()
+ url = 'http://a.tile.openstreetmap.org' + tile
+ # url = 'https://stamen-tiles-a.a.ssl.fastly.net/toner-lite ' + tile
path = 'dist/data/tiles' + tile
try:
os.makedirs(os.path.dirname(path))
@@ -38,6 +40,7 @@ for line in list.split('\n'):
pass
print(tile)
os.system('curl -s -o ' + path + ' ' + url)
+ PIL.Image.open(path)
os.chdir('dist/data/tiles')
os.unlink('../tiles.tgz')
os.system('tar -zcvf ../tiles.tgz *')

[test] Update baseline images.

Improve docs and scripts associated with baselines.