Failed to run tests, following the readme here: https://github.com/wikimedia/analytics-quarry-web
- Download and install Docker and docker-compose (already ships with docker on Windows and Mac)
- Clone the Quarry repository
- Run docker-compose up success, press Ctrl+C to stop.
- Run docker-compose -f docker-compose-test.yml run --rm test
What happens?:
I have such errors:
WARN[0000] Found orphan containers ([web-worker-1 web-web-1 web-mywiki-1 web-db-1 web-redis-1]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. Traceback (most recent call last): File "/usr/lib/python3/dist-packages/py/_error.py", line 65, in checked_call return func(*args, **kwargs) PermissionError: [Errno 13] Permission denied: '/app/.tox/log' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/tox", line 11, in <module> load_entry_point('tox==2.5.0', 'console_scripts', 'tox')() File "/usr/lib/python3/dist-packages/tox/session.py", line 39, in main retcode = Session(config).runcommand() File "/usr/lib/python3/dist-packages/tox/session.py", line 337, in __init__ config.logdir.ensure(dir=1) File "/usr/lib/python3/dist-packages/py/_path/local.py", line 524, in ensure return p._ensuredirs() File "/usr/lib/python3/dist-packages/py/_path/local.py", line 509, in _ensuredirs self.mkdir() File "/usr/lib/python3/dist-packages/py/_path/local.py", line 459, in mkdir py.error.checked_call(os.mkdir, fspath(p)) File "/usr/lib/python3/dist-packages/py/_error.py", line 85, in checked_call raise cls("%s%r" % (func.__name__, args)) py.error.EACCES: [Permission denied]: mkdir('/app/.tox/log',)
I also tried docker-compose -f docker-compose-test.yml run --rm --abort-on-container-exit --exit-code-from test, and got
unknown flag: --abort-on-container-exit
What should have happened instead?:
No errors.
Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:
Docker version 20.10.15, build fd82621d35
Docker Compose version 2.5.0