From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id db2dAjL2FmELGgEAgWs5BA (envelope-from ) for ; Sat, 14 Aug 2021 00:46:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id UPxWOTH2FmG9LwAAB5/wlQ (envelope-from ) for ; Fri, 13 Aug 2021 22:46:09 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4B20327C1F for ; Sat, 14 Aug 2021 00:46:09 +0200 (CEST) Received: from localhost ([::1]:57454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEfwG-0005F0-8q for larch@yhetil.org; Fri, 13 Aug 2021 18:46:08 -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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628894769; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Z25tsjAW/Pj2IN+qajfaaGWDxbAAw8dT8sYYMD8Zco4=; b=SmuFMNMFb+NKhXDFcCWU/Tgx4jhDbMtjejkQ/GXpXARD3E1qyHMBk9Pq5BDQzEI+2eFDuj QBNTF/A+ds0qkbhpaUXjMMue0Ek1UnOX7FWQUJJvlrnhNDyVfy5FcRNG9eSGHlD3uHIYDp q4wALq1/xz0bPQmLEucbyKSc2InnhzBVYtFtKchzAp/GIke5gZlGt1lk8bKByc71xOH1Dv UYaEksx460SkdmbC6gfgip/RlQraCsVgyy8mVvUqDWcNUnfGh8oY1naTB6oESAx9n93T6b mgZybAScnJwR76L4N1PiofcE5CevF3HJDqAcYPL/hpfZNZjI8ObXvpHwLi83tQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628894769; a=rsa-sha256; cv=none; b=rUhtQzoAcyxZqYr6fV3wx4nijfmSlQqBkUmnZIBA/b2B3X0sJ03J91J1kiUuExoREkMqP6 lo8QApyggzSUXG9XJeN8RNZkJi+4iUaPkrQqpGpdXmnUGUPb1ShzhKn4HQqXvY5pLpJuw3 LQVXZqdoh55w6U1GFdsATVuT8L+qlz9XVfABXjyGVSLl+3qOWXmZHZAA/H920+1MXG/M6+ vEccD7pnS9GYrUSnowfOcjnnMteJypuDED7jsILuNuJauu9ePneDQgN3QDfun92w5xoMoi feA+0Zh7P8kmmOc2XBFZqX4Hlnmrd1MSFcvItfL5H7PEVXLMQIVPbfLHe33Oig== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=krPIPsBJ; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.69 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=krPIPsBJ; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 4B20327C1F X-Spam-Score: 3.69 X-Migadu-Scanner: scn1.migadu.com X-TUID: BPRRzvB3YLOa * 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) -- 2.30.2