all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Build failure in pyicu
@ 2017-12-15  9:26 Mark Meyer
  2017-12-15 10:41 ` Tobias Geerinckx-Rice
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Meyer @ 2017-12-15  9:26 UTC (permalink / raw)
  To: guix-devel

Hi,
I've got a build failure in PyICU (python2-pyicu) during the test phase:

======================================================================
FAIL: testSurrogatePairs (test.test_Script.TestScript)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
  "/tmp/guix-build-python2-pyicu-1.9.8.drv-0/PyICU-1.9.8/test/test_Script.py",
  line 48, in testSurrogatePairs
    self.assertEqual(['Latn', 'Deva', 'Hani', 'Zzzz', 'Zzzz'], names)
AssertionError: Lists differ: ['Latn', 'Deva', 'Hani', 'Zzzz... !=
['Latn', 'Deva', 'Hani', 'Zyyy...

First differing element 3:
'Zzzz'
'Zyyy'

- ['Latn', 'Deva', 'Hani', 'Zzzz', 'Zzzz']
?                            ^^^     ^^^

+ ['Latn', 'Deva', 'Hani', 'Zyyy', 'Zyyy']
?                            ^^^     ^^^


----------------------------------------------------------------------
Ran 39 tests in 0.458s

FAILED (failures=1)
phase `check' failed after 0.9 seconds
builder for
`/gnu/store/s62yr0llv2f2yf7m36p4dq7r45ciy46b-python2-pyicu-1.9.8.drv'
failed with exit code 1
@ build-failed
/gnu/store/s62yr0llv2f2yf7m36p4dq7r45ciy46b-python2-pyicu-1.9.8.drv - 1
builder for
`/gnu/store/s62yr0llv2f2yf7m36p4dq7r45ciy46b-python2-pyicu-1.9.8.drv'
failed with exit code 1
cannot build derivation
`/gnu/store/1s0wa8lq3xgmjaf3zv9d3limwyh5538w-virtaal-0.4.1.drv': 1
dependencies couldn't be built
guix build: error: build failed: build of
`/gnu/store/1s0wa8lq3xgmjaf3zv9d3limwyh5538w-virtaal-0.4.1.drv' failed

Cheers, Mark
-- 
  Mark Meyer
  mark@ofosos.org

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Build failure in pyicu
  2017-12-15  9:26 Build failure in pyicu Mark Meyer
@ 2017-12-15 10:41 ` Tobias Geerinckx-Rice
  2017-12-15 10:47   ` [PATCH] gnu: python2-pyicu: Disable failing test Tobias Geerinckx-Rice
  0 siblings, 1 reply; 7+ messages in thread
From: Tobias Geerinckx-Rice @ 2017-12-15 10:41 UTC (permalink / raw)
  To: mark, guix-devel

Mark Meyer wrote on 15/12/17 at 10:26:
> Hi,
> I've got a build failure in PyICU (python2-pyicu) during the test phase:
> 
> ======================================================================
> FAIL: testSurrogatePairs (test.test_Script.TestScript)
> ----------------------------------------------------------------------

Hrm, this looks like another encoding- or locale-related failure[0] —
although I guess with packages like these, all failures look that way.

I suggest simply deleting the test, like we previously did with
test_DateTimeParserGenerator.py. I'm testing that now, but slowly...

Kind regards,

T G-R

