Bug 8466

Summary: wic fails selftest on autobuilder
Product: [QA/Testing] Runtime Testing Reporter: Ross Burton <ross.burton>
Component: generalAssignee: Leonardo Sandoval Gonzalez <leonardo.sandoval.gonzalez>
Status: VERIFIED FIXED QA Contact: Daniel Istrate <daniel.alexandrux.istrate>
Severity: normal    
Priority: High CC: alexandru.c.georgescu, benjamin.esquivel, leonardo.sandoval.gonzalez, richard.purdie
Version: 2.0   
Target Milestone: 2.0   
Hardware: All   
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 Ross Burton 2015-10-08 16:21:00 UTC
The wic selftests are failing on the autobuilder due to inability to find parted-native.

(https://autobuilder.yoctoproject.org/main/builders/nightly-oe-selftest/builds/206/steps/Running%20oe-selftest/logs/stdio)

For example,

FAIL: test04_build_image_name (oeqa.selftest.wic.Wic)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/decorators.py", line 106, in wrapped_f
    return func(*args)
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/wic.py", line 79, in test04_build_image_name
    self.assertEqual(0, runCmd("wic create directdisk "
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/commands.py", line 105, in runCmd
    raise AssertionError("Command '%s' returned non-zero exit status %d:\n%s" % (command, result.status, result.output))
AssertionError: Command 'wic create directdisk --image-name core-image-minimal' returned non-zero exit status 1:
Error: A native program parted required to build the image was not found (see details above).

Please bake it with 'bitbake parted-native' and try again.
Comment 1 Ross Burton 2015-10-08 16:22:02 UTC
Richard, didn't you/Ed discuss a patch that was to blame for this?
Comment 2 Leonardo Sandoval Gonzalez 2015-10-09 13:18:08 UTC
Reverting master commit e5b9c2a9f2b9ad354d246b20d7252957dd5ebb42 did not solve the problem (this commit e5b9... changes the method name from setUp to SetUpLocal). Also, the class method setUpClass is being executed, which means that wic dependencies (including parted-native) are being run correctly. Still looking into the root cause.
Comment 3 Leonardo Sandoval Gonzalez 2015-10-19 13:55:13 UTC
I sent the patch which was created by Ross Burton. Patch on the ML now:

http://lists.openembedded.org/pipermail/openembedded-core/2015-October/111704.html

If this patch is applied, the following patch MUST be applied against meta-yocto-bsp, otherwise an exception will occur:

https://lists.yoctoproject.org/pipermail/poky/2015-October/010259.html

Each patch goes to a different mailing list (first one goes to oe-core, second to poky), that is why I am explicitly indicating the need for the second patch.
Comment 4 Ross Burton 2015-10-22 15:01:19 UTC
selftest is all green as of oe-core ad33259b507914bfc8de92d1df12e0974157900e.
Comment 5 Daniel Istrate 2015-10-23 14:17:22 UTC
Verified on master: 505a82673ac2487df5ea343a6422c2fc47018831

All wic test cases are passing on autobuilder.