<div dir="ltr">Just following up on this, I realized the tests were stopping because I was passing the --failfast option when running them.<div><br></div><div>Still, this error affects the overwhelming majority of GeoNode's unit tests for me, so it's a blocker for me for running them. Changing the celery and django-celery-beat versions did not have any affect.</div><div><br></div><div>Has anyone else seen this error or am I doing something wrong? Perhaps there is a config option for celery I need to set?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 31, 2019 at 12:13 PM Travis Brundage <<a href="mailto:travislbrundage@gmail.com">travislbrundage@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hey all,<br></div><div><br></div><div>So I have been struggling a bit with figuring out how to run GeoNode's test suite properly, and I've also run into multiple problems. I am still not entirely clear on what I am supposed to be doing to run GeoNode's tests, but here is what I have done:</div><div><br></div><div>In .env: SET_DOCKER_ENV=development</div><div><br></div><div>Starting GeoNode docker: docker-compose -f docker-compose.async.yml -f docker-compose.development.yml up -d</div><div><br></div><div>Configuring the system for running tests:</div><div>1. Install python 2.7 on the system. Checking python version is 2.7.x: python --version</div><div>2. Create a python virtual environment for GeoNode dev</div><div>2a. Install virtualenv: sudo apt-get install python-virtualenv</div><div>2b. Create Python2.7 virutalenv: virtualenv -p `which python2.7` geonode-env</div><div>2c. Activate the environment: source geonode-env/bin/activate</div><div>3. In geonode/ install the requirements: pip install -r requirements.txt</div><div>4. Configure GDAL bindings (reference <a href="https://mothergeo-py.readthedocs.io/en/latest/development/how-to/gdal-ubuntu-pkg.html" target="_blank">https://mothergeo-py.readthedocs.io/en/latest/development/how-to/gdal-ubuntu-pkg.html</a> ):</div><div>    sudo add-apt-repository ppa:ubuntugis/ppa && sudo apt-get update</div><div>    sudo apt-get update</div><div>    sudo apt-get install gdal-bin</div><div>    sudo apt-get install libgdal-dev</div><div>    export CPLUS_INCLUDE_PATH=/usr/include/gdal</div><div>    export C_INCLUDE_PATH=/usr/include/gdal</div><div>    pip install GDAL==2.4.2</div><div><br></div><div>Finally, running tests: coverage run --branch --source=geonode manage.py test <geonode.app.tests> --noinput</div><div>(replacing with app I want to test)</div><div><br></div><div>Btw, I added this to our running document of notes for GeoNode, but please point out if I am doing something incorrectly: <a href="https://docs.google.com/document/d/1h4xhXTejSkfqmEQmzl6CkcySc9_COZldm_5qvFI3fB8/" target="_blank">https://docs.google.com/document/d/1h4xhXTejSkfqmEQmzl6CkcySc9_COZldm_5qvFI3fB8/</a></div><div><br></div><div>For a while this was mostly working (just slow, some problems in the setUp causing that). However, now I have run into a blocking issue. I don't know what I have done or changed other than pulling recent commits. Celery is complaining about an improperly configured file-system backend.</div><div><br></div><div>    ImproperlyConfigured: The configured path for the file-system backend does not work correctly, please make sure that it exists and has the correct permissions.</div><div><br></div><div>Full stack trace: <a href="https://gist.github.com/travislbrundage/81fe15cf06c5179e9b8cf16060f98d5c" target="_blank">https://gist.github.com/travislbrundage/81fe15cf06c5179e9b8cf16060f98d5c</a></div><div><br></div><div>Every test I run has the same result. Anyone have pointers for what this might mean is wrong with my GeoNode?</div>
</blockquote></div>