From patchwork Fri Aug 13 22:45:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 32109 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 A272A27BC85; Fri, 13 Aug 2021 23:46:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 607C627BC78 for ; Fri, 13 Aug 2021 23:46:12 +0100 (BST) Received: from localhost ([::1]:57454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEfwJ-0005F0-BW for patchwork@mira.cbaines.net; Fri, 13 Aug 2021 18:46:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49186) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEfwA-0005Ak-Lb for guix-patches@gnu.org; Fri, 13 Aug 2021 18:46:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59896) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mEfwA-0006uI-En for guix-patches@gnu.org; Fri, 13 Aug 2021 18:46:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mEfwA-000856-5H for guix-patches@gnu.org; Fri, 13 Aug 2021 18:46:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50018] [PATCH v2 16/19] gnu: python-celery: Enable tests. References: <20210811234345.32228-1-monego@posteo.net> In-Reply-To: <20210811234345.32228-1-monego@posteo.net> Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 13 Aug 2021 22:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50018 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50018@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 50018-submit@debbugs.gnu.org id=B50018.162889474130995 (code B ref 50018); Fri, 13 Aug 2021 22:46:02 +0000 Received: (at 50018) by debbugs.gnu.org; 13 Aug 2021 22:45:41 +0000 Received: from localhost ([127.0.0.1]:43197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEfvp-00083q-AC for submit@debbugs.gnu.org; Fri, 13 Aug 2021 18:45:41 -0400 Received: from mout02.posteo.de ([185.67.36.66]:52021) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEfvn-00083a-4V for 50018@debbugs.gnu.org; Fri, 13 Aug 2021 18:45:40 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 63F51240103 for <50018@debbugs.gnu.org>; Sat, 14 Aug 2021 00:45:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1628894732; bh=i6hV/hIaJdKFnGH+mBn1RSnHRReQRnuQVtd1jiDGIoo=; h=From:To:Cc:Subject:Date:From; b=krPIPsBJh4pcnkbHxkIiGVjSWZA1zd/giLeU88WCci/V/v8WgAP431NrZWiqYk1PW 30mgs13q7FBK8ZyuOpEeRrLj+hhvXvqTKzRDyEMF0wOfsRwynYE2Riut5UhxNILpop ng40ERQka4awiACTSzxOMgJxMc0vibJlsys4NOMWqf4o9zYF6mzuEkAyLFjegYsNN9 4Y7he716f5N3gNhNSLOpn4er+KiM5rwS07K7/mRQ83/0hFsW1UZ82wfyzyIqHZB89j 0X5ic72Xg597EO7OxDNZKm7SDHVeGY9gETpbzvphap7xx2yUdfwdSfApoRIDcGabKF yjVy0UStxV/aA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Gmdtg38Mcz9rxD; Sat, 14 Aug 2021 00:45:31 +0200 (CEST) From: Vinicius Monego Date: Fri, 13 Aug 2021 22:45:21 +0000 Message-Id: <20210813224524.33933-1-monego@posteo.net> MIME-Version: 1.0 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-celery)[arguments]: Remove 'patch-requirements phase. Remove #:tests?. Override 'check phase. [native-inputs]: Add python-flaky, python-iniconfig, python-moto, python-msgpack, python-pytest-celery, python-pytest-subtests, python-pytest-timeout, python-toml. --- Enabled backend tests and added python-msgpack to native-inputs. Subsequent patches are rebase only. gnu/packages/python-xyz.scm | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 175bab1b89..772e04f5c6 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -13344,20 +13344,31 @@ Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.") (base32 "1c6lw31i3v81fyj4yn37lbvv70xdgb389iccirzyjr992vlkv6ld")))) (build-system python-build-system) (arguments - '(;; TODO The tests fail with Python 3.7 - ;; https://github.com/celery/celery/issues/4849 - #:tests? #f - #:phases + '(#:phases (modify-phases %standard-phases - (add-after 'unpack 'patch-requirements + (add-after 'unpack 'skip-problematic-tests (lambda _ - (substitute* "requirements/test.txt" - (("pytest>=3\\.0,<3\\.3") - "pytest>=3.0")) - #t))))) + (for-each delete-file-recursively + '("t/distro" ; tests requirements for CI + "t/integration")))) ; hangs tests + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "python" "-m" "pytest" "t" "-k" + ;; AssertionError. + "not test_check_privileges_no_fchown"))))))) (native-inputs `(("python-case" ,python-case) - ("python-pytest" ,python-pytest))) + ("python-flaky" ,python-flaky) + ("python-iniconfig" ,python-iniconfig) + ("python-moto" ,python-moto) + ("python-msgpack" ,python-msgpack) + ("python-pytest" ,python-pytest-6) + ("python-pytest-celery" ,python-pytest-celery) + ("python-pytest-subtests" ,python-pytest-subtests) + ("python-pytest-timeout" ,python-pytest-timeout) + ("python-toml" ,python-toml))) (propagated-inputs `(("python-billiard" ,python-billiard) ("python-boto3" ,python-boto3)