Skip to contentSkip to conversation

core-image-sato-ptest-fast: Add 'fast' ptest execution image

PATCH In review Richard Purdie 3 participants 8 messages Apr 17, 2019 – Apr 22, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 core-image-sato-ptest-fast: Add 'fast' ptest execution image

Create a common include file which lists recipes that have ptests divided into 'fast' and 'slow' groups. This allows us to include ptests which otherwise may not get included in images and allows us to test the faster running things more regularly.

The new image allows access to these faster executing tests. 'fast' is defined as tests which execute in under 30s roughly speaking.

---
 .../distro/include/ptest-packagelists.inc     | 75 +++++++++++++++++++
 .../images/core-image-sato-ptest-fast.bb      | 16 ++++
 2 files changed, 91 insertions(+)
 create mode 100644 meta/conf/distro/include/ptest-packagelists.inc
 create mode 100644 meta/recipes-sato/images/core-image-sato-ptest-fast.bb
meta/conf/distro/include/ptest-packagelists.inc new file +75 -0
new file mode 100644
index 00000000000..768ba743ed0
@@ -0,0 +1,75 @@
+#
+# Lists of the ptests in OE-Core, sorted into two sets by the time they take
+#
+# ptests which take less than ~30s each
+#
+PTESTS_FAST = "\
+    acl-ptest \
+    apr-ptest \
+    apr-util-ptest \
+    attr-ptest \
+    bluez5-ptest \
+    bzip2-ptest \
+    dbus-test-ptest \
+    diffstat-ptest \
+    diffutils-ptest \
+    elfutils-ptest \
+    ethtool-ptest \
+    flex-ptest \
+    gawk-ptest \
+    gdbm-ptest \
+    gdk-pixbuf-ptest \
+    gzip-ptest \
+    json-glib-ptest \
+    kbd-ptest \
+    libconvert-asn1-perl-ptest \
+    liberror-perl-ptest \
+    libpcre-ptest \
+    libtimedate-perl-ptest \
+    libtest-needs-perl-ptest \
+    liburi-perl-ptest \
+    libusb1-ptest \
+    libxml-namespacesupport-perl-ptest \
+    libxml-perl-ptest \
+    libxml-parser-perl-ptest \
+    libxml-sax-perl-ptest \
+    libxml-sax-base-perl-ptest \
+    libxml-simple-perl-ptest \
+    libxml2-ptest \
+    lzo-ptest \
+    nettle-ptest \
+    openssl-ptest \
+    opkg-ptest \
+    pango-ptest \
+    parted-ptest \
+    quilt-ptest \
+    sed-ptest \
+    slang-ptest \
+    zlib-ptest \
+"
+
+#PTESTS_PROBLEMS = "\
+#    qemu-ptest \ # Doesn't run any tests?
+#    ruby-ptest \ # Timeout
+#    mdadm-ptest \ # Timeout
+#    clutter-1.0-ptest \ # Doesn't build due to depends on cogl-1.0
+#"
+
+PTESTS_SLOW = "\
+    bash-ptest \
+    busybox-ptest \
+    e2fsprogs-ptest \
+    glib-2.0-ptest \
+    gstreamer1.0-ptest \
+    libevent-ptest \
+    lttng-tools-ptest \
+    openssh-ptest \
+    openssl-ptest \
+    perl-ptest \
+    python-ptest \
+    python3-ptest \
+    strace-ptest \
+    tcl-ptest \
+    util-linux-ptest \
+    valgrind-ptest \
+"
meta/recipes-sato/images/core-image-sato-ptest-fast.bb new file +16 -0
new file mode 100644
index 00000000000..b794a7dc9e9
@@ -0,0 +1,16 @@
+require core-image-sato-sdk.bb
+require conf/distro/include/ptest-packagelists.inc
+
+IMAGE_INSTALL += "${PTESTS_FAST}"
+
+DESCRIPTION += "Also includes ptest packages with fast execution times to allow for more automated QA."
+
+# This image is sufficiently large (~1.8GB) that it can't actually fit in a live
+# image (which has a 4GB limit), so nullify the overhead factor (1.3x out of the
+# box) and explicitly add just 1500MB.
+# strace-ptest in particular needs more than 500MB
+IMAGE_OVERHEAD_FACTOR = "1.0"
+IMAGE_ROOTFS_EXTRA_SPACE = "1524288"
+
+# ptests need more memory than standard to avoid the OOM killer
+QB_MEM = "-m 1024"
Signature · 1 line
2.20.1
#1 lore raw

PATCH 2/3 core-image-sato-sdk-ptest: Include more ptests in ptest image

There are recipes not included in core-image-sato-sdk which have ptests, include these in our ptest test image using the new include file.

