From patchwork Thu Jun 9 09:04:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lars-Dominik Braun X-Patchwork-Id: 39808 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1798C27BBEA; Thu, 9 Jun 2022 10:05:36 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B4A0627BBE9 for ; Thu, 9 Jun 2022 10:05:35 +0100 (BST) Received: from localhost ([::1]:51854 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzE6f-00014R-5J for patchwork@mira.cbaines.net; Thu, 09 Jun 2022 05:05:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzE6E-00013T-Gw for guix-patches@gnu.org; Thu, 09 Jun 2022 05:05:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51063) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nzE6B-0005eA-43 for guix-patches@gnu.org; Thu, 09 Jun 2022 05:05:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nzE6A-0005eC-Ud for guix-patches@gnu.org; Thu, 09 Jun 2022 05:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55866] [PATCH 2/2] gnu: python-debugpy: Disable tests. Resent-From: Lars-Dominik Braun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 09 Jun 2022 09:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55866 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55866@debbugs.gnu.org Received: via spool by 55866-submit@debbugs.gnu.org id=B55866.165476547821665 (code B ref 55866); Thu, 09 Jun 2022 09:05:02 +0000 Received: (at 55866) by debbugs.gnu.org; 9 Jun 2022 09:04:38 +0000 Received: from localhost ([127.0.0.1]:44959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzE5l-0005dM-St for submit@debbugs.gnu.org; Thu, 09 Jun 2022 05:04:38 -0400 Received: from mout-p-201.mailbox.org ([80.241.56.171]:34860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzE5Z-0005cw-9t for 55866@debbugs.gnu.org; Thu, 09 Jun 2022 05:04:36 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4LJdSc2hrDz9sWp for <55866@debbugs.gnu.org>; Thu, 9 Jun 2022 11:04:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6xq.net; s=MBO0001; t=1654765456; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wr1yvIrLDzivviuGcMmMTA0FQMU/l9AplRACTH+ajxM=; b=j+RwVaysQ3f+7cETE7E+PdULTkOS3kWVsa0NMIZQvMWGbYU0+NUcmopiWDoX7Z5ALGCfRD tvZE2t46invCu0FMMqReLPfo6XoPvwIkTTAPqBRcolj0Hv1scnaCxx/pAvy8ZsM333xuf9 hcDLoQOPb6/8YXgw8NzlkdQEj9alTYVzf/cgIU/7NnZmbDEs6l24MLxLOjOu28h6sQdudb 3JORuJc5boHjxWP+f8DIhV/Qz9NENcCyZXOfhB1mNRXCxZg3V+9OSSCqRb/Ts5sYbKMj6R h7J4mjIsGHnB26S8eDYxlWNVRPGeBZkEfNGRkWeDgpNjK6wpUMUmfN7zLrOLFg== Date: Thu, 9 Jun 2022 11:04:14 +0200 From: Lars-Dominik Braun Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-debugpy)[arguments]: Respect tests? in 'check phase and disable #:tests. --- gnu/packages/python-xyz.scm | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 8de8d571e4..8e79ea01ae 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -12399,6 +12399,7 @@ (define-public python-debugpy (build-system python-build-system) (arguments (list + #:tests? #f ; Fail on systems with YAMA LSM’s ptrace scope > 0. #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch-sh-in-tests @@ -12419,17 +12420,18 @@ (define-public python-debugpy (setenv "DEBUGPY_BUNDLING_DISABLED" "1"))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) - (invoke "pytest" "-vv" - "-n" (number->string (parallel-job-count)) - "-k" - (string-append - ;; These tests cannot be run in parallel because their - ;; test data would not be copied by xdist and lead to - ;; import errors. (see: - ;; https://github.com/microsoft/debugpy/issues/342 and - ;; https://github.com/microsoft/debugpy/issues/880). - "not test_custom_python_args " - "and not test_autokill "))))))) + (when tests? + (invoke "pytest" "-vv" + "-n" (number->string (parallel-job-count)) + "-k" + (string-append + ;; These tests cannot be run in parallel because their + ;; test data would not be copied by xdist and lead to + ;; import errors. (see: + ;; https://github.com/microsoft/debugpy/issues/342 and + ;; https://github.com/microsoft/debugpy/issues/880). + "not test_custom_python_args " + "and not test_autokill ")))))))) (native-inputs ;; See: https://raw.githubusercontent.com/microsoft/debugpy/ ;; main/tests/requirements.txt.