Skip to content

attempt to fix E2E multitask test - #2556

Merged
ObadaS merged 2 commits into
developfrom
fix/multitask_test
Sep 28, 2026
Merged

ObadaS merged 2 commits into
developfrom
fix/multitask_test

Conversation

@IdirLISN

@IdirLISN IdirLISN commented Sep 21, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Check if circle ci test are skipping the multitask test or not.
  • In Circle-CI, check Artifatcs > django_workers.log to see the site worker logs

Checklist

  • Code review by me
  • Hand tested by me
  • I'm proud of my work
  • Code review by reviewer
  • Hand tested by reviewer
  • CircleCi tests are passing
  • Ready to merge

@IdirLISN
IdirLISN requested a review from ObadaS September 21, 2026 10:44
@IdirLISN IdirLISN self-assigned this Sep 21, 2026
@Didayolo Didayolo self-assigned this Sep 22, 2026
@Didayolo
Didayolo self-requested a review September 22, 2026 12:41
@ObadaS
ObadaS merged commit 6bb50df into develop Sep 28, 2026
1 check passed
@ObadaS
ObadaS deleted the fix/multitask_test branch November 7, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants