@@ -57,23 +57,20 @@ sudo apt-get update
5757apt-get install -y libffi-dev libjpeg-dev zlib1g-dev libmemcached-dev
5858cd $DJANGO_TESTS_DIR /django && pip3 install -e . && pip3 install -r tests/requirements/py3.txt; cd ../../
5959
60- if [[ $USE_SPANNER_EMULATOR != 1 ]]
60+
61+ if [[ $KOKORO_JOB_NAME == * " continuous" * ]]
6162then
62- # Not using the emulator!
63- # Hardcode the max number of workers since Spanner has a very low
64- # QPS for administrative RPCs of 5QPS (averaged every 100 seconds)
65- if [[ $KOKORO_JOB_NAME == * " continuous" * ]]
66- then
67- # Disable continuous build as it creates too many Spanner instances
68- # ("Quota exceeded for quota metric 'Instance create requests' and
69- # limit 'Instance create requests per minute' of service
70- # 'spanner.googleapis.com').
71- export DJANGO_WORKER_COUNT=0
72- else
73- export DJANGO_WORKER_COUNT=5
74- fi
63+ # Disable continuous build as it creates too many Spanner instances
64+ # ("Quota exceeded for quota metric 'Instance create requests' and
65+ # limit 'Instance create requests per minute' of service
66+ # 'spanner.googleapis.com').
67+ export DJANGO_WORKER_COUNT=0
7568else
7669 export DJANGO_WORKER_COUNT=$( ls .kokoro/presubmit/worker* | wc -l)
70+ fi
71+
72+ if [[ $USE_SPANNER_EMULATOR == 1 ]]
73+ then
7774 # Install and start the Spanner emulator
7875 VERSION=0.7.3
7976 wget https://storage.googleapis.com/cloud-spanner-emulator/releases/${VERSION} /cloud-spanner-emulator_linux_amd64-${VERSION} .tar.gz 2& > /dev/null
0 commit comments