From patchwork Tue Dec 1 06:43:19 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anuj Mittal X-Patchwork-Id: 106714 X-Patchwork-Delegate: anuj.mittal@oss.qualcomm.com Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.5856.1796107456599865538 for ; Mon, 30 Nov 2026 22:44:16 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=gnKKn7n+; dkim=pass header.i=@oss.qualcomm.com header.s=google header.b=Y3REdo3a; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: oss.qualcomm.com, ip: 205.220.180.131, mailfrom: anuj.mittal@oss.qualcomm.com) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B14to6Z742377 for ; Tue, 1 Dec 2026 06:44:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=FUHjN171foq Q9R3Yj+7LDTWks71gHaP5KbO1ZEuASvs=; b=gnKKn7n+oOwWtenT5y+KsSPliRh WwPMIHKBDs1lBY57YYNlq58gPm6zk1H6MAu8uDt5jpB2QbydrpWa8CxY4zRL498r tBuL2EO25BiwCM97QZpQCbaUJwgu608/luVgDTTuueyFXZuWd2Ib4rEiklZhMb0e 1bEoSQTefed8IdZ5rGp0UoF+/+r2TNOqRvX/g0MFgJ6f/a77ofJyide0xea/PPHK 31loBgCiEMBbbJxpb52gWxabbZR0vU23lu/8CnOGzVpniPv0Z9PXt7o38BMpXzGR 1TxVmBZlhQ35Xk+owZop5C1yshTnAJ5YEBkXPD2nXGI/1XEfcqV0K+leN2w== Received: from mail-dl1-f72.google.com (mail-dl1-f72.google.com [74.125.82.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j9qn4rcdt-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 01 Dec 2026 06:44:15 +0000 (GMT) Received: by mail-dl1-f72.google.com with SMTP id a92af1059eb24-1383723dfddso11515031c88.0 for ; Mon, 30 Nov 2026 22:44:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796107454; x=1796712254; 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=FUHjN171foqQ9R3Yj+7LDTWks71gHaP5KbO1ZEuASvs=; b=Y3REdo3aHWBvjf45XKDgPpkRt2GC63TqvSoUgzEetgWztsH8Gx9tqU/Ykz4C4fwo8K MTPE7tLJjwHE5Ij9anPvvcmvt/kz0pA40xiADEOIzv7O611wh+yIduMAADDLpt6E+4HQ TFSninwvBVld8L4byWLGsdYoeZhfnOAZcvbVVlG/TKYwxlDyGgaE52uGXJgoW9ol149b NpgHdO2syh2yx5dKPJlqP45MMR+NMlIXjC4w+QHz5aHDroV76ERhutYr0RoUlqHAuIhX twa56JxRvignUW1y77V0UYP94dCfEgSw/tdQnjZRglGJJpZ/gqyDnB7qViJSgCYgprdh nZtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796107454; x=1796712254; 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=FUHjN171foqQ9R3Yj+7LDTWks71gHaP5KbO1ZEuASvs=; b=x3S/XwirqbEB8cz9ZstHslQv3yIs+u3/Q0p++yrvlOmwsGAA6OB5ffClJwCCezOQz5 6ZhlRk8pWDCnt5hdPiEIthHivC4laOE3OFGMQJtk4UaQdWRkFzKhMEwiRzE+N5XBZuLM 45zMSwqI2dEsEswcYDxItSIdbag7qmLnl9HJDnJFc8ECVnoR8pZCdVVCRDPRQHAmph8T ok2EAouHWh6/cibx4T8X0lF5X7xYyX4lRHAhIOuHzbwg3zAkapBN6uXMmFue0ayWNfjo c6z6apNv5C5hyzdEUS+gnBhOPF4ysEPUGNfW9ZDJLlZhfr+LtRTRMAp+eF95tRktE5yz yY2Q== X-Gm-Message-State: APuU4Z/N02Q/X4skZVlBUTlD7+vYEGSCxnPMZc0SX+cr5citJmTGDO0b eDDWpHUF7Oj3QCN/wrP9IkqiORESPAKxjdSXKX1Tp0gPKiOLA84kqAzPvwENNcLyNvzaQ9ufg3z vnsUcweBVmywmg74JwxF81QpJuAi1X7EcylfW7EGubUVPvQ1Pmnyv7VJ4zNe48PRm1Sr8eRfwPr SLFufopDNykjsa0M7fg2JLSQ== X-Gm-Gg: AZFdTZeDTl1P/gSpSg0O450eBtxDx7iWhV9ggNIzkEfPQxvD+mt4jhp2LFJW27yNBq2 /KAKDHCge5Ze6za2BG/yfcPUY2wEZ9lU6MEj2K+uvY6qPPMYJs1JdnMMp/9zmW3tY9D7uaet2r6 WmeVM8iPS4aD/0r9k0g6RZkXvK07x8hvXYa0TMe7rXfJxzXqi1EOOC4pMG4F0SATu3JMjbUsFpz CA5DyvYzZOyBjlzX6j+qI2MYJ2BRtuTpRMxer/5jZr1q5TCHPBNd2EztKb75tVuTlrZvAvC6D5l ICIzYdGFuvjvq03eWg+o6Qz99mG+n0sx7vUKX7xi9P7Y7J1tIttrsRVL4XCG6J55svUpeMCtjNv fI12mEWjfo4PtbLts0JvOBLt1X2sNNYzY4XzwxCBimfN1LCcDKos4FmO4mCvrr9+z0zBl1Zk+/m oR0mIa X-Received: by 2002:a05:7301:619a:10b0:387:1743:6bb7 with SMTP id 5a478bee46e88-387174371d0mr3224000eec.41.1796107454199; Mon, 30 Nov 2026 22:44:14 -0800 (PST) X-Received: by 2002:a05:7301:619a:10b0:387:1743:6bb7 with SMTP id 5a478bee46e88-387174371d0mr3223978eec.41.1796107453642; Mon, 30 Nov 2026 22:44:13 -0800 (PST) Received: from hu-anujmitt-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-38566cd46c5sm132830468eec.11.2026.11.30.22.44.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 22:44:13 -0800 (PST) From: Anuj Mittal To: openembedded-devel@lists.openembedded.org Subject: [wrynose][meta-python][PATCH 03/45] python3-execnet: Fix test_remote_exec_module_is_removed ptest Date: Tue, 1 Dec 2026 12:13:19 +0530 Message-ID: <20261201064402.3934788-3-anuj.mittal@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261201064402.3934788-1-anuj.mittal@oss.qualcomm.com> References: <20261201064402.3934788-1-anuj.mittal@oss.qualcomm.com> MIME-Version: 1.0 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAxMDAyNiBTYWx0ZWRfX0hkpuAtqiaSN GK/3UC0bCOhrTjYhrxkr3Uw3/NfaVNO82LxwwV5n2Hp8AaUHDMHoFTfq/B1DgQDFTfRilx2Aq3j SdCuFZrSzXvQvZvBhXo/+TdQVhawgOFdaO/2tB2OpIZZpBRV6HmrHHtT67Nb3L0sqv9ZZ3s8+Iy c6MazuqeacSV443FQil11Fl9L7zsFQ/JqMQ/OIh6u3EFp06zBBYImjRh2hunBkd0yvpqYoii1q6 KrIYseFtG6mb0QH8GJIjDCpnYawfNfmQuNVGr9udtU8I/H+EAKl6fCsXE1RdSq9AgElQkk+yJbm snvBu2tXZ4wdw/kEeKNPBe2xZ5qPAgev4SuaSIFfEQ+pf+drgG2DaNZ2iuluQvhXNJwezEjhaa3 2nKAsV/8HtK09rL90xnEEZeU4J8kcotRScE/+Xw1LpL5WpzOi2D418nkzMtB61zVK8cR8vB79nV di3rgDoE000oLRFFwXA== X-Authority-Analysis: v=2.4 cv=JoBkP84C c=1 sm=1 tr=0 ts=6b0e6cbf cx=c_pps a=bS7HVuBVfinNPG3f6cIo3Q==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=NEAV23lmAAAA:8 a=EUspDBNiAAAA:8 a=pGLkceISAAAA:8 a=gGGAkme0yjlIFpRdhrAA:9 a=O8hF6Hzn-FEA:10 a=vBUdepa8ALXHeOFLBtFW:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAxMDAyNiBTYWx0ZWRfX3LRAOy7KItmn H780ZqD03cV87OYvYzeZSi8mJBli5YtydDosXZ/gnfLy5rrXZF2yDEemySU7B52rBZYg4bzLLMK TwWrYnJpr6NbwO0CjGFgxcwQqXvb2l0= X-Proofpoint-GUID: WgDxsJL1s1F2zN-RJAotpaaQMlxd-1VX X-Proofpoint-ORIG-GUID: WgDxsJL1s1F2zN-RJAotpaaQMlxd-1VX X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-01_01,2026-11-30_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 priorityscore=1501 impostorscore=0 clxscore=1015 phishscore=0 suspectscore=0 spamscore=0 bulkscore=0 malwarescore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612010026 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 ; Tue, 01 Dec 2026 06:44:24 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133697 From: Khem Raj The test is parametrized over gateway types; it imports "remote" from its tmp_path and then deletes that directory, but the module stays in sys.modules. Every run after the first got the stale module back and failed with "OSError: could not get source code". Drop the cached module before importing it. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj (cherry picked from commit 98f68d8c34b55c14e32c44d17be228acb17ab8a0) Signed-off-by: Anuj Mittal --- ...hed-remote-module-in-test_remote_exe.patch | 38 +++++++++++++++++++ .../python/python3-execnet_2.1.2.bb | 2 + 2 files changed, 40 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-execnet/0001-testing-Drop-cached-remote-module-in-test_remote_exe.patch diff --git a/meta-python/recipes-devtools/python/python3-execnet/0001-testing-Drop-cached-remote-module-in-test_remote_exe.patch b/meta-python/recipes-devtools/python/python3-execnet/0001-testing-Drop-cached-remote-module-in-test_remote_exe.patch new file mode 100644 index 0000000000..23957588c8 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-execnet/0001-testing-Drop-cached-remote-module-in-test_remote_exe.patch @@ -0,0 +1,38 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Wed, 4 Nov 2026 16:22:44 -0800 +Subject: [PATCH] testing: Drop cached remote module in + test_remote_exec_module_is_removed + +test_remote_exec_module_is_removed is parametrized over the gateway +fixtures. The first run imports "remote" from its tmp_path and then +removes that directory, but the module stays in sys.modules. Later +runs then get the stale module back from "import remote", whose source +file is gone, and remote_exec() fails with: + + OSError: could not get source code + +Remove "remote" from sys.modules before importing it, so each run +imports the module it just wrote. + +Upstream-Status: Submitted [https://github.com/pytest-dev/execnet/pull/442] + +Signed-off-by: Khem Raj +--- + testing/test_gateway.py | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/testing/test_gateway.py b/testing/test_gateway.py +index 634f237..c571bbd 100644 +--- a/testing/test_gateway.py ++++ b/testing/test_gateway.py +@@ -130,6 +130,9 @@ class TestBasicGateway: + ) + + monkeypatch.syspath_prepend(tmp_path) ++ # The test is parametrized; drop the module cached by a previous run, ++ # whose source file has since been removed. ++ monkeypatch.delitem(sys.modules, "remote", raising=False) + import remote # type: ignore[import-not-found] + + ch = gw.remote_exec(remote) diff --git a/meta-python/recipes-devtools/python/python3-execnet_2.1.2.bb b/meta-python/recipes-devtools/python/python3-execnet_2.1.2.bb index 34f0a1f670..d94ab6375b 100644 --- a/meta-python/recipes-devtools/python/python3-execnet_2.1.2.bb +++ b/meta-python/recipes-devtools/python/python3-execnet_2.1.2.bb @@ -11,6 +11,8 @@ DEPENDS += "\ python3-hatch-vcs-native \ " +SRC_URI += "file://0001-testing-Drop-cached-remote-module-in-test_remote_exe.patch" + SRC_URI[sha256sum] = "63d83bfdd9a23e35b9c6a3261412324f964c2ec8dcd8d3c6916ee9373e0befcd" inherit ptest-python-pytest pypi python_hatchling