Bug 14608

Summary: devtool: fails reading plugin directory
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Paul Eggleton <bluelightning>
Component: Scripts and ToolsAssignee: Unassigned <unassigned>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: alexandre.belloni, randy.macleod, richard.purdie, ross.burton
Version: unspecified   
Target Milestone: 4.1   
Hardware: All   
OS: Multiple   
Whiteboard: AB-INT
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Paul Eggleton 2021-10-21 01:52:38 UTC
From https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/2707/steps/14/logs/stdio

(This was a build of abelloni/master-next, but I can't see anything obvious in the commits that would cause this.)

-------------------------- snip --------------------------
2021-10-21 01:20:22,355 - oe-selftest - INFO - ======================================================================
2021-10-21 01:20:22,355 - oe-selftest - INFO - FAIL: devtool.DevtoolAddTests.test_devtool_add_fetch_simple (subunit.RemotedTestCase)
2021-10-21 01:20:22,355 - oe-selftest - INFO - ----------------------------------------------------------------------
2021-10-21 01:20:22,355 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oeqa/selftest/cases/devtool.py", line 504, in test_devtool_add_fetch_simple
    result = runCmd('devtool status')
  File "/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oeqa/utils/commands.py", line 207, in runCmd
    raise AssertionError("Command '%s' returned non-zero exit status %d:\n%s" % (command, result.status, exc_output))
AssertionError: Command 'devtool status' returned non-zero exit status 1:
NOTE: Starting bitbake server...
Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/oe-selftest-debian/build/scripts/devtool", line 334, in <module>
    ret = main()
  File "/home/pokybuild/yocto-worker/oe-selftest-debian/build/scripts/devtool", line 290, in main
    scriptutils.load_plugins(logger, plugins, pluginpath)
  File "/home/pokybuild/yocto-worker/oe-selftest-debian/build/scripts/lib/scriptutils.py", line 90, in load_plugins
    known_plugins = [plugin_name(p.__name__) for p in plugins]
  File "/home/pokybuild/yocto-worker/oe-selftest-debian/build/scripts/lib/scriptutils.py", line 90, in <listcomp>
    known_plugins = [plugin_name(p.__name__) for p in plugins]
AttributeError: 'NoneType' object has no attribute '__name__'
-------------------------- snip --------------------------
Comment 1 Randy MacLeod 2022-03-17 14:45:35 UTC
This is a continuation of a series of races so even though it only happened once, we are keeping it opened.
Comment 2 Randy MacLeod 2022-03-17 14:46:29 UTC
* was only recorded once, I mean.
Comment 3 Richard Purdie 2022-04-16 10:06:03 UTC
I'm going to guess this happened as a result of https://git.yoctoproject.org/poky/commit/bitbake?id=b731e47eeb3e74d1a53ae88318063f0dd2cdd544 and that when it failed, the server shutdown was slow and a cooker was reused. We can reopen if it happens again.