Bug 14090

Summary: devtool.DevtoolExtractTests.test_devtool_deploy_target selftest failure
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Richard Purdie <richard.purdie>
Component: coreAssignee: Stacy <stacygaikovaia>
Status: RESOLVED OBSOLETE QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, randy.macleod, stacygaikovaia
Version: 3.2   
Target Milestone: 3.4 M1   
Hardware: x86   
OS: Multiple   
Whiteboard: AB-INT backport 3.2
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Richard Purdie 2020-10-15 08:51:20 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/56/builds/1222

2020-10-15 02:55:11,665 - oe-selftest - INFO - ======================================================================
2020-10-15 02:55:11,665 - oe-selftest - INFO - FAIL: devtool.DevtoolExtractTests.test_devtool_deploy_target (subunit.RemotedTestCase)
2020-10-15 02:55:11,666 - oe-selftest - INFO - ----------------------------------------------------------------------
2020-10-15 02:55:11,666 - 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/devtool.py", line 1395, in test_devtool_deploy_target
    self.assertEqual(filelist1, filelist2)
  File "/usr/lib64/python3.8/unittest/case.py", line 912, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/usr/lib64/python3.8/unittest/case.py", line 1118, in assertListEqual
    self.assertSequenceEqual(list1, list2, msg, seq_type=list)
  File "/usr/lib64/python3.8/unittest/case.py", line 1100, in assertSequenceEqual
    self.fail(msg)
  File "/usr/lib64/python3.8/unittest/case.py", line 753, in fail
    raise self.failureException(msg)
AssertionError: Lists differ: ['-rwxr-xr-x 6000 6000 /etc/init.d/mdmonitor', '-rw-r-[10124 chars]n.8'] != ['-rwxr-xr-x root root /etc/init.d/mdmonitor', '-rw-r-[10124 chars]n.8']
First differing element 0:
'-rwxr-xr-x 6000 6000 /etc/init.d/mdmonitor'
'-rwxr-xr-x root root /etc/init.d/mdmonitor'
Diff is 26726 characters long. Set self.maxDiff to None to see it.
Comment 1 Richard Purdie 2020-10-15 08:51:55 UTC
From tumbleweed-ty-1.yocto.io
Comment 2 Stacy Gaikovaia 2020-11-12 15:54:27 UTC
Based on the difference between the two lines (6000 vs root), it looks like it might perhalps have something to do with pseudo. 

Usually root is uid 0. I know that some containerization systems have offsets for the uid for the emulated "root", is that offset 6000 in pseudo's case?
Comment 3 Randy MacLeod 2021-05-13 15:14:24 UTC
Likely fixed by the changes made to pseudo deal with permissions.