qemu-4.1.0 build failure

  • Done
  • quality assurance status badge
Details
3 participants
  • Danny Milosavljevic
  • Marius Bakke
  • Miguel Arruga Vivas
Owner
unassigned
Submitted by
Danny Milosavljevic
Severity
normal
D
D
Danny Milosavljevic wrote on 21 Oct 2019 23:39
(address . bug-guix@gnu.org)
20191021233932.26e261a2@scratchpost.org
ERROR:tests/test-util-filemonitor.c:665:test_file_monitor_events: assertion failed: (err == 0)
ERROR - Bail out! ERROR:tests/test-util-filemonitor.c:665:test_file_monitor_events: assertion failed: (err == 0)

Four times in a row now.
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl2uJZQACgkQ5xo1VCww
uqW17AgAlNy8wNqmYr30DwoCb1dTzKUTLKoL2sV3PNVBRrPEBFVtRuUXXRbGTVfz
Zns8Fdf8hYbXYpPyElZkBLKCLij7pyqRjuhpcuNgGVfqHJi+9X/PIiI/UTyVm519
aizeQ+wKd4ebvb3wS3Ej6wf7hewUvlNGKnawpMZp6QOv9h2+ZZg4D2eXUwarrWsR
5QLwUmizSJ9Axw7/VCYEKVOPH7jS8mjVVakaENx885gL2pX6bu1BV7msmqLWIC9G
/Hwz7CKwdb6dmGdvd7b8FkXwQjnQW2x5I9OTAwvXpb1B2jqZBMkKoYxHrccoRPso
4UT13FkuB+Q/lweWNH7NPOjyXt4mVA==
=c42i
-----END PGP SIGNATURE-----


D
D
Danny Milosavljevic wrote on 21 Oct 2019 23:48
(address . 37860@debbugs.gnu.org)
20191021234827.177e45ea@scratchpost.org
On Mon, 21 Oct 2019 23:39:32 +0200
Danny Milosavljevic <dannym@scratchpost.org> wrote:

Toggle quote (5 lines)
> ERROR:tests/test-util-filemonitor.c:665:test_file_monitor_events: assertion failed: (err == 0)
> ERROR - Bail out! ERROR:tests/test-util-filemonitor.c:665:test_file_monitor_events: assertion failed: (err == 0)
>
> Four times in a row now.

guix commit 05b0b050bce644d96ed2222b7d88414f50bb23d9
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl2uJ6sACgkQ5xo1VCww
uqWMywf7BnHuYjR6nILD9YQ6rDt5XmzHNsPK2OuVAz9ELWDXwinRMyJ1MW1U3YS6
0FcuYTaebpaCjm0fMvWjLH4uNqui/kS4l06JdUBKsMsoAxe49srYaM7ErkP8xQje
oFmbWL8xWI2Ow0YouQQGRXZSegr5B9X8FA5bPEGVU4KcOEZRW1BtauY68NYFGZ6A
zQZ6jAMB4LM0jeHq9KC5So8SnE6w165XP4F44INYQkR+OCLAYKkx55XCv3KChfL7
I53aah77mcwuP4MO5hmhWsFgS18evJZjhYbtn7goXKxFEfeIWaNdIuxoprwwABvO
Z7dFrScSac1I8hE75JPngohF+y00YQ==
=Jeat
-----END PGP SIGNATURE-----


M
M
Miguel Arruga Vivas wrote on 3 Nov 2019 01:27
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 37860@debbugs.gnu.org)
20191103012739.128b8114@gmail.com
Hi Danny,

Danny Milosavljevic <dannym@scratchpost.org> wrote:
Toggle quote (12 lines)
> On Mon, 21 Oct 2019 23:39:32 +0200
> Danny Milosavljevic <dannym@scratchpost.org> wrote:
>
> > ERROR:tests/test-util-filemonitor.c:665:test_file_monitor_events:
> > assertion failed: (err == 0) ERROR - Bail out!
> > ERROR:tests/test-util-filemonitor.c:665:test_file_monitor_events:
> > assertion failed: (err == 0)
> >
> > Four times in a row now.
>
> guix commit 05b0b050bce644d96ed2222b7d88414f50bb23d9

I've hit the same error five times in a row too. The test seems to
depend on the order of notifications between two inotify queues (one
open on the folder and the other one open on the file name). I don't
know any easy way to fix it, so I propose to comment it out before
check phase as in the attached patch. What do you think?

