From patchwork Wed Dec 2 16:14:59 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Gamblin X-Patchwork-Id: 107028 Received: from mail-qv1-f52.google.com (mail-qv1-f52.google.com [209.85.219.52]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.39682.1796228103670770789 for ; Wed, 02 Dec 2026 08:15:04 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@baylibre.com header.s=google header.b=X4lg0Ne0; spf=pass (domain: baylibre.com, ip: 209.85.219.52, mailfrom: tgamblin@baylibre.com) Received: by mail-qv1-f52.google.com with SMTP id 6a1803df08f44-92182125ec0so75608556d6.2 for ; Wed, 02 Dec 2026 08:15:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1796228103; x=1796832903; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=/l1PUvmF0jWa3u19j/oJX9EPhtlWsSlyyKb0Cor93eU=; b=X4lg0Ne05VS22lT0N4HY1QaYy4AVqc5H9TAki5OcWR0hqscGzOHm3irZgxRGLayWQi qvP4mLWLFzWzl0IBUDeYKt/V4dxZkkQwtzd1E41/hMdTa4lgTfoDkykzZAt/ybd4OIfv p9sxcO44Wy8Yr288ta6azQCNNQePio4vaY2V5SmWjRWmcZbDGI0l1XgL3/etB2TtnNZn pwquqAlTgw3jNsp1KK4qY4UasuptXwQaVIfJIbX8j8I5uzuSlusNQm6e9O1kl/KrWL/O HGc8ocT6DF3sVMOnd2r7RSSzx9oo7a2TVAoDPeNa7c4ywlzbAVXJsXWZtA7PWNZQjf9+ F39w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796228103; x=1796832903; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date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JWNAQlRq6fL/L+iKJLVW82P2x7ynF dI7p8JPoXyfHUS7gHOpZMV4OjBnnAwgJvIIyw9Po3IuDXnrREpGR+3Bcqn0ezTyRy/dKOFK5JWr O2xi+rnkFY+XSoiTavyBqiTlwkBJp83M+rrwP2DKUSZkb38kNtNQ6BHRtrV8CZL1oOoOUcW/BR8 WHB93Qfxv0w== X-Received: by 2002:ad4:5ec5:0:b0:921:3e26:9994 with SMTP id 6a1803df08f44-9213e2699camr772366706d6.38.1796228102485; Wed, 02 Dec 2026 08:15:02 -0800 (PST) Return-Path: Received: from megalith.oryx-coho.ts.net ([2001:1970:3847:e000:e8bd:ca0f:c232:9f10]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-92134a08552sm351123076d6.34.2026.12.02.08.15.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 08:15:01 -0800 (PST) From: Trevor Gamblin To: openembedded-core@lists.openembedded.org Subject: [OE-core][PATCH 1/2] gnutls: improve disallowed test matching Date: Wed, 2 Dec 2026 11:14:59 -0500 Message-ID: <20261202161500.713127-1-tgamblin@baylibre.com> X-Mailer: git-send-email 2.56.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 02 Dec 2026 16:15:05 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251845 run-ptest is using 'grep -w' to determine disabled tests in is_disallowed(). If a disabled test's name is a subset of another, e.g. 'mini-dtls-hello-verify' is intended to be skipped but we also have 'mini-dtls-hello-verify-48', then both are disabled. This old matching mechanism was actually disabling six extra tests, which are re-enabled now. Results before change (qemuriscv64): |gnutls test summary: |-------------------- |total: 382 |pass : 367 |fail : 0 |skip : 15 | |DURATION: 227 |END: /usr/lib/gnutls/ptest |2026-12-02T15:17 |STOP: ptest-runner |TOTAL: 1 FAIL: 0 Results after change (qemuriscv64): |gnutls test summary: |-------------------- |total: 388 |pass : 372 |fail : 0 |skip : 16 | |DURATION: 224 |END: /usr/lib/gnutls/ptest |2026-12-02T14:58 |STOP: ptest-runner |TOTAL: 1 FAIL: 0 |root@qemuriscv64:~# Signed-off-by: Trevor Gamblin --- meta/recipes-support/gnutls/gnutls/run-ptest | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/meta/recipes-support/gnutls/gnutls/run-ptest b/meta/recipes-support/gnutls/gnutls/run-ptest index 1d6999669a..34cb6cc12c 100644 --- a/meta/recipes-support/gnutls/gnutls/run-ptest +++ b/meta/recipes-support/gnutls/gnutls/run-ptest @@ -25,9 +25,16 @@ rjob() { } is_disallowed() { - local key=$1 - $(echo ${test_disallowlist} | grep -w -q ${key}) - return $? + # grep -w treats '-' as a word boundary, so tests whose names also appear in + # others e.g. "mini-dtls-hello-verify" in "mini-dtls-hello-verify-48" are + # unintentionally skipped as well. Make it more precise by checking if + # test_disallowlist is in ' ' for each test + # case, which should also be faster than running grep or another process + # each time. + case " ${test_disallowlist} " in + *" $1 "*) return 0 ;; + esac + return 1 } # TODO From patchwork Wed Dec 2 16:15:00 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Gamblin X-Patchwork-Id: 107029 Received: from mail-qv1-f43.google.com (mail-qv1-f43.google.com [209.85.219.43]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.39300.1796228105336083311 for ; Wed, 02 Dec 2026 08:15:05 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@baylibre.com header.s=google header.b=P0N8xmvO; spf=pass (domain: baylibre.com, ip: 209.85.219.43, mailfrom: tgamblin@baylibre.com) Received: by mail-qv1-f43.google.com with SMTP id 6a1803df08f44-92110499585so114952546d6.0 for ; Wed, 02 Dec 2026 08:15:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1796228104; x=1796832904; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=suueOq3meQfItcFTDGKpAm/jvKyvt4IGyiWbsG73SDs=; b=P0N8xmvOuYBEanCZ9ze30tz1kOxKwhhkXqOVX172PBhqa3tnaninluLzNhuzKhZY9B 7tkiMBVyLauNXf6qSvR2l/mNRyxNAZqh4z3aMAa4VdFHx1IAHj7WuX1tDkD1xbo71odf Ze0g2KUoeRmFO/zHi4H3/H8gbeABn9AD8RcD13i/D1mG1b4cQRa+dqKlJLYtdOIj2Cpx eSoadXckPMvpoGjSI2vtIHCMZPf4pg0XxkDBNCeLyApFAx/Hz5753aVdqxHWpCNMLlAm i3IVqvzd5MemWvI2fru5a38D+lK9NsCFHfDkC95i44llPY7Hf53k/yH2mo6xSIjGjWjL cTzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796228104; x=1796832904; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=suueOq3meQfItcFTDGKpAm/jvKyvt4IGyiWbsG73SDs=; b=sMYynOMWAIqbdMXThWqGUQ6Nd9omn4is3QJtGokJsioxmzKSWeof51U7PMlmEx1tfR g6YT6NFwnKRhkdOe9I1TSmFLzycc3v9ZLx4uvNbHFVZgEc8zuJPM25jJBu7Ain1O3yPn MDg+/Oly7re8G7glyDk8JzGXdpa5MKphK3qKkl00UTIX+RBaiX7mySCgdVIy3oiBCwPs icTD+rypNG/aCWpwUzQ/yazI02YtyX0PUyQ0WiDJ37ikQDHEal5ehKjQ4OD/pbN2bOWO 3afjJvz0/LqyTzu0T0k0kAAOXAirkIOy/ZnFdVlGfWMqfyFez+hesSZ9gh0rl4tJPXTx EBtw== X-Gm-Message-State: APuU4Z855u/Bf/qwIhCotfaEWbDtmKOxv6h8XvqkQM/qYP5M7URvqFRD 3D2GD9oinrwDiaqh0kWImOtzfbJlvscuENlCfGEJW2bcPiAn0D/yeq4+Wu02mQ1cib7l6fvAQ1W 26sqf X-Gm-Gg: AZFdTZf+w2G26u6e5IXW9cmDYOdsi+9cXxD+PuNY8TYkcFTG3jKRcsEOGN6RIV84M4I ZVh47GPY+mLvNUG2EEZtnopYHulfmNNlICuaUvUtZpONdnN2XKZgBXyUjjKHl9O3rbsB16l0RJM B06SCgBOOPQFI2rKqhPuvb/+UR9XTpgAladcpEtWZZ9nykktFRzsEXjD18VHyCSxxZpz+y9CXaO EExyibXQ/6VwYATipC5FzHjaKz2J4JSYJhayFngcW6dwHvBlqxtTJ95Ysz1P8BqYPYPsGCI7H1C +cf6h7QnuhEzyCuTum1/IJJF2TsyH9ik0nP5i7oLaVlwcg8nckfIkU2UcJ5RZmktA76bBIOMkuC oWee/DQFiwrf82dXMt1FPjM1y+NEPNKadDk+YQ6fHxOpwut0WHotPj2ba+p707wd1DGdVkU3CCg nRZ9dwA9BF8538+Kof1xw6xVk1bq9gfK43kNoT36gvPngmC4EPylztk4QoYblE+qNK92yjTDmca TYXhiPcDWIzisd1QMb6JMdqG/oueMzTGTO7uzanBz18LpPvCAkkBcY5jK7AaIznZ1BlbGXwe6fs Iy+MXWnWxKt+HnjNqH2fspG5A1bOxFTU3kW04TTtRFxLFeQPLwENBDIIWWIUVABznXMY0uZyNuD nKSxDXf3ZZM0= X-Received: by 2002:a05:6214:469c:b0:921:b4d3:b8b5 with SMTP id 6a1803df08f44-921b4d3bc16mr165224246d6.13.1796228103933; Wed, 02 Dec 2026 08:15:03 -0800 (PST) Return-Path: Received: from megalith.oryx-coho.ts.net ([2001:1970:3847:e000:e8bd:ca0f:c232:9f10]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-92134a08552sm351123076d6.34.2026.12.02.08.15.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 08:15:02 -0800 (PST) From: Trevor Gamblin To: openembedded-core@lists.openembedded.org Subject: [OE-core][PATCH 2/2] gnutls: skip long-duration tests, sort test_disallow list Date: Wed, 2 Dec 2026 11:15:00 -0500 Message-ID: <20261202161500.713127-2-tgamblin@baylibre.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261202161500.713127-1-tgamblin@baylibre.com> References: <20261202161500.713127-1-tgamblin@baylibre.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 02 Dec 2026 16:15:15 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251846 gnutls' ptest suite has been intermittently failing on the Autobuilder for some time, particularly for qemuriscv64. Looking at the test durations (using a modified run-ptest to time them), the longest are: |gnutls slowest tests: |-------------------- | 30.05s mini-dtls-hello-verify-48 | 25.83s tls12-ffdhe | 19.23s x509sign-verify-ecdsa | 17.83s x509sign-verify-rsa | 10.20s pkcs12_encode Drop 'mini-dtls-hello-verify-48' and 'tls12-ffdhe' only, which cuts a combined ~56s from the test suite (when emulated on a Ryzen 9 7900 x86_64 machine), leaving 'x509sign-verify-ecdsa' as the longest remaining test at ~19s. This should help when the host system is under heavy load, while retaining most of the functionality being validated in the ptest. Also sort the test_disallowlist alphabetically. [YOCTO #16162] Signed-off-by: Trevor Gamblin --- meta/recipes-support/gnutls/gnutls/run-ptest | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/recipes-support/gnutls/gnutls/run-ptest b/meta/recipes-support/gnutls/gnutls/run-ptest index 34cb6cc12c..5342f5d25a 100644 --- a/meta/recipes-support/gnutls/gnutls/run-ptest +++ b/meta/recipes-support/gnutls/gnutls/run-ptest @@ -44,10 +44,12 @@ is_disallowed() { # currently not exported to target. test_disallowlist="" +test_disallowlist="${test_disallowlist} @EXTRA_TEST_DISALLOWLIST@" test_disallowlist="${test_disallowlist} compress-cert-conf" test_disallowlist="${test_disallowlist} dtls-stress" test_disallowlist="${test_disallowlist} handshake-large-cert" test_disallowlist="${test_disallowlist} id-on-xmppAddr" +test_disallowlist="${test_disallowlist} mini-dtls-hello-verify-48" test_disallowlist="${test_disallowlist} mini-x509-cas" test_disallowlist="${test_disallowlist} pkcs12_simple" test_disallowlist="${test_disallowlist} protocol-set-allowlist" @@ -59,8 +61,8 @@ test_disallowlist="${test_disallowlist} system-override-hash" test_disallowlist="${test_disallowlist} system-override-sig" test_disallowlist="${test_disallowlist} system-override-sig-tls" test_disallowlist="${test_disallowlist} system-prio-file" +test_disallowlist="${test_disallowlist} tls12-ffdhe" test_disallowlist="${test_disallowlist} x509cert-tl" -test_disallowlist="${test_disallowlist} @EXTRA_TEST_DISALLOWLIST@" LOG=${PWD}/tests.log cd tests