---
 meta/recipes-sato/images/core-image-sato-sdk-ptest.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-sato/images/core-image-sato-sdk-ptest.bb +4 -0
index 57395992cc2..61cb9c6626c 100644
@@ -1,9 +1,13 @@
 require core-image-sato-sdk.bb
+require conf/distro/include/ptest-packagelists.inc
 
 DESCRIPTION += "Also includes ptest packages."
 
 IMAGE_FEATURES += "ptest-pkgs"
 
+# Also include ptests which may not otherwise be included in a sato image
+IMAGE_INSTALL += "${PTESTS_FAST} ${PTESTS_SLOW}"
+
 # This image is sufficiently large (~1.8GB) that we need to be careful that it fits in a live
 # image (which has a 4GB limit), so nullify the overhead factor (1.3x out of the
 # box) and explicitly add just 1300MB.
Signature · 1 line
2.20.1
#2 lore raw

PATCH 3/3 core-image-sato-sdk-ptest: Move to drop SDK components from ptest

In reply to Richard Purdie

Move the ptest image to be based off core-image-sato instead of core-image-sato-sdk.

This gives a better test of the ptest package dependencies and reduces the overall image size so it only contains the things we need.

---
 .../{core-image-sato-sdk-ptest.bb => core-image-sato-ptest.bb}  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-sato/images/{core-image-sato-sdk-ptest.bb => core-image-sato-ptest.bb} (95%)
meta/recipes-sato/images/core-image-sato-ptest.bb renamed from meta/recipes-sato/images/core-image-sato-sdk-ptest.bb +1 -1
similarity index 95%
rename from meta/recipes-sato/images/core-image-sato-sdk-ptest.bb
rename to meta/recipes-sato/images/core-image-sato-ptest.bb
index 61cb9c6626c..2fa5178461e 100644
@@ -1,4 +1,4 @@
-require core-image-sato-sdk.bb
+require core-image-sato.bb
 require conf/distro/include/ptest-packagelists.inc
 
 DESCRIPTION += "Also includes ptest packages."
Signature · 1 line
2.20.1
#3 lore raw

Re: [PATCH 3/3] core-image-sato-sdk-ptest: Move to drop SDK components from ptest

Quoted 7 lines · Richard Purdie

Move the ptest image to be based off core-image-sato instead of core- image-sato-sdk.

This gives a better test of the ptest package dependencies and reduces the overall
image size so it only contains the things we need.

Quoted 7 lines
---
 .../{core-image-sato-sdk-ptest.bb => core-image-sato-ptest.bb}  | 2
+-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-sato/images/{core-image-sato-sdk-ptest.bb =>

core-image-sato-ptest.bb} (95%)

Unfortunately its looking like I have to NAK my own patch as the ptest statistics show a large number of regressions when not unincluding the SDK pieces. This almost certainly means ptests have missing dependencies but that needs to be fixed before this merges.

Cheers,

Richard

#4 lore raw
In reply to Richard Purdie
Quoted 7 lines · Richard Purdie

Create a common include file which lists recipes that have ptests divided into 'fast' and 'slow' groups. This allows us to include ptests which otherwise may not get included in images and allows us to test the faster running things more regularly.

The new image allows access to these faster executing tests. 'fast' is defined as tests which execute in under 30s roughly speaking.

Maybe at some point allow recipes to define their own groupings. It would lend itself to scaling better.

Can we define the system at ~30 seconds? All these may be fast on a 196 core system where as on my laptop all would be slow ; )

- armin

Quoted 112 lines
---
 .../distro/include/ptest-packagelists.inc     | 75 +++++++++++++++++++
 .../images/core-image-sato-ptest-fast.bb      | 16 ++++
 2 files changed, 91 insertions(+)
 create mode 100644 meta/conf/distro/include/ptest-packagelists.inc
 create mode 100644 meta/recipes-sato/images/core-image-sato-ptest-fast.bb
