On Wed, 21 Aug 2024 10:01:21 -0400 Reinhard Tartler <siret...@debian.org> wrote:
Source: mediaconch
Version: 24.06-1 fail
Severity: important
Here are recent instances where the test
https://sources.debian.org/src/mediaconch/24.06-1/debian/tests/check-mediaconch-gui/#L28
has failed on armhf:
https://ci.debian.net/packages/m/mediaconch/testing/armel/50799168/
https://ci.debian.net/packages/m/mediaconch/testing/armel/50746565/
in both cases, the logs indicate that mediaconch did not start up:
339s autopkgtest [14:37:21]: test check-mediaconch-gui: [-----------------------
341s Launching window manager
341s wm_pid=3904
341s Launching MediaConch gui
341s mediaconch_gui_pid=3905
341s Waiting for 2 seconds to ensure MediaConch has not crashed
343s Checking for MediaConch window presence...
344s autopkgtest [14:37:26]: test check-mediaconch-gui: -----------------------]
Dear Maintainer,
I had tried to reproduce this on real arm hardware (arm64 kernel with
systemd-nspawn-armhf-chroot).
And to me it looks like the "Waiting for 2" [1] is simply not enough on my
hardware.
Either increasing this sleep from 2 to at least 5 made the test work for me.
An alternative might be to repeat the check for 15 seconds like below [2].
Kind regards,
Bernhard
[1]
https://sources.debian.org/src/mediaconch/24.06-1/debian/tests/check-mediaconch-gui/#L25-L29
[2]
debian/tests/check-mediaconch-gui:
-wmctrl -l | grep -q MediaConch && echo Found || exit 10
+for i in $(seq 15 -1 0); do echo check $i; wmctrl -l | grep -q MediaConch && echo
Found && break; if [ $i -le 0 ]; then exit 10; fi; sleep 1s; done