Bug 13293 - libxml-parser-perl ptest results are inconsistent per image
Summary: libxml-parser-perl ptest results are inconsistent per image
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.7
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.8 M1
Assignee: Unassigned
QA Contact:
URL:
Whiteboard: NEWCOMER
Depends on:
Blocks:
 
Reported: 2019-04-18 18:22 UTC by Joshua Watt
Modified: 2019-06-07 22:03 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
ptest log from core-image-sato build (6.74 KB, text/x-log)
2019-04-18 18:23 UTC, Joshua Watt
no flags Details
ptest log from core-image-sato-sdk build (1.70 KB, text/x-log)
2019-04-18 18:23 UTC, Joshua Watt
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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).