From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (unknown [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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CA7AD15802E for ; Wed, 26 Jun 2024 10:29:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D8731E2A6E; Wed, 26 Jun 2024 10:29:02 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ACA5CE2A6E for ; Wed, 26 Jun 2024 10:29:02 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D263A340C43 for ; Wed, 26 Jun 2024 10:29:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 17530126B for ; Wed, 26 Jun 2024 10:29:00 +0000 (UTC) From: "Kyle Elbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Kyle Elbert" Message-ID: <1719397644.1ffa96ec3d8a432df032bb01a8fc8712083d1a38.kcelbert@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev 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: kcelbert X-VCS-Committer-Name: Kyle Elbert X-VCS-Revision: 1ffa96ec3d8a432df032bb01a8fc8712083d1a38 X-VCS-Branch: dev Date: Wed, 26 Jun 2024 10:29:00 +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: b48b241f-5064-4f91-8436-f998e3159562 X-Archives-Hash: 4343ab657396f749b75d66c94c938049 commit: 1ffa96ec3d8a432df032bb01a8fc8712083d1a38 Author: Kyle Elbert gmail com> AuthorDate: Wed Jun 26 10:27:24 2024 +0000 Commit: Kyle Elbert 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 }