Happy hacking!
Miguel
From 53b06fdf0ff5fb343ae5548ff816d0f6fa455b96 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miguel=20=C3=81ngel=20Arruga=20Vivas?=
<rosen644835@gmail.com>
Date: Sun, 3 Nov 2019 00:51:08 +0100
Subject: [PATCH] gnu: qemu: Comment out failing test.

* gnu/packages/virtualization.scm (qemu)[disable-unusable-tests]: Comment
out test-util-filemonitor from check phase.
---
gnu/packages/virtualization.scm | 6 ++++++
1 file changed, 6 insertions(+)

Toggle diff (19 lines)
diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm
index c2f46985f0..3183916174 100644
--- a/gnu/packages/virtualization.scm
+++ b/gnu/packages/virtualization.scm
@@ -196,6 +196,12 @@ exec smbd $@")))
;; fails within the build environment.
(("check-unit-.* tests/test-char" all)
(string-append "# " all)))
+ (substitute* "tests/Makefile.include"
+ ;; Comment out the test-util-filemonitor test, as it depends
+ ;; on a specific order of notification between two
+ ;; qemu_file_monitor queues.
+ (("check-unit-.* tests/test-util-filemonitor" all)
+ (string-append "# " all)))
#t)))))
(inputs ; TODO: Add optional inputs.
`(("alsa-lib" ,alsa-lib)
--
2.23.0
M
M
Marius Bakke wrote on 3 Nov 2019 17:24
(address . 37860@debbugs.gnu.org)
87blttorlg.fsf@devup.no
Miguel Arruga Vivas <rosen644835@gmail.com> writes:

Toggle quote (21 lines)
> Hi Danny,
>
> Danny Milosavljevic <dannym@scratchpost.org> wrote:
>> On Mon, 21 Oct 2019 23:39:32 +0200
>> Danny Milosavljevic <dannym@scratchpost.org> wrote:
>>
>> > ERROR:tests/test-util-filemonitor.c:665:test_file_monitor_events:
>> > assertion failed: (err == 0) ERROR - Bail out!
>> > ERROR:tests/test-util-filemonitor.c:665:test_file_monitor_events:
>> > assertion failed: (err == 0)
>> >
>> > Four times in a row now.
>>
>> guix commit 05b0b050bce644d96ed2222b7d88414f50bb23d9
>
> I've hit the same error five times in a row too. The test seems to
> depend on the order of notifications between two inotify queues (one
> open on the folder and the other one open on the file name). I don't
> know any easy way to fix it, so I propose to comment it out before
> check phase as in the attached patch. What do you think?

Can you report this upstream? We should probably apply this, but it
would be good to have an upstream bug to link to.

Thanks!
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl2+/0sACgkQoqBt8qM6
VPpu5gf+PXybPkJ0w1Ac9zQA7k7YaAQOkvy/zdPNNuQ42Th8lyvlU4nv8eHk1wwC
qzZag7b3n+xL3HhvECC8WKrKIWaK30pXgqhqayutmweGBhxgWk14Jgw1DAAPTuhw
GcwrZJNBe4NFwOsNVpGQSQmjzD3W1cmDIGK+W6HoQ0YCgnFNb9d/8awBex9lfCsA
bhgw0l81XIuyiGOrHAjBXGm37KMOVc7GLfRth78zr8qLlBUNULG+XkGBOKcbTHrP
ttqLmJyIR/iEYcQvSfxIor6QWTFaMQQy4nnDU4e07ca3zJM6ssgEYx5BQpl6QZmB
0qnnFZrbsekR1QQijKGWkw4QzwFGEA==
=I5f1
-----END PGP SIGNATURE-----

D
D
Danny Milosavljevic wrote on 3 Nov 2019 19:01
(name . Miguel Arruga Vivas)(address . rosen644835@gmail.com)(address . 37860@debbugs.gnu.org)
20191103190157.62b84be5@scratchpost.org
Hi,

On Sun, 3 Nov 2019 01:27:49 +0100
Miguel Arruga Vivas <rosen644835@gmail.com> wrote:

Toggle quote (6 lines)
> I've hit the same error five times in a row too. The test seems to
> depend on the order of notifications between two inotify queues (one
> open on the folder and the other one open on the file name). I don't
> know any easy way to fix it, so I propose to comment it out before
> check phase as in the attached patch. What do you think?

Sounds like a good idea.

Could you also report a bug upstream at https://bugs.launchpad.net/qemu/?

I ask you to do it so that you are credited as the discoverer of the cause of
the bug.

If you do it, please amend your patch to guix to include a link to that report,
I'll be happy to commit it to guix.
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl2/FhUACgkQ5xo1VCww
uqXZEAf/ZpKAPl9NR551xfAhHr/HaXP3kJkYIxEUF3m7t3fiLkvdWmMDmhGqEV6Q
nT7EEa2LwnWD+jpz902eE0m3b+k4q7jiMNjYo9CKa06fiqh7BSKNkzjx87hSKyCw
ZupBd5ddgJN+P7PVtUIO4EX98EBwU5xUmlC8mEsNxDUVvqtja3do8YJueljcSBRK
X8KqjQFJHEqMTGXoowv9ZGVwkXWvDs89OWTpYXHnyIaaAqnVKGuFjB5tfO5y9Uf+
NY3+03+ude1+vEuTZj2pMHS022rSixmy4KoITHO2UROH1cnaxdP9pbY1lzTPi5fI
E/7TG5G4HBO76zddsoSuomH7SteyCQ==
=uIUh
-----END PGP SIGNATURE-----


M
M
Miguel Arruga Vivas wrote on 8 Nov 2019 14:56
[PATCH v2] gnu: qemu: Add upstream patch for failing test.
(address . 37860@debbugs.gnu.org)
20191108145424.35abd86a@gmail.com
Hi,

They have solved the problem on qemu's master branch, as the author
kindly told me[1], so I propose this patch to add their patch on top
of our current version. I've tested it on x86_64, WDYT?

Happy hacking!
Miguel

[1]
From b91245b18c4e66f05ea9dbc37e62be64ae3bbf07 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miguel=20=C3=81ngel=20Arruga=20Vivas?=
<rosen644835@gmail.com>
Date: Fri, 8 Nov 2019 02:13:38 +0100
Subject: [PATCH] gnu: qemu: Add upstream patch for failing test.

* gnu/packages/virtualization.scm (qemu)[patches]: Add upstream patch
to fix tests on linux-libre >= 5.3.
---
gnu/packages/virtualization.scm | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

Toggle diff (24 lines)
diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm
index f113eee5f7..afe88e16ea 100644
--- a/gnu/packages/virtualization.scm
+++ b/gnu/packages/virtualization.scm
@@ -114,7 +114,16 @@
version ".tar.xz"))
(sha256
(base32
- "1ih9v6gxgild3m4g80ld4dr3wp9db3bpy203k73fxgc9hqhn0vk5"))))
+ "1ih9v6gxgild3m4g80ld4dr3wp9db3bpy203k73fxgc9hqhn0vk5"))
+ (patches
+ (list
+ ;; XXX: Patch from master branch, to be removed with next
+ ;; upstream release.
+ (qemu-patch
+ "bf9e0313c27d8e6ecd7f7de3d63e1cb25d8f6311"
+ "qemu-tests-make-filemonitor-test-more-robust.patch"
+ (base32
+ "1242wqpr8id3cn88pzbig3sqh4znml0g0h2mwdmdyhp81blq7s7n"))))))
(build-system gnu-build-system)
(arguments
'(;; Running tests in parallel can occasionally lead to failures, like:
--
2.23.0
M
M
Marius Bakke wrote on 10 Nov 2019 22:20
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)
87lfsnl97q.fsf@devup.no
Miguel Arruga Vivas <rosen644835@gmail.com> writes:

Toggle quote (6 lines)
> Hi,
>
> They have solved the problem on qemu's master branch, as the author
> kindly told me[1], so I propose this patch to add their patch on top
> of our current version. I've tested it on x86_64, WDYT?

LGTM, applied! I edited the comment and commit message to refer back to
this bug report.
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl3IfxkACgkQoqBt8qM6
VPqxgwf9G3iAk3CW8cUKd55Ji6BpAkMZkHEfJc6WCgp/x839sq4blhC2ygzBHafo
9k3MvhznoLrhognj9IWM9eCoxLmpVupF5nH9QqYpZKV0lp09jOoexTc8F+RObUJf
W/AKZXwL7Tt0pOpZatA0IqeLaU1UPSirBskKfs7hGf1zOvFjZeViHP+JxsHe0hy3
st9N/2mIb6jb8TjX4AJnwqH/xJBJdEMs6mqYI/vPblj4kAqh1b7Ysitu5bAuscRC
vO030j1oMbW3YGVSI9RnbkY11NF0dETWCD/vUuTqQ30iTM7QouS0RBIKzi8XjCPI
aX022Cckq0bnIq2lNmnAHRBvaFJhJA==
=XOG5
-----END PGP SIGNATURE-----

Closed
?