Π“Ρ€Π°Ρ„ ΠΊΠΎΠΌΠΌΠΈΡ‚ΠΎΠ²

25 ΠšΠΎΠΌΠΌΠΈΡ‚ΠΎΠ²

Автор SHA1 Π‘ΠΎΠΎΠ±Ρ‰Π΅Π½ΠΈΠ΅ Π”Π°Ρ‚Π°
Andrew Williamson f58ecaebf0
switch memcache backend to pymemcache (#17691) 2021-08-11 11:46:08 +01:00
Lisa Chan 9153487c23
RE: Update install doc regarding elasticsearch timed out error (#14357) 2020-05-21 15:44:05 -04:00
Shashwat S 51f193da06 Update install docs for Windows
In case a developer is using Docker Desktop for Windows then
the containers don't prepare /etc/hosts file. Additionally,
elasticsearch faces OOM errors so added a Gotcha for this.
2020-04-12 19:26:40 +05:30
Mathieu Pillard 9cc031333c Switch from IRC to Matrix 2020-02-21 11:02:29 +01:00
mirefly f838f6f704 Fix pytest.org link in docs 2020-01-05 23:06:21 -07:00
yatinmaan b3dbab3523 Update docs 2019-10-06 00:16:54 +05:30
Christopher Grebs 0bd4815d37
Upgrade Celery to 4.3 (#12073)
Upgrade Celery to 4.3.0

This PR upgrades to Celery 4.3, introduces a small hack because of a regression in celery.

This PR does not introduce any helpers to make use of celery workers inside the tests, we delayed that to a later point to unblock the upgrade.

This PR does fix some inconsistencies with elasticsearch mocks along the way as they were making some tests fail (see comment logs), the mocks are now applied and rolled back much less than before which makes them easier to reason about and to debug.

Notes:

 * acks_late now doesn't acknowledge in case of failures or timeouts (which is the case for index_addons). We could use task_acks_on_failure_or_timeout but I figured the new behavior should be fine.
 * any CELERY_ALWAYS_EAGER setting in local_settings.py must be replaced by CELERY_TASK_ALWAYS_EAGER

commit log:

* Implement proper wait_for_tasks helper, make TestTaskQueued work with celery worker
* Revert changes removing threading code from es reindex tests
* Fix es reindex test, correct always eager usage.
* Small cleanups, fix docs, don't reload session worker.
* Ensure docker-compose celery result doesn't use the same database as any potential tests
* Monkeypatch for celery regression
* Actually use our own app where all tasks are already bound to. This also enables logging
* Experiment: Group celery worker tests together with elasticsearch and dont run them multitasked
* Remove envlist as it doesn't add anything to our specific setup
* Fix es-and-celery marker selection
* Remove completely redundant tests
* Fix hanging tasks, let's see what travis thinks... I'll follow up with cleanups and much more docs once tests are actually succeeding
* Define celery.ping in amo.celery, use redis result backend
* Cleanup celery worker implementation a bit.

Mimic our usage of elasticsearch specific tests, this avoids various
necessary workarounds and environment cleanups because django handles
things like settings properly in the first place.

* Untangle es mocks a bit, raise error in case of not properly stopped patches.
* Re-implement state test by using celery manager to wait for results
* Explicitly re-reinitialize the workers event loop and dont reuse anything existing
* Remove celery worker thread specific code.
* Reset default celery result backend setting
2019-09-18 17:36:01 +02:00
Andrew Williamson 6748a96134
move all the make commands that operate on a single container to Makefile-docker (#12121)
* move all the make commands that operate on a single container to Makefile-docker

* add default user to Dockerfile

* revert the PYTHON_COMMAND var change
2019-08-29 12:10:25 +01:00
Christopher Grebs 6f3f687790
Unify database configuration, enable 'read committed' transaction level
Fixes #7158
2018-08-21 07:21:01 +02:00
Christopher Grebs 46087ea63e
Completely remove traces of caching.backends settings.
Most of this work landed already in
6a8fc341da and
91605a4c1f so this is just a follow-up to
remove all other traces.

The removed comment is no longer true, Django received all the necessary
fixes for LocMemCache. On the other hand, LoMemCache is no longer used
for a regular local setup because we are using memcached and try to be
as close to production as possible so this won't change anytime
soon.
2018-06-16 22:56:10 -07:00
Christopher Grebs 17bb6968e5
First part moving to olympia.test 2018-01-26 07:11:48 +01:00
Christopher Grebs 778a94871a
Refactor our tests and code to make better use of settings.TMP_PATH
* Also let the dot in py.test die so that upstream is happy again :)
 * Update tox to 2.9.1
 * Make sure that our urlconf is reset *after* we set MEDIA_ROOT
 * Adapt file extraction handling to new TMP_PATH prefixes
 * Less dump_apps hacks since the apps.json file isn't present at the
   beginning of any test now thanks to temporary paths for every separate
   test
 * Rewrite read-only-mode tests to cope with pytest settings fixture
 * Remove atexit hack from settings_test

This will probably make things a lot easier for ui-tests as well.

Fixes #7205
Fixes #7206
2018-01-05 16:41:35 +01:00
Mac Chaffee d75c7b2407
Add new gotcha with elasticsearch and vm.max_map_count 2017-12-11 00:27:09 -05:00
Apoorva Pandey 1a1fc033d9 Fix link to docker commands in doc (#6563) 2017-10-03 09:40:19 +01:00
Andrew Williamson e971a1c054 Make Makefile cleaner by splitting tasks between host and container (#5634) 2017-06-15 09:41:40 +01:00
Christopher Grebs 0fad54879b Correct reference to install-with-docker section. Fixes #3897 2016-10-31 10:58:34 +01:00
Stuart Colville f3db2381ef Fix up docs and make the common case the default 2016-09-05 17:23:48 +01:00
Stuart Colville ca1fc1a343 Add docs for docker for mac + windows and change port config 2016-09-02 18:28:41 +01:00
ka7 a6b707331f some trivial spelling fixes (#3107)
some trivial spelling fixes
2016-07-16 19:54:30 +02:00
Christopher Grebs 31e104b1ad Set OLYMPIA_SITE_URL to olympia.dev by default. (#2826)
This may fix #2792.
2016-06-02 09:37:03 +02:00
Matthew Riley MacPherson 62cd0f41a3 Make some minor copywriting tweaks in docs 2016-03-17 16:08:16 +01:00
Stuart Colville 7bb0145a9c Fix typo 2016-03-02 09:04:12 +00:00
Stuart Colville 28b35797c0 Add some notes about the checkout needing to be within the share 2016-02-29 18:30:45 +00:00
Christopher Grebs d8683a4cd2 More renames from olympia to addons-server.
Fixes #1748 and #1750
2016-02-24 17:50:22 +01:00
Mark Striemer 9b4bf3c59b Set COMPOSE_PROJECT_NAME based on root directory
Document that you might need to set COMPOSE_PROJECT_NAME in some cases
too.
2016-02-12 15:20:01 -06:00