From: "Kyle Elbert" <kcelbert@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/cloudflare/
Date: Wed, 26 Jun 2024 10:29:00 +0000 (UTC) [thread overview]
Message-ID: <1719397644.1ffa96ec3d8a432df032bb01a8fc8712083d1a38.kcelbert@gentoo> (raw)
commit: 1ffa96ec3d8a432df032bb01a8fc8712083d1a38
Author: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
AuthorDate: Wed Jun 26 10:27:24 2024 +0000
Commit: Kyle Elbert <kcelbert <AT> gmail <DOT> 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 <kcelbert <AT> 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
}
next reply other threads:[~2024-06-26 10:29 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-26 10:29 Kyle Elbert [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-04-16 23:53 [gentoo-commits] repo/proj/guru:dev commit in: dev-python/cloudflare/ Kyle Elbert
2025-04-16 23:53 Kyle Elbert
2025-04-16 23:53 Kyle Elbert
2025-03-18 6:40 Kyle Elbert
2025-01-21 6:05 Kyle Elbert
2025-01-21 6:05 Kyle Elbert
2024-11-28 8:16 Kyle Elbert
2024-11-27 10:12 Kyle Elbert
2024-07-17 6:30 Kyle Elbert
2024-06-26 12:59 Kyle Elbert
2024-06-26 10:56 Kyle Elbert
2024-06-25 18:44 Kyle Elbert
2024-06-25 0:41 Kyle Elbert
2024-06-25 0:41 Kyle Elbert
2024-06-19 6:20 Kyle Elbert
2024-06-19 5:07 Kyle Elbert
2024-04-30 0:20 Kyle Elbert
2024-04-09 20:39 Kyle Elbert
2024-04-07 22:25 Kyle Elbert
2024-04-06 10:13 Kyle Elbert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1719397644.1ffa96ec3d8a432df032bb01a8fc8712083d1a38.kcelbert@gentoo \
--to=kcelbert@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox