From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: bug#25177: Test failures don't cause some Python packages to fail [was Re: [PATCH 05/11] gnu: Add python-pygit2.] Date: Sun, 11 Dec 2016 17:34:54 -0500 Message-ID: <20161211223454.GA9474@jasmine> References: <20161211181237.24485-1-ng0@libertad.pw> <20161211181237.24485-6-ng0@libertad.pw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGCj1-0003jS-TK for bug-guix@gnu.org; Sun, 11 Dec 2016 17:36:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGCiw-0003hP-U2 for bug-guix@gnu.org; Sun, 11 Dec 2016 17:36:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:51349) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cGCiw-0003hE-Qc for bug-guix@gnu.org; Sun, 11 Dec 2016 17:36:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cGCiw-0002wL-5k for bug-guix@gnu.org; Sun, 11 Dec 2016 17:36:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50005) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGChx-0003Gy-Kz for bug-guix@gnu.org; Sun, 11 Dec 2016 17:35:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGChs-0003Gc-U9 for bug-guix@gnu.org; Sun, 11 Dec 2016 17:35:01 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:44503) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cGChs-0003GU-Q6 for bug-guix@gnu.org; Sun, 11 Dec 2016 17:34:56 -0500 Received: from localhost (c-73-188-17-148.hsd1.pa.comcast.net [73.188.17.148]) by mail.messagingengine.com (Postfix) with ESMTPA id 050837E808 for ; Sun, 11 Dec 2016 17:34:56 -0500 (EST) Content-Disposition: inline In-Reply-To: <20161211181237.24485-6-ng0@libertad.pw> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 25177@debbugs.gnu.org I noticed while building the package added by ng0's patch (below) that the test suite fails, but the check phase succeeds: [...] ====================================================================== ERROR: test_clone_with_credentials (test.test_repository.CloneRepositoryTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/guix-build-python-pygit2-0.24.2.drv-0/pygit2-0.24.2/test/test_repository.py", line 544, in test_clone_with_credentials self._temp_dir, callbacks=pygit2.RemoteCallbacks(credentials=pygit2.UserPass("libgit2", "libgit2"))) File "/tmp/guix-build-python-pygit2-0.24.2.drv-0/pygit2-0.24.2/pygit2/__init__.py", line 255, in clone_repository check_error(err) File "/tmp/guix-build-python-pygit2-0.24.2.drv-0/pygit2-0.24.2/pygit2/errors.py", line 64, in check_error raise GitError(message) _pygit2.GitError: curl error: Couldn't resolve host 'bitbucket.org' ---------------------------------------------------------------------- Ran 262 tests in 5.771s FAILED (errors=3) phase `check' succeeded after 8.9 seconds [...] Any ideas? On Sun, Dec 11, 2016 at 06:12:31PM +0000, ng0 wrote: > * gnu/packages/python.scm (python-pygit2): New variable. > --- > gnu/packages/python.scm | 30 ++++++++++++++++++++++++++++++ > 1 file changed, 30 insertions(+) > > diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm > index 2a49a060b..32f83deb4 100644 > --- a/gnu/packages/python.scm > +++ b/gnu/packages/python.scm > @@ -3376,6 +3376,36 @@ association studies (GWAS) on extremely large data sets.") > (define-public python2-numpy > (package-with-python2 python-numpy)) > > +(define-public python-pygit2 > + (package > + (name "python-pygit2") > + (version "0.24.2") > + (source > + (origin > + (method url-fetch) > + (uri (string-append "https://github.com/libgit2/" > + "pygit2/archive/v" version ".tar.gz")) > + (file-name (string-append name "-" version ".tar.gz")) > + (sha256 > + (base32 > + "1j7zkz2bsn4wqmkg1zkxb3r00xx28rkz9jdwcsikcl4ffa298xwa")))) > + (build-system python-build-system) > + (propagated-inputs > + `(("python-six" ,python-six) > + ("python-cffi" ,python-cffi) > + ("libgit2" ,libgit2) > + ("python-tox" ,python-tox))) > + (home-page "http://github.com/libgit2/pygit2") > + (synopsis "Python bindings for libgit2") > + (description > + "Pygit2 is a set of Python bindings to the libgit2 > +shared library, libgit2 implements Git plumbing.") > + ;; GPL2.0 only, with linking exception. > + (license license:gpl2))) > + > +(define-public python2-pygit2 > + (package-with-python2 python-pygit2)) > + > (define-public python-pyparsing > (package > (name "python-pyparsing") > -- > 2.11.0 > >