From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8353815802E for ; Thu, 27 Jun 2024 08:41:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 99EAEE2B62; Thu, 27 Jun 2024 08:41:34 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7A0B2E2B62 for ; Thu, 27 Jun 2024 08:41:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1E7A334302A for ; Thu, 27 Jun 2024 08:41:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6D5C61D79 for ; Thu, 27 Jun 2024 08:41:30 +0000 (UTC) From: "David Roman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Roman" Message-ID: <1719397644.1ffa96ec3d8a432df032bb01a8fc8712083d1a38.davidroman@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/cloudflare/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/cloudflare/cloudflare-3.0.1.ebuild X-VCS-Directories: dev-python/cloudflare/ X-VCS-Committer: davidroman X-VCS-Committer-Name: David Roman X-VCS-Revision: 1ffa96ec3d8a432df032bb01a8fc8712083d1a38 X-VCS-Branch: master Date: Thu, 27 Jun 2024 08:41:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 229d5448-685b-4253-844f-3671aa118c46 X-Archives-Hash: f2ce86b4b2d17dda402efbf680f70b0b commit: 1ffa96ec3d8a432df032bb01a8fc8712083d1a38 Author: Kyle Elbert gmail com> AuthorDate: Wed Jun 26 10:27:24 2024 +0000 Commit: David Roman gmail com> CommitDate: Wed Jun 26 10:27:24 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1ffa96ec dev-python/cloudflare: deselect failing test for python3.11 Looks like its a small memory leak Will put in an upstream bug soon for them to look at Passes on python3.12 (and upstream's ci using 3.9) Closes: https://bugs.gentoo.org/934952 Signed-off-by: Kyle Elbert gmail.com> dev-python/cloudflare/cloudflare-3.0.1.ebuild | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/dev-python/cloudflare/cloudflare-3.0.1.ebuild b/dev-python/cloudflare/cloudflare-3.0.1.ebuild index d4fc4813a..aac3ee13b 100644 --- a/dev-python/cloudflare/cloudflare-3.0.1.ebuild +++ b/dev-python/cloudflare/cloudflare-3.0.1.ebuild @@ -68,15 +68,24 @@ python_test() { local EPYTEST_DESELECT=( tests/test_client.py::TestCloudflare::test_validate_headers tests/test_client.py::TestAsyncCloudflare::test_validate_headers ) - + if [ "${EPYTHON}" == "python3.11" ]; then + #fails due to slight memory leak + EPYTEST_DESELECT+=( + tests/test_client.py::TestCloudflare::test_copy_build_request ) + fi epytest } src_test() { - # Run prism mock api server, this is what needs nodejs + start_mock + distutils-r1_src_test + stop_mock +} +start_mock() { +# Run prism mock api server, this is what needs nodejs node --no-warnings node_modules/@stoplight/prism-cli/dist/index.js mock \ "cloudflare-spec.yml" >prism.log || die "Failed starting prism" & - local MOCK_PID=$! + echo $! >"${T}/mock.pid" || die # Wait for server to come online echo -n "Waiting for mockserver" while ! grep -q "✖ fatal\|Prism is listening" "prism.log" ; do @@ -86,6 +95,7 @@ src_test() { if grep -q "✖ fatal" prism.log; then die "Prism mock server failed" fi - distutils-r1_src_test - kill "${MOCK_PID}" +} +stop_mock() { + kill $(cat "${T}/mock.pid") || die }