Bug 14277 - oe-selftest: test_maintainers fails with oe-core works with poky
Summary: oe-selftest: test_maintainers fails with oe-core works with poky
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: oe-core other (show other bugs)
Version: 3.3
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 3.4 M1
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2021-03-04 22:24 UTC by Randy MacLeod
Modified: 2021-04-18 10:47 UTC (History)
0 users

See Also:
OS type for building Yocto: ---
Type of Regression: ---
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 Randy MacLeod 2021-03-04 22:24:58 UTC
If you run:

oe-selftest -r distrodata.Distrodata.test_maintainers

using poky:
   c8075ed8f1 recipes-support: Add missing HOMEPAGE and DESCRIPTION for recipes
it passes:
   2021-03-04 17:13:37,706 - oe-selftest - INFO - Ran 1 test in 113.987s
   2021-03-04 17:13:37,706 - oe-selftest - INFO - OK
   2021-03-04 17:13:44,049 - oe-selftest - INFO - RESULTS:
   2021-03-04 17:13:44,050 - oe-selftest - INFO - RESULTS - distrodata.Distrodata.test_maintainers: PASSED (111.00s)
   2021-03-04 17:13:44,050 - oe-selftest - INFO - SUMMARY:
   2021-03-04 17:13:44,051 - oe-selftest - INFO - oe-selftest () - Ran 1 test in 113.988s
   2021-03-04 17:13:44,051 - oe-selftest - INFO - oe-selftest - OK - All required tests passed (successes=1, skipped=0, failures=0, errors=0)

but with oe-core:

   6db24928d6 recipes-support: Add missing HOMEPAGE and DESCRIPTION for recipes
and bitbake:
   d0f5c590 fetch2/wget: Avoid crashing when connection drops mid checkstatus

it fails due to the error:
   2021-03-04 17:21:32,878 - oe-selftest - INFO - ======================================================================
   2021-03-04 17:21:32,878 - oe-selftest - INFO - FAIL: test_maintainers (distrodata.Distrodata)
   2021-03-04 17:21:32,878 - oe-selftest - INFO - ----------------------------------------------------------------------
   2021-03-04 17:21:32,879 - oe-selftest - INFO - Traceback (most recent call last):
     File "/buildarea/rmacleod/src/distro/yocto/oe-core.git/meta/lib/oeqa/selftest/cases/distrodata.py", line 116, in test_maintainers
       self.fail("""
   AssertionError: 
   Unable to find recipes for the following entries in maintainers.inc:
   libdnf
   dnf

   Stdout:
   WARNING: Duplicate inclusion for /buildarea/rmacleod/src/distro/yocto/oe-core.git/meta/conf/distro/include/maintainers.inc in /buildarea/rmacleod/src/distro/yocto/oe-core.git/meta/conf/distro/defaultsetup.conf
   Loading cache...done.
   Loaded 0 entries from dependency cache.
   Parsing recipes...done.
   Parsing of 850 .bb files complete (0 cached, 850 parsed). 1478 targets, 24 skipped, 0 masked, 0 errors.
Comment 1 Richard Purdie 2021-04-15 13:14:22 UTC
Issue is caused by different PACKAGE_CLASSES defaults between OE-Core and poky. Patch sent to  make it work in both cases.