GNU bug report logs -
#55067
[PATCH] gnu: nomad-optimizer: Disable failing test.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 55067 in the body.
You can then email your comments to 55067 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#55067
; Package
guix-patches
.
(Fri, 22 Apr 2022 16:22:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Paul A. Patience" <paul <at> apatience.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Fri, 22 Apr 2022 16:22:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/maths.scm (nomad-optimizer)[arguments]: Disable the
examples/advanced/library/PSDMads test.
---
It turns out the PSDMads test fails randomly.
I've disabled it.
gnu/packages/maths.scm | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index f4778179d6..26488a614c 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -2008,6 +2008,9 @@ (define-public nomad-optimizer
(add-after 'fix-sources-for-build 'fix-sources-for-tests
(lambda _
(substitute* "examples/CMakeLists.txt"
+ ;; This test passes only sometimes.
+ (("^ +add_subdirectory\\(\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/advanced/library/PSDMads\\)\n")
+ "")
;; examples/basic/batch/example3 is accidentally omitted.
(("^(add_subdirectory\\(\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/basic/batch/example)2(\\)\n)"
_ prefix suffix)
@@ -2052,10 +2055,6 @@ (define-public nomad-optimizer
"examples/advanced/library/exampleSuggestAndObserve/cache0.txt")
(let ((builddir (string-append (getcwd) "/../build")))
- ;; For some reason, omitting this fix causes the
- ;; examples/advanced/library/PSDMads test to fail, even though
- ;; it doesn't seem to reference any part of the FixedVariable
- ;; test.
(let ((dir "examples/advanced/library/FixedVariable"))
(substitute* (string-append dir "/fixedVariable.cpp")
(("^( +std::string sExe = ).*" _ prefix)
--
2.35.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#55067
; Package
guix-patches
.
(Fri, 22 Apr 2022 16:31:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 55067 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/maths.scm (nomad-optimizer)[arguments]: Disable the
examples/advanced/library/PSDMads test.
---
Just updating the copyright header too.
gnu/packages/maths.scm | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index f4778179d6..190b62fca1 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -45,7 +45,7 @@
;;; Copyright © 2021 Gerd Heber <gerd.heber <at> gmail.com>
;;; Copyright © 2021 Franck Pérignon <franck.perignon <at> univ-grenoble-alpes.fr>
;;; Copyright © 2021 Philip McGrath <philip <at> philipmcgrath.com>
-;;; Copyright © 2021 Paul A. Patience <paul <at> apatience.com>
+;;; Copyright © 2021-2022 Paul A. Patience <paul <at> apatience.com>
;;; Copyright © 2021 Ivan Gankevich <i.gankevich <at> spbu.ru>
;;; Copyright © 2021 Jean-Baptiste Volatier <jbv <at> pm.me>
;;; Copyright © 2021 Guillaume Le Vaillant <glv <at> posteo.net>
@@ -2008,6 +2008,9 @@ (define-public nomad-optimizer
(add-after 'fix-sources-for-build 'fix-sources-for-tests
(lambda _
(substitute* "examples/CMakeLists.txt"
+ ;; This test passes only sometimes.
+ (("^ +add_subdirectory\\(\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/advanced/library/PSDMads\\)\n")
+ "")
;; examples/basic/batch/example3 is accidentally omitted.
(("^(add_subdirectory\\(\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/basic/batch/example)2(\\)\n)"
_ prefix suffix)
@@ -2052,10 +2055,6 @@ (define-public nomad-optimizer
"examples/advanced/library/exampleSuggestAndObserve/cache0.txt")
(let ((builddir (string-append (getcwd) "/../build")))
- ;; For some reason, omitting this fix causes the
- ;; examples/advanced/library/PSDMads test to fail, even though
- ;; it doesn't seem to reference any part of the FixedVariable
- ;; test.
(let ((dir "examples/advanced/library/FixedVariable"))
(substitute* (string-append dir "/fixedVariable.cpp")
(("^( +std::string sExe = ).*" _ prefix)
--
2.35.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#55067
; Package
guix-patches
.
(Fri, 22 Apr 2022 17:26:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 55067 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Paul A. Patience schreef op vr 22-04-2022 om 16:20 [+0000]:
> ---
> It turns out the PSDMads test fails randomly.
Sounds like a bug, preferably it would 100% reliably report the
underlying problem, whatever it is.
> I've disabled it.
I don't think this is a good reason to disable the test.
Disabling tests whenever they fail defeats the point of tests.
Cf. with, say, clinical trials for testing safety of new medical
treatments. If some drug fails one of the tests (sometimes or always),
then one cannot simply ignore the test.
Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#55067
; Package
guix-patches
.
(Fri, 22 Apr 2022 19:03:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 55067 <at> debbugs.gnu.org (full text, mbox):
On 2022-04-22 13:25:20-04:00, Maxime Devos wrote:
>> It turns out the PSDMads test fails randomly.
>
> Sounds like a bug, preferably it would 100% reliably report the
> underlying problem, whatever it is.
I agree with you, and I have already reported the issue to the
developers (along with some other issues that I addressed in the package
definition).
>> I've disabled it.
>
> I don't think this is a good reason to disable the test.
> Disabling tests whenever they fail defeats the point of tests.
This test failure wasn't getting detected in the past due to a missing
"set -o pipefail" in the test runner, which could explain why it was
missed by the developers.
I don't know enough to fix the bug myself, but I have a suspicion it is
a bug in the test rather than in the library.
Best regards,
Paul
Information forwarded
to
guix-patches <at> gnu.org
:
bug#55067
; Package
guix-patches
.
(Fri, 22 Apr 2022 21:38:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 55067 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Paul A. Patience schreef op vr 22-04-2022 om 19:02 [+0000]:
> On 2022-04-22 13:25:20-04:00, Maxime Devos wrote:
> > > It turns out the PSDMads test fails randomly.
> >
> > Sounds like a bug, preferably it would 100% reliably report the
> > underlying problem, whatever it is.
>
> I agree with you, and I have already reported the issue to the
> developers (along with some other issues that I addressed in the package
> definition).
Then I recommend adding a link to the upstream report (in a comment),
such that at the next update we know where to check if it has been
resolved, and to avoid giving the impression that just skipping tests
is acceptable.
Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#55067
; Package
guix-patches
.
(Mon, 25 Apr 2022 19:11:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 55067 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/maths.scm (nomad-optimizer)[arguments]: Disable the
examples/advanced/library/PSDMads test.
---
I've added a link to the issue I opened upstream regarding this failing test,
as suggested by Maxime Devos.
gnu/packages/maths.scm | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index f4778179d6..448cdb4d73 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -45,7 +45,7 @@
;;; Copyright © 2021 Gerd Heber <gerd.heber <at> gmail.com>
;;; Copyright © 2021 Franck Pérignon <franck.perignon <at> univ-grenoble-alpes.fr>
;;; Copyright © 2021 Philip McGrath <philip <at> philipmcgrath.com>
-;;; Copyright © 2021 Paul A. Patience <paul <at> apatience.com>
+;;; Copyright © 2021-2022 Paul A. Patience <paul <at> apatience.com>
;;; Copyright © 2021 Ivan Gankevich <i.gankevich <at> spbu.ru>
;;; Copyright © 2021 Jean-Baptiste Volatier <jbv <at> pm.me>
;;; Copyright © 2021 Guillaume Le Vaillant <glv <at> posteo.net>
@@ -2008,6 +2008,10 @@ (define-public nomad-optimizer
(add-after 'fix-sources-for-build 'fix-sources-for-tests
(lambda _
(substitute* "examples/CMakeLists.txt"
+ ;; This test passes only sometimes.
+ ;; See https://github.com/bbopt/nomad/issues/72.
+ (("^ +add_subdirectory\\(\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/advanced/library/PSDMads\\)\n")
+ "")
;; examples/basic/batch/example3 is accidentally omitted.
(("^(add_subdirectory\\(\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/basic/batch/example)2(\\)\n)"
_ prefix suffix)
@@ -2052,10 +2056,6 @@ (define-public nomad-optimizer
"examples/advanced/library/exampleSuggestAndObserve/cache0.txt")
(let ((builddir (string-append (getcwd) "/../build")))
- ;; For some reason, omitting this fix causes the
- ;; examples/advanced/library/PSDMads test to fail, even though
- ;; it doesn't seem to reference any part of the FixedVariable
- ;; test.
(let ((dir "examples/advanced/library/FixedVariable"))
(substitute* (string-append dir "/fixedVariable.cpp")
(("^( +std::string sExe = ).*" _ prefix)
--
2.35.1
Reply sent
to
Mathieu Othacehe <othacehe <at> gnu.org>
:
You have taken responsibility.
(Tue, 26 Apr 2022 08:46:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
"Paul A. Patience" <paul <at> apatience.com>
:
bug acknowledged by developer.
(Tue, 26 Apr 2022 08:46:02 GMT)
Full text and
rfc822 format available.
Message #25 received at 55067-done <at> debbugs.gnu.org (full text, mbox):
> * gnu/packages/maths.scm (nomad-optimizer)[arguments]: Disable the
> examples/advanced/library/PSDMads test.
Pushed, thanks Paul & Maxime!
Mathieu
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 24 May 2022 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 28 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.