From patchwork Wed Jul 15 16:43:48 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 92560 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E74F3C44508 for ; Wed, 15 Jul 2026 16:44:08 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.12277.1784133843212092760 for ; Wed, 15 Jul 2026 09:44:03 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=a0SCcUQs; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 681C11477 for ; Wed, 15 Jul 2026 09:43:58 -0700 (PDT) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 517A83F7B4 for ; Wed, 15 Jul 2026 09:44:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1784133842; bh=3YjaWo79GdcVla5ymYOgD9uamjLaVrAfvwob6009icg=; h=From:To:Subject:Date:From; b=a0SCcUQszi52QVZAcZQFO9oqc/VBpG6eB0501Gg6NWt/8SeZ53HZSoqcS7IZXmL9P iR/1U3Lobg+9jufZ9jFksWtITHlz7gTAGp0IR3U0+7b+BPOg7InUMEzeuTHL7r/Qtc s81eAG4dV2uv+ctLjayggIGpsFpNQkStv+lbN53E= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 1/4] buildhistory_analysis: show changes to RSUGGESTS Date: Wed, 15 Jul 2026 17:43:48 +0100 Message-ID: <20260715164351.903912-1-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 15 Jul 2026 16:44:08 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/240989 Not a lot of recipes use RSUGGESTS, but systemd does when generating optional dependencies via the .dlopen ELF notes. Signed-off-by: Ross Burton --- meta/lib/oe/buildhistory_analysis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oe/buildhistory_analysis.py b/meta/lib/oe/buildhistory_analysis.py index 4a95a928adf..40788ffc84f 100644 --- a/meta/lib/oe/buildhistory_analysis.py +++ b/meta/lib/oe/buildhistory_analysis.py @@ -29,7 +29,7 @@ list_order_fields = ['PACKAGES'] defaultval_map = {'PKG': 'PKG', 'PKGE': 'PE', 'PKGV': 'PV', 'PKGR': 'PR'} numeric_fields = ['PKGSIZE', 'IMAGESIZE', 'SDKSIZE'] # Fields to monitor -monitor_fields = ['RPROVIDES', 'RDEPENDS', 'RRECOMMENDS', 'RREPLACES', 'RCONFLICTS', 'PACKAGES', 'FILELIST', 'PKGSIZE', 'IMAGESIZE', 'SDKSIZE', 'PKG'] +monitor_fields = ['RPROVIDES', 'RDEPENDS', 'RRECOMMENDS', 'RSUGGESTS', 'RREPLACES', 'RCONFLICTS', 'PACKAGES', 'FILELIST', 'PKGSIZE', 'IMAGESIZE', 'SDKSIZE', 'PKG'] ver_monitor_fields = ['PKGE', 'PKGV', 'PKGR'] # Percentage change to alert for numeric fields monitor_numeric_threshold = 10 From patchwork Wed Jul 15 16:43:49 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 92561 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07310C4450E for ; Wed, 15 Jul 2026 16:44:09 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.12560.1784133843704659236 for ; Wed, 15 Jul 2026 09:44:03 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=ZGv9tNWC; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F0C09152B for ; Wed, 15 Jul 2026 09:43:58 -0700 (PDT) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E5CF73F7B4 for ; Wed, 15 Jul 2026 09:44:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1784133843; bh=BvXX71IE+mdgEFh+zYDA9s/k2xmlNQx+Atf5gMa6zhQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZGv9tNWCUheJogDBiMmq2Yms+uC+zrLeQMIsv+pP1AmyIhsbKtYVYOmb9lRjerwYl Qh4wbxbH7ztH4YxyJ/XB2ot1qiO57W5dZWtgy3+sWLIFNOhiRWiCO4xLvE5wmeZUDI 27NRAb+9E5SiJI5SIVk9TOWgSNT7RhjjptauIGNk= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 2/4] systemd: drop redundant runtime dependencies Date: Wed, 15 Jul 2026 17:43:49 +0100 Message-ID: <20260715164351.903912-2-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260715164351.903912-1-ross.burton@arm.com> References: <20260715164351.903912-1-ross.burton@arm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 15 Jul 2026 16:44:09 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/240990 The PACKAGECONFIGs have several items which add to RRECOMMENDS because the libraries are not linked to at build time but dlopen()ed instead. Previously we had to add dependencies manually (e.g. [1]), but this is no longer needed since we now generate the dependencies based on ELF notes[2]. [1] oe-core f7366f44fd7 ("systemd: recommend libelf, libdw for elfutils flag") [2] oe-core 905da779bcf ("systemd: extract dependencies from .note.dlopen ELF segments") Signed-off-by: Ross Burton --- meta/recipes-core/systemd/systemd_259.5.bb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meta/recipes-core/systemd/systemd_259.5.bb b/meta/recipes-core/systemd/systemd_259.5.bb index 27722f97bbb..7cc62bde995 100644 --- a/meta/recipes-core/systemd/systemd_259.5.bb +++ b/meta/recipes-core/systemd/systemd_259.5.bb @@ -124,7 +124,7 @@ PACKAGECONFIG[default-compression-lz4] = "-Dlz4=true -Ddefault-compression=lz4,, PACKAGECONFIG[default-compression-xz] = "-Dxz=true -Ddefault-compression=xz,,xz" PACKAGECONFIG[default-compression-zstd] = "-Dzstd=true -Ddefault-compression=zstd,,zstd" PACKAGECONFIG[efi] = "-Defi=true -Dbootloader=enabled,-Defi=false -Dbootloader=disabled,python3-pyelftools-native" -PACKAGECONFIG[elfutils] = "-Delfutils=enabled,-Delfutils=disabled,elfutils,,libelf libdw" +PACKAGECONFIG[elfutils] = "-Delfutils=enabled,-Delfutils=disabled,elfutils" PACKAGECONFIG[fido] = "-Dlibfido2=enabled,-Dlibfido2=disabled,libfido2-initial" PACKAGECONFIG[firstboot] = "-Dfirstboot=true,-Dfirstboot=false" PACKAGECONFIG[repart] = "-Drepart=enabled,-Drepart=disabled" @@ -141,8 +141,8 @@ PACKAGECONFIG[journal-color] = ",,,less" PACKAGECONFIG[journal-upload] = "-Dlibcurl=enabled,-Dlibcurl=disabled,curl" PACKAGECONFIG[kmod] = "-Dkmod=enabled,-Dkmod=disabled,kmod,libkmod" PACKAGECONFIG[ldconfig] = "-Dldconfig=true,-Dldconfig=false,,ldconfig" -PACKAGECONFIG[libidn] = "-Dlibidn=enabled,-Dlibidn=disabled,libidn,,libidn" -PACKAGECONFIG[libidn2] = "-Dlibidn2=enabled,-Dlibidn2=disabled,libidn2,,libidn2" +PACKAGECONFIG[libidn] = "-Dlibidn=enabled,-Dlibidn=disabled,libidn" +PACKAGECONFIG[libidn2] = "-Dlibidn2=enabled,-Dlibidn2=disabled,libidn2" # Link udev shared with systemd helper library. # If enabled the udev package depends on the systemd package (which has the needed shared library). PACKAGECONFIG[link-udev-shared] = "-Dlink-udev-shared=true,-Dlink-udev-shared=false" @@ -175,7 +175,7 @@ PACKAGECONFIG[polkit_hostnamed_fallback] = ",,,,dbus-broker,polkit" PACKAGECONFIG[portabled] = "-Dportabled=true,-Dportabled=false" PACKAGECONFIG[pstore] = "-Dpstore=true,-Dpstore=false" PACKAGECONFIG[pni-names] = ",,," -PACKAGECONFIG[qrencode] = "-Dqrencode=enabled,-Dqrencode=disabled,qrencode,,qrencode" +PACKAGECONFIG[qrencode] = "-Dqrencode=enabled,-Dqrencode=disabled,qrencode" PACKAGECONFIG[quotacheck] = "-Dquotacheck=true,-Dquotacheck=false" PACKAGECONFIG[randomseed] = "-Drandomseed=true,-Drandomseed=false" PACKAGECONFIG[resolved] = "-Dresolve=true,-Dresolve=false" From patchwork Wed Jul 15 16:43:50 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 92563 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E691C44501 for ; Wed, 15 Jul 2026 16:44:09 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.12279.1784133844265858380 for ; Wed, 15 Jul 2026 09:44:04 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=VFd2a5Km; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8CBB01477 for ; Wed, 15 Jul 2026 09:43:59 -0700 (PDT) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 7CF013F7B4 for ; Wed, 15 Jul 2026 09:44:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1784133843; bh=0ecR/9z2GfPLYyUESyWUBPgP89spvDkAxK3Npfb5dnI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VFd2a5KmQ2w5lbdczJXYiyZZgEK4dQl3skLgj1YQXeEffDlxb3hAVYla4AnCMR8NN /BocbMycE+k33YnFh81rAYku3+RRMaAc18eXxJ+OxEj6deV58y8MX4D4Sys5us9Flm NDZu6OJZU2HIQSh6Qn0BdKk9sUqWe++bmQFlL52s= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 3/4] oeqa/utils/postactions: invoke coredumpctl on test failures Date: Wed, 15 Jul 2026 17:43:50 +0100 Message-ID: <20260715164351.903912-3-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260715164351.903912-1-ross.burton@arm.com> References: <20260715164351.903912-1-ross.burton@arm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 15 Jul 2026 16:44:09 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/240991 On a test failure, try running coredumpctl to dump a summary of the core dumps that were captured by systemd into /var/log/coredumps.txt. Signed-off-by: Ross Burton --- meta/lib/oeqa/utils/postactions.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/meta/lib/oeqa/utils/postactions.py b/meta/lib/oeqa/utils/postactions.py index 7b967edaad0..2792c16bccf 100644 --- a/meta/lib/oeqa/utils/postactions.py +++ b/meta/lib/oeqa/utils/postactions.py @@ -76,6 +76,18 @@ def list_and_fetch_failed_tests_artifacts(d, tc, artifacts_list, outputdir): bb.warn(f"Can not retrieve artifacts from test target: {e}") +# +# coredumpctl +# +def run_coredumpctl_info(d, tc, artifacts_list, outputdir): + # "info" shows the last coredump unless you specify a filter. This is the + # message ID for coredumps, so it shows all of the coredumps that are in the + # journal. + output_file = d.expand("${localstatedir}/log/coredumps.txt") + cmd = f"coredumpctl info MESSAGE_ID=fc2e22bc6ee647b6b90729ab34a250b1 | tee {output_file}" + tc.target.run(cmd, ignore_ssh_fails=True) + + ################################################################## # General post actions runner ################################################################## @@ -93,6 +105,7 @@ def run_failed_tests_post_actions(d, tc): os.chmod(outputdir, stat.S_IRWXU | stat.S_IRGRP | stat.S_IXGRP | stat.S_IROTH | stat.S_IXOTH) post_actions=[ + run_coredumpctl_info, list_and_fetch_failed_tests_artifacts, get_target_disk_usage, get_host_disk_usage From patchwork Wed Jul 15 16:43:51 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 92562 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F5DAC4450F for ; Wed, 15 Jul 2026 16:44:09 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.12280.1784133844852034590 for ; Wed, 15 Jul 2026 09:44:04 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=auBICRk2; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 280FE1477 for ; Wed, 15 Jul 2026 09:44:00 -0700 (PDT) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 147703F7B4 for ; Wed, 15 Jul 2026 09:44:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1784133844; bh=Fzy7uyh+fZB3Y4FqMFkCk8ag4jumibQ7KWsgJNLMgOU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=auBICRk204Oj0ytmpzBd0PJzZzU89eHRx19oFtLVWhEKoCIotwCBx4JS2cpPT0J9R KjS+WGqjSmTHkfK9HG9c0TDrq8fUgDwPK/5Jna/aEgRDZH0q86qs/g+hF74hVlkTaY dgMYS48ltKWdoFVSw+ONiJgQ1AlftsvYNqXDCKZw= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 4/4] classes/testimage: capture systemd coredumps on failure Date: Wed, 15 Jul 2026 17:43:51 +0100 Message-ID: <20260715164351.903912-4-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260715164351.903912-1-ross.burton@arm.com> References: <20260715164351.903912-1-ross.burton@arm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 15 Jul 2026 16:44:09 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/240992 Add /var/lib/systemd/coredump/ to the list of artifacts to save on test failures, as this is where coredumpctl will write any core dumps that have occured during testimage. Signed-off-by: Ross Burton --- meta/classes-recipe/testimage.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/classes-recipe/testimage.bbclass b/meta/classes-recipe/testimage.bbclass index 9902b8a5682..fd20eafdf90 100644 --- a/meta/classes-recipe/testimage.bbclass +++ b/meta/classes-recipe/testimage.bbclass @@ -28,6 +28,7 @@ TESTIMAGE_FAILED_QA_ARTIFACTS = "\ ${sysconfdir}/version \ ${sysconfdir}/os-release \ ${nonarch_libdir}/os-release \ + ${localstatedir}/lib/systemd/coredump/ \ " # If some ptests are run and fail, retrieve corresponding directories