Bug 13293

Summary: libxml-parser-perl ptest results are inconsistent per image
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Joshua Watt <JPEWhacker>
Component: coreAssignee: Unassigned <unassigned>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, randy.macleod, richard.purdie, TicoTimo, tim.orling
Version: 2.7   
Target Milestone: 2.8 M1   
Hardware: x86   
OS: Multiple   
Whiteboard: NEWCOMER
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
ptest log from core-image-sato build
none
ptest log from core-image-sato-sdk build none

Description Joshua Watt 2019-04-18 18:22:25 UTC
libxml-parser-perl is generating different ptest results between the core-image-sato and core-image-sato-sdk images. Specifically:

core-image-sato: https://autobuilder.yocto.io/pub/non-release/20190417-10/testresults/qemux86-64-ptest/testresults.json

Recipe                       | Passed      | Failed   | Skipped   | 
libxml-parser-perl           | 0           | 15       | 0         | 

core-image-sato-sdk: https://autobuilder.yocto.io/pub/non-release/20190417-14/testresults/qemux86-64-ptest/testresults.json

Recipe                       | Passed      | Failed   | Skipped   | 
libxml-parser-perl           | 15          | 0        | 0         |
Comment 1 Joshua Watt 2019-04-18 18:23:11 UTC
Created attachment 4489 [details]
ptest log from core-image-sato build
Comment 2 Joshua Watt 2019-04-18 18:23:25 UTC
Created attachment 4490 [details]
ptest log from core-image-sato-sdk build
Comment 3 Tim Orling 2019-04-25 14:56:16 UTC
It appears that libxml-parser-perl-ptest package does not have libxml-parser-perl in RDEPENDS (XML/Parser.pm missing).
Comment 4 Tim Orling 2019-04-25 15:23:41 UTC
The solution is probably to add ${PN} to RDEPENDS in the ptest-perl.bbclass:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/ptest-perl.bbclass#n18
Comment 5 Richard Purdie 2019-05-30 14:24:33 UTC
In a minimal image, all tests still fail, likely due to missing perl module dependencies.
Comment 6 Tim Orling 2019-05-31 18:43:45 UTC
A number of dependencies for libxml-parser-perl (in particular for Test::Builder and Test2::API) were missing in perl-rdepends.txt.

Possibly fixed with:
https://patchwork.openembedded.org/series/17926/

This did not attempt to address the missing XML/Parser.pm however, as it did not show up as a problem with core-image-minimal or core-image-full-cmdline.
Comment 7 Tim Orling 2019-06-06 15:33:15 UTC
Is this because the perl modules do not BBCLASSEXTEND nativesdk?
Comment 8 Richard Purdie 2019-06-07 22:03:03 UTC
(In reply to comment #7)
> Is this because the perl modules do not BBCLASSEXTEND nativesdk?

No, I believe this issue was fixed by the perl module dependency fixes (and the missing ${PN} dependency fix before that).