Bug 14831 - recipetool.RecipetoolAppendTests.test_recipetool_appendfile_subdir failure
Summary: recipetool.RecipetoolAppendTests.test_recipetool_appendfile_subdir failure
Status: RESOLVED OBSOLETE
Alias: None
Product: Functional (self) Testing
Classification: QA/Testing
Component: oe-selftest (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Unassigned
QA Contact:
URL:
Whiteboard: AB-INT
Depends on:
Blocks:
 
Reported: 2022-06-09 14:31 UTC by Alexandre Belloni
Modified: 2022-06-09 14:48 UTC (History)
2 users (show)

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 Alexandre Belloni 2022-06-09 14:31:14 UTC
2022-06-09 01:29:34,907 - oe-selftest - INFO - recipetool.RecipetoolAppendTests.test_recipetool_appendfile_subdir (subunit.RemotedTestCase)
2022-06-09 01:29:34,908 - oe-selftest - INFO -  ... FAIL
Stderr:
2022-06-09 01:11:23,844 - oe-selftest - INFO - Adding: "include selftest.inc" in /home/pokybuild/yocto-worker/oe-selftest/build/build-st-399337/conf/local.conf
2022-06-09 01:11:23,845 - oe-selftest - INFO - Adding: "include bblayers.inc" in bblayers.conf
2022-06-09 01:25:29,789 - oe-selftest - INFO - Running bitbake to generate pkgdata
2022-06-09 01:29:34,908 - oe-selftest - INFO - 6: 24/27 279/485 (5.18s) (recipetool.RecipetoolAppendTests.test_recipetool_appendfile_subdir)
2022-06-09 01:29:34,908 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/oe-selftest/build/meta/lib/oeqa/selftest/cases/recipetool.py", line 225, in test_recipetool_appendfile_subdir
    _, output = self._try_recipetool_appendfile('selftest-recipetool-appendfile', '/usr/share/selftest-replaceme-subdir', self.testfile, '', expectedlines, ['testfile'])
  File "/home/pokybuild/yocto-worker/oe-selftest/build/meta/lib/oeqa/selftest/cases/recipetool.py", line 84, in _try_recipetool_appendfile
    return self._try_recipetool_appendcmd(cmd, testrecipe, expectedfiles, expectedlines)
  File "/home/pokybuild/yocto-worker/oe-selftest/build/meta/lib/oeqa/selftest/cases/recipetool.py", line 45, in _try_recipetool_appendcmd
    self.assertNotIn('Traceback', result.output)
  File "/usr/lib64/python3.10/unittest/case.py", line 1119, in assertNotIn
    self.fail(self._formatMessage(msg, standardMsg))
  File "/usr/lib64/python3.10/unittest/case.py", line 675, in fail
    raise self.failureException(msg)
AssertionError: 'Traceback' unexpectedly found in 'NOTE: Starting bitbake server...\nLoading cache...done.\nLoaded 1695 entries from dependency cache.\nParsing recipes...done.\nParsing of 928 .bb files complete (927 cached, 1 parsed). 1695 targets, 50 skipped, 0 masked, 0 errors.\nNOTE: Writing append file /tmp/recipetoolqawia5yiv2/recipes-test/recipetool/selftest-recipetool-appendfile.bbappend\nNOTE: Copying testfile to /tmp/recipetoolqawia5yiv2/recipes-test/recipetool/selftest-recipetool-appendfile/testfile\nException in thread Thread-1:\nTraceback (most recent call last):\n  File "/usr/lib64/python3.10/threading.py", line 1009, in _bootstrap_inner\n    self.run()\n  File "/home/pokybuild/yocto-worker/oe-selftest/build/bitbake/lib/bb/server/process.py", line 698, in startCallbackHandler\n    event = self.reader.get()\n  File "/home/pokybuild/yocto-worker/oe-selftest/build/bitbake/lib/bb/server/process.py", line 722, in get\n    res = self.reader.recv_bytes()\n  File "/usr/lib64/python3.10/multiprocessing/connection.py", line 221, in recv_bytes\n    buf = self._recv_bytes(maxlength)\n  File "/usr/lib64/python3.10/multiprocessing/connection.py", line 426, in _recv_bytes\n    return self._recv(size)\n  File "/usr/lib64/python3.10/multiprocessing/connection.py", line 384, in _recv\n    chunk = read(handle, remaining)\nTypeError: \'NoneType\' object cannot be interpreted as an integer'

This seems to be a bitbake connection issue.
Comment 1 Alexandre Belloni 2022-06-09 14:33:54 UTC
This was on fedora35-ty-2 which has an SSD
Comment 2 Richard Purdie 2022-06-09 14:48:24 UTC
A revised bitbake change fixed this, this was an issue in a server/process.py change that was being tested.