unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxime Devos <maximedevos@telenet.be>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 54658@debbugs.gnu.org
Subject: bug#54658: "pypi->guix-package, no wheel" test fails
Date: Wed, 13 Apr 2022 10:51:20 +0200	[thread overview]
Message-ID: <a3e3f337f4204f02176e6c7733562647dc48bb98.camel@telenet.be> (raw)
In-Reply-To: <a7a66c94dd3888497c47e3b7318e1a6736b019b9.camel@telenet.be>


[-- Attachment #1.1: Type: text/plain, Size: 2162 bytes --]

Maxime Devos schreef op wo 13-04-2022 om 09:52 [+0200]:
> Ludovic Courtès schreef op wo 13-04-2022 om 08:48 [+0200]:
> > Hi,
> > 
> > Maxime Devos <maximedevos@telenet.be> skribis:
> > 
> > > I noticed "./pre-inst-env guix build guix" fails on my computer
> due to
> > > "pypi->guix-package, no wheel" failing.  Here is an excerpt from
> the log:
> > 
> > Which commit are you building for?  For x86_64-linux?
> > 
> > Current ‘guix’ package seems to be fine:
> 
> I can reproduce it in a Guix checkout for
> 855097683230b756ba28636bed03ce904b6f3589 with "make check
> TESTS=tests/pypi.scm". (x86_64-linux)
> 
> It appears to be non-deterministic though --  the first "make check
> TESTS=tests/pypi.scm" failed, but the later ones succeeded.
> 
> I'll try adding some pk debugging and running it in a loop.

I added some pk:

;;; (found     (package (name "python-foo") (version "1.0.0") (source (origin (method url-fetch) (uri (pypi-uri "foo" version)) (sha256 (base32 "03rsmi1ricql316vak5gs89prv8494k1j7cgcgj7a763bcd6n4fa")))) (build-system python-build-system) (propagated-inputs (list python-bar python-foo)) (native-inputs (list python-pytest)) (home-page "http://example.com") (synopsis "summary") (description "summary") (license license:lgpl2.0)))

;;; (foo@1.0.0 (package (name "python-foo") (version "1.0.0") (source (origin (method url-fetch) (uri (pypi-uri "foo" version)) (sha256 (base32 "0z67xsvpivl9509m5l7n369nakszvnvm7ird09qgs6vn5pwqcl35")))) (build-system python-build-system) (propagated-inputs (list python-bar python-foo)) (native-inputs (list python-pytest)) (home-page "http://example.com") (synopsis "summary") (description "summary") (license license:lgpl2.0)))

;;; (foo@?? (package (name "python-foo") (version "1.0.0") (source (origin (method url-fetch) (uri (pypi-uri "foo" version)) (sha256 (base32 "03rsmi1ricql316vak5gs89prv8494k1j7cgcgj7a763bcd6n4fa")))) (build-system python-build-system) (

The problem is that the hash of 'found' and 'found@1.0.0' doesn't match :

03rsmi1ricql316vak5gs89prv8494k1j7cgcgj7a763bcd6n4fa
0z67xsvpivl9509m5l7n369nakszvnvm7ird09qgs6vn5pwqcl35

TBI ...

[-- Attachment #1.2: Type: text/x-patch, Size: 1497 bytes --]

diff --git a/tests/pypi.scm b/tests/pypi.scm
index 88bb0a3116..359dd58bb1 100644
--- a/tests/pypi.scm
+++ b/tests/pypi.scm
@@ -245,7 +245,7 @@ Requires-Dist: pytest (>=3.1.0); extra == 'testing'
                               (string-length test-json-1)))
                      ("https://example.com/foo-1.0.0-py2.py3-none-any.whl" #f)
                      (_ (error "Unexpected URL: " url)))))
-                (match (pypi->guix-package "foo")
+                (match (pk 'found (pypi->guix-package "foo"))
                   (('package
                      ('name "python-foo")
                      ('version "1.0.0")
@@ -265,10 +265,10 @@ Requires-Dist: pytest (>=3.1.0); extra == 'testing'
                    (and (string=? (bytevector->nix-base32-string
                                    test-source-hash)
                                   hash)
-                        (equal? (pypi->guix-package "foo" #:version "1.0.0")
-                                (pypi->guix-package "foo"))
-                        (guard (c ((error? c) #t))
-                          (pypi->guix-package "foo" #:version "42"))))
+                        (equal? (pk 'foo@1.0.0 (pypi->guix-package "foo" #:version "1.0.0"))
+                                (pk 'foo@?? (pypi->guix-package "foo")))
+                        (guard (c ((error? c) (pk 'c c #t)))
+                          (pk 'n (pypi->guix-package "foo" #:version "42")))))
                   (x
                    (pk 'fail x #f))))))
 

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

  reply	other threads:[~2022-04-13  8:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-31 20:26 bug#54658: "pypi->guix-package, no wheel" test fails Maxime Devos
2022-04-13  6:48 ` Ludovic Courtès
2022-04-13  7:52   ` Maxime Devos
2022-04-13  8:51     ` Maxime Devos [this message]
2022-04-20 20:15       ` Ludovic Courtès
2022-04-21 16:21         ` Maxime Devos
2022-05-30  8:29 ` Efraim Flashner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a3e3f337f4204f02176e6c7733562647dc48bb98.camel@telenet.be \
    --to=maximedevos@telenet.be \
    --cc=54658@debbugs.gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).