Bug 8466 - wic fails selftest on autobuilder
Summary: wic fails selftest on autobuilder
Status: VERIFIED FIXED
Alias: None
Product: Runtime Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: 2.0
Hardware: All Multiple
: High normal
Target Milestone: 2.0
Assignee: Leonardo Sandoval Gonzalez
QA Contact: Daniel Istrate
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-10-08 16:21 UTC by Ross Burton
Modified: 2015-10-23 14:17 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
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 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.