Bug 13812

Summary: tinfoil tests race issue
Product: [Build System, Metadata & Runtime] BitBake Reporter: Richard Purdie <richard.purdie>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: High CC: alex.kanavin, poky.bs.watcher, poky.watcher, randy.macleod
Version: 3.1   
Target Milestone: 3.1 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Richard Purdie 2020-02-23 13:17:47 UTC
Set BB_SERVER_TIMEOUT = "2" in local.conf, then run:

oe-selftest -r tinfoil

and in the output you'll see:

ERROR: When reparsing /media/build1/poky/meta/recipes-extended/mdadm/mdadm_4.1.bb:do_configure, the basehash value changed from 53b93b91b8f92f002968926ee47d49047f62f264c0647c1cbb362532743d8258 to c4e19e9cfa4ec8b25186dc18b1bcbbdc36810bbd81233051623d9028d7f70b2a. The metadata is not deterministic and this needs to be fixed.
ERROR: The following commands may help:
ERROR: $ bitbake mdadm -cdo_configure -Snone
ERROR: Then:
ERROR: $ bitbake mdadm -cdo_configure -Sprintdiff

ERROR: When reparsing /media/build1/poky/meta/recipes-extended/mdadm/mdadm_4.1.bb:do_package, the basehash value changed from e04e38b290c40267f04ef5f97ada487d33c541fac01b474e74d55e1fc1fe6edf to e3d8d41013cd064cdd35ea2ac331498114533b355e87bea80563d7c8d0994915. The metadata is not deterministic and this needs to be fixed.
ERROR: The following commands may help:
ERROR: $ bitbake mdadm -cdo_package -Snone
ERROR: Then:
ERROR: $ bitbake mdadm -cdo_package -Sprintdiff

ERROR: When reparsing /media/build1/poky/meta/recipes-extended/mdadm/mdadm_4.1.bb:do_package_write_rpm, the basehash value changed from 45ee06318ebeb2aee0021b35717d011806e4f3d20ae6a6d6d8504d66f7f02d72 to a5ad8870c10cc34a08f96a508f4841504a1c6afeda7bf24ced4231e09d8db4d3. The metadata is not deterministic and this needs to be fixed.
ERROR: The following commands may help:
ERROR: $ bitbake mdadm -cdo_package_write_rpm -Snone
ERROR: Then:
ERROR: $ bitbake mdadm -cdo_package_write_rpm -Sprintdiff

which is because the datastore is left in a 'corrupt' state after one of the tests. 

We can see this on the autobuilder if a test runs fast enough to catch the bitbake server before it shuts down, even if memres isn't enabled.