Bug 9151

Summary: oe-selftest toaster tests failing
Product: [Build System, Metadata & Runtime] Toaster Reporter: Alexandru Roman <alexandru.costinx.roman>
Component: toasterAssignee: Mihail Stanciu <stanciux.mihail>
Status: VERIFIED OBSOLETE QA Contact: Alexandru Roman <alexandru.costinx.roman>
Severity: normal    
Priority: Undecided CC: belen.barros.pena, jessica.zhang, stanciux.mihail
Version: 2.1   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: No (bug/feature does not impact docs)

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.