g_test_trap_subprocess() fails on CI
Since the update to glib 2.70.4 on the CI images, the C API tests (src/api.c) are failing like this:
PASS: api 20 /api/handle_has_sub
PASS: api 21 /api/handle_get_pixbuf
PASS: api 22 /api/handle_get_pixbuf_sub
PASS: api 23 /api/dimensions_and_position
PASS: api 24 /api/set_size_callback
PASS: api 25 /api/reset_size_callback
PASS: api 26 /api/render_with_zero_size_callback
PASS: api 27 /api/get_pixbuf_with_size_callback
ERROR: api - Bail out! GLib-FATAL-ERROR: g_test_trap_subprocess() failed: Failed to close file descriptor for child process (Operation not permitted)
Last image that worked: registry.gitlab.gnome.org/gnome/librsvg/opensuse/tumbleweed:x86_64-1.56.1-2022-01-24.0-main
Image that fails: registry.gitlab.gnome.org/gnome/librsvg/opensuse/tumbleweed:x86_64-1.56.1-2022-02-17.0-main
The working image had glib 2.70.2; the failing one has glib 2.7.4.
The change in glib: glib#2580 (closed) - glib!2435 (merged)
Apparently fixing this requires an update in the GitLab runners. For now we can use a crun
tag for the runner, which uses crun instead of runc to launch the containers.
Edited by Federico Mena Quintero