Bug 11993

Summary: oe-selftest devtool.DevtoolTests.test_create_workspace fails with bb_server_timeout set
Product: [QA/Testing] Build Testing Reporter: Aníbal Limón <anibal.limon>
Component: generalAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: High CC: bluelightning, richard.purdie
Version: unspecified   
Target Milestone: 2.4 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on:    
Bug Blocks: 11818    
Attachments:
Description Flags
test_create_workspace fails none

Description Aníbal Limón 2017-08-28 20:48:43 UTC
Created attachment 3956 [details]
test_create_workspace fails

When execute:

$ BB_SERVER_TIMEOUT=100 oe-selftest -r devtool.DevtoolTests.test_create_workspace

It fails, the layer is added in conf/bblayers.conf but bitbake-layers doesn't display it, see attachment.
Comment 1 Aníbal Limón 2017-08-29 14:26:52 UTC
Seems that the bb server remains in memory and don't update the snapshot of configuration when a local.conf or bblayers.conf are modified.
Comment 2 Aníbal Limón 2017-08-29 19:07:30 UTC
(In reply to comment #1)
> Seems that the bb server remains in memory and don't update the snapshot of
> configuration when a local.conf or bblayers.conf are modified.

A simple test to reproduce it will be,

BB_SERVER_TIMEOUT=100 oe-selftest -r bblayers.BitbakeLayers.test_bitbakelayers_add_remove
Comment 3 Richard Purdie 2017-08-30 13:37:04 UTC
Patch in -next and on the mailing list, waiting on testing now.
Comment 4 Richard Purdie 2017-09-07 14:17:23 UTC
As of commit http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=c69722616840be627981ebc7e77c986c246d9f8d, all oe-selftest failures with BB_SERVER_TIMEOUT were fixed.