meta/conf/distro/include/ptest-packagelists.inc new file +75 -0
new file mode 100644
index 00000000000..768ba743ed0
@@ -0,0 +1,75 @@
+#
+# Lists of the ptests in OE-Core, sorted into two sets by the time they take
+#
+# ptests which take less than ~30s each
+#
+PTESTS_FAST = "\
+    acl-ptest \
+    apr-ptest \
+    apr-util-ptest \
+    attr-ptest \
+    bluez5-ptest \
+    bzip2-ptest \
+    dbus-test-ptest \
+    diffstat-ptest \
+    diffutils-ptest \
+    elfutils-ptest \
+    ethtool-ptest \
+    flex-ptest \
+    gawk-ptest \
+    gdbm-ptest \
+    gdk-pixbuf-ptest \
+    gzip-ptest \
+    json-glib-ptest \
+    kbd-ptest \
+    libconvert-asn1-perl-ptest \
+    liberror-perl-ptest \
+    libpcre-ptest \
+    libtimedate-perl-ptest \
+    libtest-needs-perl-ptest \
+    liburi-perl-ptest \
+    libusb1-ptest \
+    libxml-namespacesupport-perl-ptest \
+    libxml-perl-ptest \
+    libxml-parser-perl-ptest \
+    libxml-sax-perl-ptest \
+    libxml-sax-base-perl-ptest \
+    libxml-simple-perl-ptest \
+    libxml2-ptest \
+    lzo-ptest \
+    nettle-ptest \
+    openssl-ptest \
+    opkg-ptest \
+    pango-ptest \
+    parted-ptest \
+    quilt-ptest \
+    sed-ptest \
+    slang-ptest \
+    zlib-ptest \
+"
+
+#PTESTS_PROBLEMS = "\
+#    qemu-ptest \ # Doesn't run any tests?
+#    ruby-ptest \ # Timeout
+#    mdadm-ptest \ # Timeout
+#    clutter-1.0-ptest \ # Doesn't build due to depends on cogl-1.0
+#"
+
+PTESTS_SLOW = "\
+    bash-ptest \
+    busybox-ptest \
+    e2fsprogs-ptest \
+    glib-2.0-ptest \
+    gstreamer1.0-ptest \
+    libevent-ptest \
+    lttng-tools-ptest \
+    openssh-ptest \
+    openssl-ptest \
+    perl-ptest \
+    python-ptest \
+    python3-ptest \
+    strace-ptest \
+    tcl-ptest \
+    util-linux-ptest \
+    valgrind-ptest \
+"
meta/recipes-sato/images/core-image-sato-ptest-fast.bb new file +16 -0
new file mode 100644
index 00000000000..b794a7dc9e9
@@ -0,0 +1,16 @@
+require core-image-sato-sdk.bb
+require conf/distro/include/ptest-packagelists.inc
+
+IMAGE_INSTALL += "${PTESTS_FAST}"
+
+DESCRIPTION += "Also includes ptest packages with fast execution times to allow for more automated QA."
+
+# This image is sufficiently large (~1.8GB) that it can't actually fit in a live
+# image (which has a 4GB limit), so nullify the overhead factor (1.3x out of the
+# box) and explicitly add just 1500MB.
+# strace-ptest in particular needs more than 500MB
+IMAGE_OVERHEAD_FACTOR = "1.0"
+IMAGE_ROOTFS_EXTRA_SPACE = "1524288"
+
+# ptests need more memory than standard to avoid the OOM killer
+QB_MEM = "-m 1024"
#5 lore raw

gdk-pixbuf is fast? Not for me. Some of its tests take about 2000 seconds on qemux86-64 on a 32 core machine with 64GB ram.

Joe
________________________________________
From: [email protected] [[email protected]] on behalf of akuster808 [[email protected]]
Sent: Wednesday, April 17, 2019 9:57 AM
To: Richard Purdie; [email protected]
Subject: Re: [OE-core] [PATCH 1/3] core-image-sato-ptest-fast: Add 'fast' ptest execution image

Quoted 7 lines · Richard Purdie

Create a common include file which lists recipes that have ptests divided into 'fast' and 'slow' groups. This allows us to include ptests which otherwise may not get included in images and allows us to test the faster running things more regularly.

The new image allows access to these faster executing tests. 'fast' is defined as tests which execute in under 30s roughly speaking.

Maybe at some point allow recipes to define their own groupings. It would lend itself to scaling better.

Can we define the system at ~30 seconds? All these may be fast on a 196 core system where as on my laptop all would be slow ; )

- armin

Quoted 102 lines
---
 .../distro/include/ptest-packagelists.inc     | 75 +++++++++++++++++++
 .../images/core-image-sato-ptest-fast.bb      | 16 ++++
 2 files changed, 91 insertions(+)
 create mode 100644 meta/conf/distro/include/ptest-packagelists.inc
 create mode 100644 meta/recipes-sato/images/core-image-sato-ptest-fast.bb
