Opened 5 years ago

Closed 5 years ago

#31116 closed Bug (invalid)

Running test in parallel seems broken.

Reported by: Thierry Bastian Owned by: nobody
Component: Testing framework Version: 3.0
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Running my existing unit tests works fine. As soon as I try to run them with --parallel=4
I'm getting tons of errors

Process SpawnPoolWorker-17:
Traceback (most recent call last):
  File "/usr/local/filewave/python/lib/python3.8/multiprocessing/process.py", line 313, in _bootstrap
    self.run()
  File "/usr/local/filewave/python/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/filewave/python/lib/python3.8/multiprocessing/pool.py", line 114, in worker
    task = get()
  File "/usr/local/filewave/python/lib/python3.8/multiprocessing/queues.py", line 358, in get
    return _ForkingPickler.loads(res)
  File "/Users/thierry/github/FileWave/Django/fwauth/tests/tests_server.py", line 3, in <module>
    from django.contrib.auth.models import Permission
  File "/usr/local/filewave/python/lib/python3.8/site-packages/django/contrib/auth/models.py", line 2, in <module>
    from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager
  File "/usr/local/filewave/python/lib/python3.8/site-packages/django/contrib/auth/base_user.py", line 47, in <module>
    class AbstractBaseUser(models.Model):
  File "/usr/local/filewave/python/lib/python3.8/site-packages/django/db/models/base.py", line 107, in __new__
    app_config = apps.get_containing_app_config(module)
  File "/usr/local/filewave/python/lib/python3.8/site-packages/django/apps/registry.py", line 252, in get_containing_app_config
    self.check_apps_ready()
  File "/usr/local/filewave/python/lib/python3.8/site-packages/django/apps/registry.py", line 135, in check_apps_ready
    raise AppRegistryNotReady("Apps aren't loaded yet.")
django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.

Am I missing something?

Change History (3)

comment:1 by Thierry Bastian, 5 years ago

Resolution: invalid
Status: newclosed

I cannot reproduce it with a clean environment...

comment:2 by Thierry Bastian, 5 years ago

Resolution: invalid
Status: closednew

any guidance would be appreciated...

comment:3 by Mariusz Felisiak, 5 years ago

Component: UncategorizedTesting framework
Resolution: invalid
Status: newclosed
Summary: running test in parallel seems brokenRunning test in parallel seems broken.
Type: UncategorizedBug

Please don't use Trac as a support channel.

Closing per TicketClosingReasons/UseSupportChannels.

Note: See TracTickets for help on using tickets.
Back to Top