all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#57316: (core-updates) dejagnu@1.6.3 sometimes fails to build
@ 2022-08-21 10:38 Maxime Devos
  2022-08-22  9:37 ` bug#57316: [PATCH] gnu: dejagnu: Avoid non-deterministic test failure Maxime Devos
  0 siblings, 1 reply; 4+ messages in thread
From: Maxime Devos @ 2022-08-21 10:38 UTC (permalink / raw)
  To: 57316


[-- Attachment #1.1.1.1: Type: text/plain, Size: 1528 bytes --]

On the build farm, dejagnu sometimes fails to build:

https://ci.guix.gnu.org/build/1229968/log/raw

> ERROR: -------------------------------------------
> ERROR: in testcase ./testsuite/runtest.libs/libs.exp
> ERROR:  send: spawn id exp6 not open
> ERROR:  tcl error code NONE
> ERROR:  tcl error info:
> send: spawn id exp6 not open
>      while executing
> "exp_send "interp delete test_case""
>      invoked from within
> "if [file exists $test] {
> 	verbose "Processing test $test" 2
>
> 	exp_send "interp create test_case\n"
> 	expect "interp create test_case*test_case*expect*>..."
>      (procedure "process_test" line 9)
>      invoked from within
> "process_test $i"
>      ("foreach" body line 2)
>      invoked from within
> "foreach i [lsort -dictionary [glob [testsuite file -source -test *.test]]] {
>      if { [runtest_file_p $runtests $i] } { process_test $i }
> }"
>      (file "./testsuite/runtest.libs/libs.exp" line 100)
>      invoked from within
> "source ./testsuite/runtest.libs/libs.exp"
>      ("uplevel" body line 1)
>      invoked from within
> "uplevel #0 source ./testsuite/runtest.libs/libs.exp"
>      invoked from within
> "catch "uplevel #0 source $test_file_name" msg"
I cannot reproduce this locally.

This "send: spawn id exp8 not open" has been noticed in LFS, at 
<https://wiki.linuxfromscratch.org/lfs/ticket/4871>. There it has been 
proposed to run the build out-of-source.

TODO: give '#:out-of-source? #true' a try.

Greetings,
Maxime.


[-- Attachment #1.1.1.2: Type: text/html, Size: 1949 bytes --]

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

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

* bug#57316: [PATCH] gnu: dejagnu: Avoid non-deterministic test failure.
  2022-08-21 10:38 bug#57316: (core-updates) dejagnu@1.6.3 sometimes fails to build Maxime Devos
@ 2022-08-22  9:37 ` Maxime Devos
  2022-08-22  9:38   ` Maxime Devos
  2022-09-06 21:08   ` bug#57316: (core-updates) dejagnu@1.6.3 sometimes fails to build Ludovic Courtès
  0 siblings, 2 replies; 4+ messages in thread
From: Maxime Devos @ 2022-08-22  9:37 UTC (permalink / raw)
  To: 57316; +Cc: Maxime Devos

I cannot reproduce the test failure locally myself.

* gnu/packages/dejagnu.scm (dejagnu)[#:out-of-source?]:
Do an out-of-source build, as recommended upstream, and
add a link to the upstream bug report.
---
 gnu/packages/dejagnu.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/packages/dejagnu.scm b/gnu/packages/dejagnu.scm
index f3445b3d87..579a1a7a40 100644
--- a/gnu/packages/dejagnu.scm
+++ b/gnu/packages/dejagnu.scm
@@ -3,6 +3,7 @@
 ;;; Copyright © 2016, 2017, 2022 Efraim Flashner <efraim@flasher.co.il>
 ;;; Copyright © 2018 Mark H Weaver <mhw@netris.org>
 ;;; Copyright © 2022 Marius Bakke <marius@gnu.org>
+;;; Copyright © 2022 Maxime Devos <maximedevos@telenet.be>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -44,6 +45,9 @@ (define-public dejagnu
     (inputs (list bash-minimal expect))
     (arguments
      (list
+      ;; Do an out-of-source build to work-around a non-deterministic bug in Expect:
+      ;; <https://lists.gnu.org/archive/html/bug-dejagnu/2021-06/msg00013.html>.
+      #:out-of-source? #true
       #:phases
       #~(modify-phases %standard-phases
           (add-after 'unpack 'patch-/bin/sh

base-commit: d08411ffd0a36a6b67a238be69d32c9f74101389
-- 
2.37.1





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

* bug#57316: [PATCH] gnu: dejagnu: Avoid non-deterministic test failure.
  2022-08-22  9:37 ` bug#57316: [PATCH] gnu: dejagnu: Avoid non-deterministic test failure Maxime Devos
@ 2022-08-22  9:38   ` Maxime Devos
  2022-09-06 21:08   ` bug#57316: (core-updates) dejagnu@1.6.3 sometimes fails to build Ludovic Courtès
  1 sibling, 0 replies; 4+ messages in thread
From: Maxime Devos @ 2022-08-22  9:38 UTC (permalink / raw)
  To: 57316


[-- Attachment #1.1.1: Type: text/plain, Size: 94 bytes --]

Oops I forgot [PATCH core-updates] -- due to the many dependents, it's 
for core-updates.


[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

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

* bug#57316: (core-updates) dejagnu@1.6.3 sometimes fails to build
  2022-08-22  9:37 ` bug#57316: [PATCH] gnu: dejagnu: Avoid non-deterministic test failure Maxime Devos
  2022-08-22  9:38   ` Maxime Devos
@ 2022-09-06 21:08   ` Ludovic Courtès
  1 sibling, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2022-09-06 21:08 UTC (permalink / raw)
  To: Maxime Devos; +Cc: 57316-done

Maxime Devos <maximedevos@telenet.be> skribis:

> I cannot reproduce the test failure locally myself.
>
> * gnu/packages/dejagnu.scm (dejagnu)[#:out-of-source?]:
> Do an out-of-source build, as recommended upstream, and
> add a link to the upstream bug report.

Pushed in ‘core-updates’ as 0e305798454c558ab6e722cf66ba351c326a1a8d.

Thanks!

Ludo’.




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

end of thread, other threads:[~2022-09-06 21:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-21 10:38 bug#57316: (core-updates) dejagnu@1.6.3 sometimes fails to build Maxime Devos
2022-08-22  9:37 ` bug#57316: [PATCH] gnu: dejagnu: Avoid non-deterministic test failure Maxime Devos
2022-08-22  9:38   ` Maxime Devos
2022-09-06 21:08   ` bug#57316: (core-updates) dejagnu@1.6.3 sometimes fails to build Ludovic Courtès

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.