meta/conf/distro/include/ptest-packagelists.inc new file +75 -0
new file mode 100644
index 00000000000..768ba743ed0
@@ -0,0 +1,75 @@
+#
+# Lists of the ptests in OE-Core, sorted into two sets by the time they take
+#
+# ptests which take less than ~30s each
+#
+PTESTS_FAST = "\
+    acl-ptest \
+    apr-ptest \
+    apr-util-ptest \
+    attr-ptest \
+    bluez5-ptest \
+    bzip2-ptest \
+    dbus-test-ptest \
+    diffstat-ptest \
+    diffutils-ptest \
+    elfutils-ptest \
+    ethtool-ptest \
+    flex-ptest \
+    gawk-ptest \
+    gdbm-ptest \
+    gdk-pixbuf-ptest \
+    gzip-ptest \
+    json-glib-ptest \
+    kbd-ptest \
+    libconvert-asn1-perl-ptest \
+    liberror-perl-ptest \
+    libpcre-ptest \
+    libtimedate-perl-ptest \
+    libtest-needs-perl-ptest \
+    liburi-perl-ptest \
+    libusb1-ptest \
+    libxml-namespacesupport-perl-ptest \
+    libxml-perl-ptest \
+    libxml-parser-perl-ptest \
+    libxml-sax-perl-ptest \
+    libxml-sax-base-perl-ptest \
+    libxml-simple-perl-ptest \
+    libxml2-ptest \
+    lzo-ptest \
+    nettle-ptest \
+    openssl-ptest \
+    opkg-ptest \
+    pango-ptest \
+    parted-ptest \
+    quilt-ptest \
+    sed-ptest \
+    slang-ptest \
+    zlib-ptest \
+"
+
+#PTESTS_PROBLEMS = "\
+#    qemu-ptest \ # Doesn't run any tests?
+#    ruby-ptest \ # Timeout
+#    mdadm-ptest \ # Timeout
+#    clutter-1.0-ptest \ # Doesn't build due to depends on cogl-1.0
+#"
+
+PTESTS_SLOW = "\
+    bash-ptest \
+    busybox-ptest \
+    e2fsprogs-ptest \
+    glib-2.0-ptest \
+    gstreamer1.0-ptest \
+    libevent-ptest \
+    lttng-tools-ptest \
+    openssh-ptest \
+    openssl-ptest \
+    perl-ptest \
+    python-ptest \
+    python3-ptest \
+    strace-ptest \
+    tcl-ptest \
+    util-linux-ptest \
+    valgrind-ptest \
+"
meta/recipes-sato/images/core-image-sato-ptest-fast.bb new file +6 -0
new file mode 100644
index 00000000000..b794a7dc9e9
@@ -0,0 +1,16 @@
+require core-image-sato-sdk.bb
+require conf/distro/include/ptest-packagelists.inc
+
+IMAGE_INSTALL += "${PTESTS_FAST}"
+
+DESCRIPTION += "Also includes ptest packages with fast execution times to allow for more automated QA."

meta/recipes-sato/images/core-image-sato-ptest-fast.bb line 16

Quoted 10 lines
meta/recipes-sato/images/core-image-sato-ptest-fast.bb new file +10 -0
+
+# This image is sufficiently large (~1.8GB) that it can't actually fit in a live
+# image (which has a 4GB limit), so nullify the overhead factor (1.3x out of the
+# box) and explicitly add just 1500MB.
+# strace-ptest in particular needs more than 500MB
+IMAGE_OVERHEAD_FACTOR = "1.0"
+IMAGE_ROOTFS_EXTRA_SPACE = "1524288"
+
+# ptests need more memory than standard to avoid the OOM killer
+QB_MEM = "-m 1024"

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#6 lore raw
Quoted 2 lines · Joseph

gdk-pixbuf is fast? Not for me. Some of its tests take about 2000 seconds on qemux86-64 on a 32 core machine with 64GB ram.

from the ptest logs from gdk-pixbuf:

SUMMARY: total=20; passed=20; skipped=0; failed=0; user=27.1s; system=0.2s; maxrss=20260
DURATION: 28

so yes, it takes around 30s for qemux86-64 on the autobuilder (single thread qemu).

Are you using KVM?

Cheers,

Richard

#7 lore raw
In reply to akuster808
Quoted 10 lines · On Wed, 2019-04-17 at 09:57 -0700, akuster808 wrote:
Quoted 8 lines · Richard Purdie

Create a common include file which lists recipes that have ptests divided
into 'fast' and 'slow' groups. This allows us to include ptests which otherwise
may not get included in images and allows us to test the faster running things
more regularly.

Quoted 5 lines
Quoted 3 lines

The new image allows access to these faster executing tests. 'fast' is defined
as tests which execute in under 30s roughly speaking.

Maybe at some point allow recipes to define their own groupings. It would lend itself to scaling better.

There isn't anything stopping that, I just wanted something which we can use for the autobuilder testing and it makes sense to have that somewhere in OE-Core IMO so everyone can see what we do.

Quoted 2 lines

Can we define the system at ~30 seconds? All these may be fast on a 196 core system where as on my laptop all would be slow ; )

The times from the autobuilder. My local build server works out slightly faster. We're talking about an image either on real hardware or under KVM acceleration as without that everything is extremely slow.

Cheers,

Richard