Bug 9151 - oe-selftest toaster tests failing
Summary: oe-selftest toaster tests failing
Status: VERIFIED OBSOLETE
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 2.1
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Mihail Stanciu
QA Contact: Alexandru Roman
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-02-22 13:20 UTC by Alexandru Roman
Modified: 2016-03-16 09:30 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandru Roman 2016-02-22 13:20:47 UTC
Most of oe-selftest toaster tests fail with an error like this:


Traceback (most recent call last):
  File "/home/romanalx/yocto/poky/meta/lib/oeqa/utils/decorators.py", line 106, in wrapped_f
    return func(*args, **kwargs)
  File "/home/romanalx/yocto/poky/meta/lib/oeqa/selftest/_toaster.py", line 257, in test_Package_Build_Id
    packages = Package.objects.filter(~Q(size = -1)).values('id', 'build_id')
  File "/usr/lib/python2.7/site-packages/django/db/models/query.py", line 606, in values
    return self._clone(klass=ValuesQuerySet, setup=True, _fields=fields)
  File "/usr/lib/python2.7/site-packages/django/db/models/query.py", line 960, in _clone
    c._setup_query()
  File "/usr/lib/python2.7/site-packages/django/db/models/query.py", line 1136, in _setup_query
    self.query.add_fields(self.field_names, True)
  File "/usr/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1698, in add_fields
    name.split(LOOKUP_SEP), opts, alias, allow_many=allow_m2m)
  File "/usr/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1472, in setup_joins
    names, opts, allow_many, fail_on_missing=True)
  File "/usr/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1373, in names_to_path
    if field.is_relation and not field.related_model:
  File "/usr/lib/python2.7/site-packages/django/utils/functional.py", line 59, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/lib/python2.7/site-packages/django/db/models/fields/related.py", line 110, in related_model
    apps.check_models_ready()
  File "/usr/lib/python2.7/site-packages/django/apps/registry.py", line 131, in check_models_ready
    raise AppRegistryNotReady("Models aren't loaded yet.")
AppRegistryNotReady: Models aren't loaded yet.


Superficial investigations suggest the tests might need to be rewritten.
Comment 1 Mihail Stanciu 2016-03-10 11:49:51 UTC
These tests have been dropped. They are no longer used.
Comment 2 Alexandru Roman 2016-03-16 09:30:22 UTC
Verified.