GNU bug report logs - #68705
[PATCH] gnu: python-pyro-ppl: Fix build.

Previous Next

Package: guix-patches;

Reported by: Sharlatan Hellseher <sharlatanus <at> gmail.com>

Date: Thu, 25 Jan 2024 02:58:01 UTC

Severity: normal

Tags: patch

Done: Sharlatan Hellseher <sharlatanus <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 68705 in the body.
You can then email your comments to 68705 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#68705; Package guix-patches. (Thu, 25 Jan 2024 02:58:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sharlatan Hellseher <sharlatanus <at> gmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 25 Jan 2024 02:58:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: guix-patches <at> gnu.org
Cc: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Subject: [PATCH] gnu: python-pyro-ppl: Fix build.
Date: Thu, 25 Jan 2024 02:57:22 +0000
As seen in https://ci.guix.gnu.org/build/3347962/log/raw.

* gnu/packages/machine-learning.scm (python-pyro-ppl): Fix build by
disable more failing tests.
[build-system]: Swap to pyproject-build-system.
[arguments]: Refactor to use <#:test-flags> instead of custom 'check
phase. Add "-n" flag to pytest to accelerate tests. Silent more failing
tests.

Change-Id: Ia1069dee9e7e9534f694e01a847ae27d7a787391
---
 gnu/packages/machine-learning.scm | 37 +++++++++++++++++--------------
 1 file changed, 20 insertions(+), 17 deletions(-)

diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 5ae210f375..4757cd7265 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -22,6 +22,7 @@
 ;;; Copyright © 2023 Navid Afkhami <navid.afkhami <at> mdc-berlin.de>
 ;;; Copyright © 2023 Zheng Junjie <873216071 <at> qq.com>
 ;;; Copyright © 2023 Troy Figiel <troy <at> troyfigiel.com>
+;;; Copyright © 2043 Sharlatan Hellseher <sharlatanus <at> gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -4848,24 +4849,26 @@ (define-public python-pyro-ppl
        (file-name (git-file-name name version))
        (sha256
         (base32 "0n1vsih99pvswcaygdxkc6kq6r48ny130z6ca8pp3281396r2ykw"))))
-    (build-system python-build-system)
+    (build-system pyproject-build-system)
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (replace 'check
-           (lambda* (#:key tests? #:allow-other-keys)
-             ;; This tests features that are only implemented when non-free
-             ;; software is available (Intel MKL or CUDA).
-             (for-each delete-file
-                       (list "tests/distributions/test_spanning_tree.py"
-                             "tests/infer/mcmc/test_mcmc_api.py"))
-
-             ;; Four test_gamma_elbo tests fail with bad values for unknown
-             ;; reasons.
-             (delete-file "tests/distributions/test_rejector.py")
-             ;; This test fails sometimes.
-             (delete-file "tests/optim/test_optim.py")
-             (invoke "pytest" "-vv" "--stage=unit"))))))
+     (list
+      ;; Tests take about 45min to pass.
+      #:test-flags
+      #~(list
+         "--stage=unit"
+         "-n" (number->string (parallel-job-count))
+         ;; This tests features that are only implemented when non-free
+         ;; software is available (Intel MKL or CUDA).
+         "--ignore=tests/distributions/test_spanning_tree.py"
+         "--ignore=tests/infer/mcmc/test_mcmc_api.py"
+         ;; Four test_gamma_elbo tests fail with bad values for unknown
+         ;; reasons.
+         "--ignore=tests/distributions/test_rejector.py"
+         ;; This test fails sometimes.
+         "--ignore=tests/optim/test_optim.py"
+         ;; Failing scipy: TypeError: unsupported operand type(s) for -:
+         ;; 'function' and 'int'.
+         "--ignore=tests/distributions/test_stable.py")))
     (propagated-inputs
      (list python-numpy
            python-opt-einsum

base-commit: ffa73f8ef2a6cb2b93deb38b1c88a94707e7d907
-- 
2.41.0





Reply sent to Sharlatan Hellseher <sharlatanus <at> gmail.com>:
You have taken responsibility. (Thu, 25 Jan 2024 19:59:01 GMT) Full text and rfc822 format available.

Notification sent to Sharlatan Hellseher <sharlatanus <at> gmail.com>:
bug acknowledged by developer. (Thu, 25 Jan 2024 19:59:02 GMT) Full text and rfc822 format available.

Message #10 received at 68705-done <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 68705-done <at> debbugs.gnu.org
Subject: [PATCH] gnu: python-pyro-ppl: Fix build.
Date: Thu, 25 Jan 2024 19:58:27 +0000
[Message part 1 (text/plain, inline)]
Resolved in 72a758bcd37319ce2cd3c8944fecb5ca5ef449bf.
[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 23 Feb 2024 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 196 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.