Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905588 - dev-util/umockdev-0.17.17 fails tests (gphoto2: not found)
Summary: dev-util/umockdev-0.17.17 fails tests (gphoto2: not found)
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: 905549
  Show dependency tree
 
Reported: 2023-05-02 17:58 UTC by Arthur Zamarin
Modified: 2024-05-04 18:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,54.11 KB, text/plain)
2023-05-02 17:58 UTC, Arthur Zamarin
Details
umockdev-0.18.1.ebuild (umockdev-0.18.1.ebuild,1.47 KB, text/plain)
2024-05-04 18:10 UTC, Pacho Ramos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2023-05-02 17:58:04 UTC
Created attachment 861054 [details]
build.log

Caught on amd64 container on devbox. This container was fully depcleaned yesterday, so it is quite clean from packages. Seems like "gphoto2" is missing from test deps.






util/umockdev-0.17.17/work/umockdev-0.17.17/src/umockdev-wrapper /var/tmp/portage/dev-util/umockdev-0.17.17/work/umockdev-0.17.17-abi_x86_64.amd64/test-umockdev-run
――――――――――――――――――――――――――――――――――――― ✀  ―――――――――――――――――――――――――――――――――――――
stdout:
# random seed: R02S6a5c7c4f90583a0c47889bd5ca2049a3
1..16
# Start of umockdev-run tests
ok 1 /umockdev-run/exit_code
ok 2 /umockdev-run/version
ok 3 /umockdev-run/pipes
ok 4 /umockdev-run/udevadm-block
ok 5 /umockdev-run/invalid-args
ok 6 /umockdev-run/invalid-device
[SKIP: gphoto2 not installed] [SKIP: gphoto2 not installed] [SKIP: gphoto2 not installed] [SKIP: gphoto2 not installed] ok 7 /umockdev-run/invalid-ioctl
Bail out! FATAL-ERROR: test-umockdev-run.vala:56: 'Cannot install /non/existing for device /dev/input/event5:' not found in '
** (umockdev-run:218): ERROR **: 17:52:57.335: umockdev.vala:1428: umockdev Testbed.create_node_for_device: openpty() failed: No such file or directory
'
stderr:
sh: line 1: type: gphoto2: not found
sh: line 1: type: gphoto2: not found
sh: line 1: type: gphoto2: not found
sh: line 1: type: gphoto2: not found
Comment 1 Matt Turner gentoo-dev 2023-05-05 14:37:50 UTC
I think the lack of gphoto2 is causing the `/umockdev-run/integration/gphoto-detect` test to skip. The actual failure appears to be from a different subtest:

Bail out! FATAL-ERROR: test-umockdev-run.vala:56: 'Cannot install /non/existing for device /dev/input/event5:' not found in '** (umockdev-run:218): ERROR **: 17:52:57.335: umockdev.vala:1428: umockdev Testbed.create_node_for_device: openpty() failed: No such file or directory'


For my future self, the integration tests have these dependencies:

/umockdev-run/integration/gphoto-detect
- media-gfx/gphoto2

/umockdev-run/integration/input-touchpad
- x11-drivers/xf86-video-dummy
- x11-drivers/xf86-input-synaptics

/umockdev-run/integration/input-evtest*
- app-misc/evtest

I don't really know if we should require them or not. But it would be frustrating to see a failure and not be able to reproduce it because you're lacking a dep (which might be happening here somehow).
Comment 2 Matt Turner gentoo-dev 2023-05-05 14:45:10 UTC
Looks like your specific failure comes from

tests/test-umockdev-run.vala:t_run_invalid_script()

>    // nonexisting script
>    check_program_error ("true", "-d " + rootdir +
>        "/devices/input/usbkbd.umockdev -s " +
>        "/dev/input/event5=/non/existing -- true",
>        "Cannot install /non/existing for device /dev/input/event5:");

I wonder if this could be another missing x11-driver? x11-drivers/xf86-input-libinput is the only driver I have installed (other than dummy and synaptics that I installed for this testing)

When I uninstall xf86-input-libinput, I get a different failure:

> # DEBUG: test-umockdev-run.vala:595: failed to clean up /tmp/.X5-lock: No such file or directory
> not ok /umockdev-run/integration/input-touchpad - FATAL-ERROR: umockdev-> utils.vala:16: cannot remove /tmp/.X11-unix/X5: No such file or directory
Bail out!
Comment 3 Pacho Ramos gentoo-dev 2024-05-04 18:10:18 UTC
Created attachment 892265 [details]
umockdev-0.18.1.ebuild

Running the tests as Debian does look to allow tests to pass. In summary, we would need to add the extra deps, set longer timeouts, and run tests in serial.

Attached ebuild does that and works for me... but I still don't understand why running MAKEOPTS="-j1" meson_src_test keeps failing, while running plain meson succeeds :/