Repository navigation
attempt to fix E2E multitask test - #2556
Merged
Merged
Conversation
ObadaS
force-pushed
the
fix/multitask_test
branch
from
September 28, 2026 14:00
55afd80 to
6dadb57
Compare
ObadaS
approved these changes
Sep 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is made to fix the E2E configuration to not skip the multitask tests anymore.
Issues this PR resolves
#2541
There is two problems resolved by this PR.
CELERY_TASK_ALWAYS_EAGER = True is hardcoded in src/settings/test.py and env_circleci uses the following parameter DJANGO_SETTINGS_MODULE=settings.test.
This makes the test going through django instead of the site worker which is not relevant in regards of the production workflow.
Multitask tests were skipped because of this header:
@pytest.mark.skipif(ci, reason="Works locally but fails in the CI because of CELERY_TASK_ALWAYS_EAGER = True")
Which has been removed in this PR.
This causes the test to be skipped in the CI but working in local.
By changing the eager mode configuration we solve both problems.
Now in src/settings/test.py, we set CELERY_TASK_ALWAYS_EAGER as True by default and in cicle-ci conf we set CELERY_TASK_ALWAYS_EAGER to False to enable the site worker in CI.
A checklist for hand testing
Checklist