[0]: https://github.com/ovalhub/pyicu/issues/61

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH] gnu: python2-pyicu: Disable failing test.
  2017-12-15 10:41 ` Tobias Geerinckx-Rice
@ 2017-12-15 10:47   ` Tobias Geerinckx-Rice
  2017-12-15 10:58     ` Mark Meyer
  0 siblings, 1 reply; 7+ messages in thread
From: Tobias Geerinckx-Rice @ 2017-12-15 10:47 UTC (permalink / raw)
  To: mark; +Cc: guix-devel

* gnu/packages/python.scm (python2-pyicu)[arguments]: Add
‘delete-failing-test’ phase.
---

Mark,

...of course it finishes right after I send that previous e-mail.

This patch makes the build pass for me. Could you confirm whether it
works for you?

Kind regards,

T G-R

 gnu/packages/python.scm | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index e36056d45..372b5afe3 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1130,7 +1130,20 @@ Python 3.3+.")
     (license license:x11)))
 
 (define-public python2-pyicu
-  (package-with-python2 python-pyicu))
+  (let ((base (package-with-python2
+                (strip-python2-variant python-pyicu))))
+    (package
+      (inherit base)
+      (arguments
+       `(,@(package-arguments base)
+         #:phases
+         (modify-phases %standard-phases
+           (add-before 'check 'delete-failing-test
+             (lambda _
+               ;; XXX: This fails due to Unicode issues unique to Python 2,
+               ;; it seems: <https://github.com/ovalhub/pyicu/issues/61>.
+               (delete-file "test/test_Script.py")
+               #t))))))))
 
 (define-public python2-dogtail
   ;; Python 2 only, as it leads to "TabError: inconsistent use of tabs and
-- 
2.15.0

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] gnu: python2-pyicu: Disable failing test.
  2017-12-15 10:47   ` [PATCH] gnu: python2-pyicu: Disable failing test Tobias Geerinckx-Rice
@ 2017-12-15 10:58     ` Mark Meyer
  2017-12-15 11:17       ` Tobias Geerinckx-Rice
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Meyer @ 2017-12-15 10:58 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: guix-devel

Tobias,
thanks for the patch, this works for me :)

Cheers, Mark

On Fri, Dec 15, 2017, at 11:47, Tobias Geerinckx-Rice wrote:
> * gnu/packages/python.scm (python2-pyicu)[arguments]: Add
> ‘delete-failing-test’ phase.
> ---
> 
> Mark,
> 
> ...of course it finishes right after I send that previous e-mail.
> 
> This patch makes the build pass for me. Could you confirm whether it
> works for you?
> 
> Kind regards,
> 
> T G-R
> 
>  gnu/packages/python.scm | 15 ++++++++++++++-
>  1 file changed, 14 insertions(+), 1 deletion(-)
> 
> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
> index e36056d45..372b5afe3 100644
> --- a/gnu/packages/python.scm
> +++ b/gnu/packages/python.scm
> @@ -1130,7 +1130,20 @@ Python 3.3+.")
>      (license license:x11)))
>  
>  (define-public python2-pyicu
> -  (package-with-python2 python-pyicu))
> +  (let ((base (package-with-python2
> +                (strip-python2-variant python-pyicu))))
> +    (package
> +      (inherit base)
> +      (arguments
> +       `(,@(package-arguments base)
> +         #:phases
> +         (modify-phases %standard-phases
> +           (add-before 'check 'delete-failing-test
> +             (lambda _
> +               ;; XXX: This fails due to Unicode issues unique to Python
> 2,
> +               ;; it seems:
> <https://github.com/ovalhub/pyicu/issues/61>.
> +               (delete-file "test/test_Script.py")
> +               #t))))))))
>  
>  (define-public python2-dogtail
>    ;; Python 2 only, as it leads to "TabError: inconsistent use of tabs
>    and
> -- 
> 2.15.0
> 


-- 
  Mark Meyer
  mark@ofosos.org

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] gnu: python2-pyicu: Disable failing test.
  2017-12-15 10:58     ` Mark Meyer
@ 2017-12-15 11:17       ` Tobias Geerinckx-Rice
  2017-12-15 12:30         ` Mark Meyer
  0 siblings, 1 reply; 7+ messages in thread
From: Tobias Geerinckx-Rice @ 2017-12-15 11:17 UTC (permalink / raw)
  To: mark; +Cc: guix-devel

Mark,

Mark Meyer wrote on 15/12/17 at 11:58:
> thanks for the patch, this works for me :)
Wonderful! Pushed as d65854bdda4ad5464fcd8fe6289eedc13ea82ba1.

(Just FYI: if you post to bug-guix@gnu.org next time, you'll get the
 visceral satisfaction of closing yet another bug. ;-)

Kind regards,

T G-R

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] gnu: python2-pyicu: Disable failing test.
  2017-12-15 11:17       ` Tobias Geerinckx-Rice
@ 2017-12-15 12:30         ` Mark Meyer
  2017-12-15 15:45           ` Tobias Geerinckx-Rice
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Meyer @ 2017-12-15 12:30 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: guix-devel

However, for some reason python2-vobject fails to pick up this change
and fails to build :(

On Fri, Dec 15, 2017, at 12:17, Tobias Geerinckx-Rice wrote:
> Mark,
> 
> Mark Meyer wrote on 15/12/17 at 11:58:
> > thanks for the patch, this works for me :)
> Wonderful! Pushed as d65854bdda4ad5464fcd8fe6289eedc13ea82ba1.
> 
> (Just FYI: if you post to bug-guix@gnu.org next time, you'll get the
>  visceral satisfaction of closing yet another bug. ;-)
> 
> Kind regards,
> 
> T G-R


-- 
  Mark Meyer
  mark@ofosos.org

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] gnu: python2-pyicu: Disable failing test.
  2017-12-15 12:30         ` Mark Meyer
@ 2017-12-15 15:45           ` Tobias Geerinckx-Rice
  0 siblings, 0 replies; 7+ messages in thread
From: Tobias Geerinckx-Rice @ 2017-12-15 15:45 UTC (permalink / raw)
  To: mark; +Cc: guix-devel

Mark,

Mark Meyer wrote on 15/12/17 at 13:30:
> However, for some reason python2-vobject fails to pick up this change
> and fails to build :(

Nuts. You're right.

Long story and 2 drafts short: I had some mystical (and wrong) ideas
about package-with-python2 that have now been set straight and pushed to
master.

It can do magic all right, but only if you slowly put the rabbit in the
hat while it's watching and loudly say ‘Loook! Rabbit!’.

Like a dog wizard,

T G-R

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-12-15 15:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-15  9:26 Build failure in pyicu Mark Meyer
2017-12-15 10:41 ` Tobias Geerinckx-Rice
2017-12-15 10:47   ` [PATCH] gnu: python2-pyicu: Disable failing test Tobias Geerinckx-Rice
2017-12-15 10:58     ` Mark Meyer
2017-12-15 11:17       ` Tobias Geerinckx-Rice
2017-12-15 12:30         ` Mark Meyer
2017-12-15 15:45           ` Tobias Geerinckx-Rice

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.