annotate pylearn/misc/do_nightly_build @ 1529:9737834dcb0f

Add the total test time in the buildbot.
author Frederic Bastien <nouiz@nouiz.org>
date Mon, 11 Mar 2013 16:56:54 -0400
parents 18c638290706
children
rev   line source
1443
73851579bc23 added buildbot script
Frederic Bastien <nouiz@nouiz.org>
parents:
diff changeset
1 #!/bin/bash
73851579bc23 added buildbot script
Frederic Bastien <nouiz@nouiz.org>
parents:
diff changeset
2 #we set the compiledir to the /Tmp dir to make the test faster by bypassing the nfs network.
73851579bc23 added buildbot script
Frederic Bastien <nouiz@nouiz.org>
parents:
diff changeset
3 date
1529
9737834dcb0f Add the total test time in the buildbot.
Frederic Bastien <nouiz@nouiz.org>
parents: 1518
diff changeset
4 START=`date +%s`
1443
73851579bc23 added buildbot script
Frederic Bastien <nouiz@nouiz.org>
parents:
diff changeset
5 ROOT_CWD=/Tmp/nightly_build
1446
6e50d209b5f1 generalized the buildbot script following code review in Theano.
Frederic Bastien <nouiz@nouiz.org>
parents: 1445
diff changeset
6 COMPILEDIR=/Tmp/lisa_theano_compile_dir_pylearn
1515
1de26774035f Use theano-nose instead of nosetests, and disable warning.
Pascal Lamblin <lamblinp@iro.umontreal.ca>
parents: 1481
diff changeset
7 NOSETESTS=${ROOT_CWD}/Theano/bin/theano-nose
1443
73851579bc23 added buildbot script
Frederic Bastien <nouiz@nouiz.org>
parents:
diff changeset
8
1446
6e50d209b5f1 generalized the buildbot script following code review in Theano.
Frederic Bastien <nouiz@nouiz.org>
parents: 1445
diff changeset
9
1515
1de26774035f Use theano-nose instead of nosetests, and disable warning.
Pascal Lamblin <lamblinp@iro.umontreal.ca>
parents: 1481
diff changeset
10 FLAGS=warn.ignore_bug_before=0.5,compiledir=${COMPILEDIR}
1445
771c6c006032 fix PYTHONPATH.
Frederic Bastien <nouiz@nouiz.org>
parents: 1444
diff changeset
11 export PYTHONPATH=${ROOT_CWD}/Theano:${ROOT_CWD}/Pylearn:$PYTHONPATH
1443
73851579bc23 added buildbot script
Frederic Bastien <nouiz@nouiz.org>
parents:
diff changeset
12
1480
51f1453fd6f6 Print the Theano and Pylearn version in the buildbot.
Frederic Bastien <nouiz@nouiz.org>
parents: 1446
diff changeset
13 cd ${ROOT_CWD}/Theano
51f1453fd6f6 Print the Theano and Pylearn version in the buildbot.
Frederic Bastien <nouiz@nouiz.org>
parents: 1446
diff changeset
14 hg summary
51f1453fd6f6 Print the Theano and Pylearn version in the buildbot.
Frederic Bastien <nouiz@nouiz.org>
parents: 1446
diff changeset
15 cd ../Pylearn
51f1453fd6f6 Print the Theano and Pylearn version in the buildbot.
Frederic Bastien <nouiz@nouiz.org>
parents: 1446
diff changeset
16 hg summary
51f1453fd6f6 Print the Theano and Pylearn version in the buildbot.
Frederic Bastien <nouiz@nouiz.org>
parents: 1446
diff changeset
17 cd ..
51f1453fd6f6 Print the Theano and Pylearn version in the buildbot.
Frederic Bastien <nouiz@nouiz.org>
parents: 1446
diff changeset
18
1443
73851579bc23 added buildbot script
Frederic Bastien <nouiz@nouiz.org>
parents:
diff changeset
19 echo "executing nosetests with mode=FAST_COMPILE"
1446
6e50d209b5f1 generalized the buildbot script following code review in Theano.
Frederic Bastien <nouiz@nouiz.org>
parents: 1445
diff changeset
20 #THEANO_FLAGS=${FLAGS},mode=FAST_COMPILE ${NOSETESTS} Pylearn
1443
73851579bc23 added buildbot script
Frederic Bastien <nouiz@nouiz.org>
parents:
diff changeset
21 echo "executing nosetests with mode=FAST_RUN"
1446
6e50d209b5f1 generalized the buildbot script following code review in Theano.
Frederic Bastien <nouiz@nouiz.org>
parents: 1445
diff changeset
22 THEANO_FLAGS=${FLAGS},mode=FAST_RUN ${NOSETESTS} --with-coverage --cover-package=theano --cover-package=pylearn Pylearn
1443
73851579bc23 added buildbot script
Frederic Bastien <nouiz@nouiz.org>
parents:
diff changeset
23 echo "executing nosetests with mode=FAST_RUN,floatX=float32"
1446
6e50d209b5f1 generalized the buildbot script following code review in Theano.
Frederic Bastien <nouiz@nouiz.org>
parents: 1445
diff changeset
24 THEANO_FLAGS=${FLAGS},mode=FAST_RUN,floatX=float32 ${NOSETESTS} Pylearn
1443
73851579bc23 added buildbot script
Frederic Bastien <nouiz@nouiz.org>
parents:
diff changeset
25
73851579bc23 added buildbot script
Frederic Bastien <nouiz@nouiz.org>
parents:
diff changeset
26 #we change the seed and record it everyday to test different combination. We record it to be able to reproduce bug caused by different seed. We don't want multiple test in DEBUG_MODE each day as this take too long.
73851579bc23 added buildbot script
Frederic Bastien <nouiz@nouiz.org>
parents:
diff changeset
27 seed=$RANDOM
73851579bc23 added buildbot script
Frederic Bastien <nouiz@nouiz.org>
parents:
diff changeset
28 echo "executing nosetests with mode=DEBUG_MODE with seed of the day $seed"
1481
444222497167 Disable the flag DebugMode.check_preallocated_output to make the buildbot faster.
Frederic Bastien <nouiz@nouiz.org>
parents: 1480
diff changeset
29 THEANO_FLAGS=${FLAGS},unittests.rseed=$seed,mode=DEBUG_MODE,DebugMode.check_strides=0,DebugMode.patience=3,DebugMode.check_preallocated_output= ${NOSETESTS} Pylearn
1529
9737834dcb0f Add the total test time in the buildbot.
Frederic Bastien <nouiz@nouiz.org>
parents: 1518
diff changeset
30
9737834dcb0f Add the total test time in the buildbot.
Frederic Bastien <nouiz@nouiz.org>
parents: 1518
diff changeset
31 echo
9737834dcb0f Add the total test time in the buildbot.
Frederic Bastien <nouiz@nouiz.org>
parents: 1518
diff changeset
32 END=`date +%s`
9737834dcb0f Add the total test time in the buildbot.
Frederic Bastien <nouiz@nouiz.org>
parents: 1518
diff changeset
33 python -c "print 'Total test time: %dm %ds'%((${END} - ${START})/60, (${END} - ${START})%60)"
1518
18c638290706 add end time.
Frederic Bastien <nouiz@nouiz.org>
parents: 1515
diff changeset
34 date