Open mattkae opened 4 months ago
This error was seen in the lab. For some reason, the robot process fails to exit gracefully.
robot
dbus-daemon[20909]: [session uid=1000 pid=20909] Activating service name='org.freedesktop.systemd1' requested by ':1.0' (uid=1000 pid=20910 comm="checkbox-mir.mir-ci --verbose --junitxml=/tmp/mir-" label="unconfined") dbus-daemon[20909]: [session uid=1000 pid=20909] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.2.2, pluggy-1.5.0 -- /snap/checkbox-mir/783/bin/python3 cachedir: /tmp/pytest-cache rootdir: /snap/checkbox-mir/783/lib/python3.10/site-packages/mir_ci configfile: pytest.ini plugins: asyncio-0.23.7 asyncio: mode=auto collecting ... collected 1 item tests/test_vnc.py::TestVnc::test_vnc[qterminal-mir_test_tools] FAILED [100%] =================================== FAILURES =================================== __________________ TestVnc.test_vnc[qterminal-mir_test_tools] __________________ self = robot_log = PosixPath('/tmp/mir-ci_test_vnc[qterminal-mir_test_tools].robot.html') server = app = tmp_path = PosixPath('/tmp/pytest-of-ubuntu/pytest-14/test_vnc_qterminal_mir_test_to0') @pytest.mark.parametrize("app", (apps.qterminal("--execute", "wayvnc"),)) async def test_vnc(self, robot_log, server, app, tmp_path) -> None: extensions = (ZwlrVirtualPointerManagerV1.name, ZwlrScreencopyManagerV1.name, "zwp_virtual_keyboard_manager_v1") server_instance = DisplayServer(server, add_extensions=extensions) program = server_instance.program(app) robot_test_case = dedent( """\ Vnc Sleep 1 HID.Type String Hello World Sleep 1 # Drag window (assuming a 5:4 aspect ratio output) Move Pointer To Proportional (0.5, 0.19) Press LEFT Button Walk Pointer To Proportional (1, 0.6) Release LEFT Button """ ) with tempfile.NamedTemporaryFile(mode="w+", suffix=".robot", buffering=1) as robot_file: robot_file.write(ROBOT_TEMPLATE.format(settings=ROBOT_SETTINGS, test_case=robot_test_case)) robot = server_instance.program(App(("robot", "-d", tmp_path, "--log", robot_log, robot_file.name))) async with server_instance, program: async with robot: > await robot.wait() tests/test_vnc.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , timeout = 10 term_timeout = 10 async def wait(self, timeout=default_wait_timeout, term_timeout=default_term_timeout) -> None: if self.is_running(): self.send_signals_task = asyncio.create_task(self.send_kill_signals(timeout, term_timeout)) if self.process_end is not None: await self.process_end self.process_end = None print("\n" + format_output(self.name, self.output)) assert self.process if self.process.returncode != 0: message = self.name if self.sigkill_sent: message += " refused to terminate" else: message += " closed with exit code " + str(self.process.returncode) > raise ProgramError(message) E mir_ci.program.program.ProgramError: robot refused to terminate program/program.py:97: ProgramError ----------------------------- Captured stdout call ----------------------------- ╭───────────────────────────────────┤ robot ├────────────────────────────────── │ Second signal will force exit. │ 2024-07-03 13:08:19,094 - RPA.core.certificates - INFO - Truststore not in use, HTTPS traffic validated against `certifi` package. (requires Python 3.10.12 and 'pip' 23.2.1 at minimum) │ ============================================================================== │ Tmpikgndfll │ ============================================================================== │ Vnc | FAIL | │ Execution terminated by signal │ ------------------------------------------------------------------------------ │ Tmpikgndfll | FAIL | │ 1 test, 0 passed, 1 failed │ ============================================================================== │ Output: /tmp/pytest-of-ubuntu/pytest-14/test_vnc_qterminal_mir_test_to0/output.xml │ Log: /tmp/mir-ci_test_vnc[qterminal-mir_test_tools].robot.html │ Report: /tmp/pytest-of-ubuntu/pytest-14/test_vnc_qterminal_mir_test_to0/report.html ╰────────────────────────────────────────────────────────────────────────────── ╭─────────────────────────────────┤ qterminal ├──────────────────────────────── │ Unable to load translator "default" │ Unable to load translator "default" │ Unable to load translator "default" │ Unable to load translator "default" │ Unable to load translator "default" ╰────────────────────────────────────────────────────────────────────────────── ╭────────────────────────┤ mir-test-tools.demo-server ├──────────────────────── │ [2024-07-03 13:08:04.877630] mirserver: Starting │ [2024-07-03 13:08:04.905126] < - debug - > mirserver: Discovered object path for current session = /org/freedesktop/login1/session/_330 │ [2024-07-03 13:08:04.929238] < - debug - > mirserver: Using logind for session management │ [2024-07-03 13:08:04.930375] mircommon: Loading modules from: /snap/mir-test-tools/15760/usr/lib/aarch64-linux-gnu/mir/server-platform │ [2024-07-03 13:08:04.931301] mircommon: Loading module: /snap/mir-test-tools/15760/usr/lib/aarch64-linux-gnu/mir/server-platform/graphics-gbm-kms.so.22 │ [2024-07-03 13:08:04.931628] mircommon: Loading module: /snap/mir-test-tools/15760/usr/lib/aarch64-linux-gnu/mir/server-platform/graphics-wayland.so.22 │ [2024-07-03 13:08:04.931827] mircommon: Loading module: /snap/mir-test-tools/15760/usr/lib/aarch64-linux-gnu/mir/server-platform/renderer-egl-generic.so.22 │ [2024-07-03 13:08:04.932021] mircommon: Loading module: /snap/mir-test-tools/15760/usr/lib/aarch64-linux-gnu/mir/server-platform/server-virtual.so.22 │ [2024-07-03 13:08:04.932199] mircommon: Loading module: /snap/mir-test-tools/15760/usr/lib/aarch64-linux-gnu/mir/server-platform/server-x11.so.22 │ [2024-07-03 13:08:04.932415] mircommon: Loading module: /snap/mir-test-tools/15760/usr/lib/aarch64-linux-gnu/mir/server-platform/input-evdev.so.9 │ [2024-07-03 13:08:04.946456] mirserver: Found display driver: mir:x11 (version 2.17.0) │ [2024-07-03 13:08:04.946854] mirserver: (Unsupported by system environment) │ [2024-07-03 13:08:04.947009] mirserver: Found display driver: mir:egl-generic (version 2.17.0) │ [2024-07-03 13:08:04.947366] mirserver: Found display driver: mir:wayland (version 2.17.0) │ [2024-07-03 13:08:04.947501] mirserver: (Unsupported by system environment) │ [2024-07-03 13:08:04.947623] mirserver: Found display driver: mir:gbm-kms (version 2.17.0) │ [2024-07-03 13:08:04.977913] < - debug - > gbm-kms: Quirks: checking device with devnode: /dev/dri/card0, driver vc4-drm │ [2024-07-03 13:08:05.232576] < -warning- > gbm-kms: Failed to detect whether device /dev/dri/card0 supports KMS, continuing with lower confidence │ [2024-07-03 13:08:05.246676] < - debug - > gbm-kms: Quirks: checking device with devnode: (null), driver │ [2024-07-03 13:08:05.248120] mirserver: Driver supports: │ [2024-07-03 13:08:05.248484] mirserver: /devices/platform/soc/soc:gpu/drm/card0 (priority 128) │ [2024-07-03 13:08:05.248672] mirserver: Found display driver: mir:virtual (version 2.17.0) │ [2024-07-03 13:08:05.248812] mirserver: (Unsupported by system environment) │ [2024-07-03 13:08:05.249134] mirserver: Selected display driver: mir:gbm-kms (version 2.17.0) for device ((null): /dev/dri/card0) │ [2024-07-03 13:08:05.321816] mircommon: Loading modules from: /snap/mir-test-tools/15760/usr/lib/aarch64-linux-gnu/mir/server-platform │ [2024-07-03 13:08:05.322551] mircommon: Loading module: /snap/mir-test-tools/15760/usr/lib/aarch64-linux-gnu/mir/server-platform/graphics-gbm-kms.so.22 │ [2024-07-03 13:08:05.322788] mircommon: Loading module: /snap/mir-test-tools/15760/usr/lib/aarch64-linux-gnu/mir/server-platform/graphics-wayland.so.22 │ [2024-07-03 13:08:05.322943] mircommon: Loading module: /snap/mir-test-tools/15760/usr/lib/aarch64-linux-gnu/mir/server-platform/renderer-egl-generic.so.22 │ [2024-07-03 13:08:05.323079] mircommon: Loading module: /snap/mir-test-tools/15760/usr/lib/aarch64-linux-gnu/mir/server-platform/server-virtual.so.22 │ [2024-07-03 13:08:05.323221] mircommon: Loading module: /snap/mir-test-tools/15760/usr/lib/aarch64-linux-gnu/mir/server-platform/server-x11.so.22 │ [2024-07-03 13:08:05.323384] mircommon: Loading module: /snap/mir-test-tools/15760/usr/lib/aarch64-linux-gnu/mir/server-platform/input-evdev.so.9 │ [2024-07-03 13:08:05.335039] mirserver: Found rendering driver: mir:gbm-kms (version 2.17.0) │ [2024-07-03 13:08:05.335296] < - debug - > gbm-kms: GBM-capable display found │ [2024-07-03 13:08:05.351724] < - debug - > gbm-kms: Quirks: checking device with devnode: /dev/dri/card0, driver vc4-drm │ [2024-07-03 13:08:05.355204] < - debug - > gbm-kms: Quirks: checking device with devnode: (null), driver │ [2024-07-03 13:08:05.359040] < - debug - > gbm-kms: Quirks: checking device with devnode: /dev/dri/renderD128, driver vc4-drm │ [2024-07-03 13:08:05.414782] mirserver: Driver supports: │ [2024-07-03 13:08:05.414991] mirserver: /devices/platform/soc/soc:gpu/drm/renderD128 (priority 256) │ [2024-07-03 13:08:05.415132] mirserver: Found rendering driver: mir:wayland (version 2.17.0) │ [2024-07-03 13:08:05.415472] mirserver: Found rendering driver: mir:egl-generic (version 2.17.0) │ [2024-07-03 13:08:05.466266] mirserver: Driver supports: │ [2024-07-03 13:08:05.466477] mirserver: System (priority 128) │ [2024-07-03 13:08:05.466610] mirserver: Found rendering driver: mir:virtual (version 2.17.0) │ [2024-07-03 13:08:05.466905] mirserver: Found rendering driver: mir:x11 (version 2.17.0) │ [2024-07-03 13:08:05.467410] mirserver: Selected rendering driver: mir:gbm-kms (version 2.17.0) for device ((null): /dev/dri/renderD128) │ [2024-07-03 13:08:05.468687] < - debug - > gbm-kms: Checking whether /dev/dri/renderD128 is the same device as (/dev/dri/card0, /dev/dri/renderD128)... │ [2024-07-03 13:08:05.468819] < - debug - > gbm-kms: ...yup. │ [2024-07-03 13:08:05.645840] < - debug - > gbm-kms: No EDID data available on connector 89 │ [2024-07-03 13:08:05.646054] < -warning- > gbm-kms: Unable to determine the current display mode. │ [2024-07-03 13:08:05.647024] gbm-kms: DRM device details: │ [2024-07-03 13:08:05.647560] gbm-kms: /dev/dri/card0: using driver vc4 [Broadcom VC4 graphics] (version: 0.0.0 driver date: 20140616) │ [2024-07-03 13:08:05.648741] gbm-kms: Output: DSI-1 (connected) │ [2024-07-03 13:08:05.648909] gbm-kms: Mode: 800×480@60.04 │ [2024-07-03 13:08:05.649729] < -warning- > gbm-kms: Ignoring attempt to set zero length gamma │ [2024-07-03 13:08:05.654665] < -warning- > miral: Failed to load cursor theme: default │ [2024-07-03 13:08:05.772372] mirserver: Using hardware cursor │ [2024-07-03 13:08:05.817400] < -warning- > miral: Failed to load cursor theme: default │ [2024-07-03 13:08:05.891891] gbm-kms-buffer-allocator: Enabled linux-dmabuf import support │ [2024-07-03 13:08:05.981928] < - ERROR - > mirserver: Unable to watch directory /snap/mir-test-tools/15760/graphics/usr/share/applications │ [2024-07-03 13:08:05.984786] mircommon: Loading modules from: /snap/mir-test-tools/15760/usr/lib/aarch64-linux-gnu/mir/server-platform │ [2024-07-03 13:08:05.985620] mircommon: Loading module: /snap/mir-test-tools/15760/usr/lib/aarch64-linux-gnu/mir/server-platform/graphics-gbm-kms.so.22 │ [2024-07-03 13:08:05.985994] mircommon: Loading module: /snap/mir-test-tools/15760/usr/lib/aarch64-linux-gnu/mir/server-platform/graphics-wayland.so.22 │ [2024-07-03 13:08:05.986199] mircommon: Loading module: /snap/mir-test-tools/15760/usr/lib/aarch64-linux-gnu/mir/server-platform/renderer-egl-generic.so.22 │ [2024-07-03 13:08:05.986484] mircommon: Loading module: /snap/mir-test-tools/15760/usr/lib/aarch64-linux-gnu/mir/server-platform/server-virtual.so.22 │ [2024-07-03 13:08:05.986793] mircommon: Loading module: /snap/mir-test-tools/15760/usr/lib/aarch64-linux-gnu/mir/server-platform/server-x11.so.22 │ [2024-07-03 13:08:05.987014] mircommon: Loading module: /snap/mir-test-tools/15760/usr/lib/aarch64-linux-gnu/mir/server-platform/input-evdev.so.9 │ [2024-07-03 13:08:06.001094] mirserver: Selected input driver: mir:evdev-input (version: 2.17.0) │ [2024-07-03 13:08:06.002583] mirserver: Mir version 2.17.0 │ [2024-07-03 13:08:06.015562] GLRenderer: EGL vendor: Mesa Project │ [2024-07-03 13:08:06.015858] GLRenderer: EGL version: 1.4 │ [2024-07-03 13:08:06.016023] GLRenderer: EGL client APIs: OpenGL OpenGL_ES │ [2024-07-03 13:08:06.016198] GLRenderer: EGL extensions: EGL_ANDROID_blob_cache EGL_ANDROID_native_fence_sync EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_context_flush_control EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_image_dma_buf_export EGL_MESA_query_driver EGL_WL_bind_wayland_display │ [2024-07-03 13:08:06.016457] GLRenderer: GL vendor: Broadcom │ [2024-07-03 13:08:06.016610] GLRenderer: GL renderer: VC4 V3D 2.1 │ [2024-07-03 13:08:06.016725] GLRenderer: GL version: OpenGL ES 2.0 Mesa 23.2.1-1ubuntu3.1~22.04.2 │ [2024-07-03 13:08:06.016836] GLRenderer: GLSL version: OpenGL ES GLSL ES 1.0.16 │ [2024-07-03 13:08:06.017147] GLRenderer: GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_texture_compression_s3tc GL_EXT_texture_compression_dxt1 GL_EXT_texture_format_BGRA8888 GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_stencil8 GL_OES_texture_npot GL_OES_vertex_half_float GL_OES_EGL_image GL_OES_depth_texture GL_AMD_performance_monitor GL_OES_packed_depth_stencil GL_OES_get_program_binary GL_APPLE_texture_max_level GL_EXT_discard_framebuffer GL_EXT_read_format_bgra GL_NV_pack_subimage GL_EXT_frag_depth GL_NV_fbo_color_attachments GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_array_object GL_ANGLE_pack_reverse_row_order GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug GL_KHR_texture_compression_astc_ldr GL_NV_generate_mipmap_sRGB GL_NV_pixel_buffer_object GL_OES_required_internalformat GL_OES_surfaceless_context GL_EXT_debug_label GL_EXT_separate_shader_objects GL_EXT_compressed_ETC1_RGB8_sub_texture GL_EXT_draw_elements_base_vertex GL_EXT_texture_border_clamp GL_KHR_context_flush_control GL_OES_draw_elements_base_vertex GL_OES_texture_border_clamp GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_EXT_texture_compression_s3tc_srgb GL_KHR_parallel_shader_compile GL_MESA_tile_raster_order GL_MESA_bgra │ [2024-07-03 13:08:06.017377] GLRenderer: GL max texture size = 2048 │ [2024-07-03 13:08:06.020521] GLRenderer: GL framebuffer bits: RGBA=8880, depth=0, stencil=0 │ [2024-07-03 13:08:06.072750] < - debug - > mirserver: Ignoring logind PauseDevice("gone") event for DRM device 226:0 │ [2024-07-03 13:08:06.073026] mirserver: Initial display configuration: │ [2024-07-03 13:08:06.073805] mirserver: * Output 1: DSI connected, used │ [2024-07-03 13:08:06.073947] mirserver: . |_ Physical size 0.0" 0x0mm │ [2024-07-03 13:08:06.074059] mirserver: . |_ Power is on │ [2024-07-03 13:08:06.074192] mirserver: . |_ Current mode 800x480 60.04Hz │ [2024-07-03 13:08:06.074305] mirserver: . |_ Preferred mode 800x480 60.04Hz │ [2024-07-03 13:08:06.077507] mirserver: . |_ Orientation normal │ libinput error: /usr/share/libinput: failed to find data files │ libinput error: Failed to load the device quirks from /usr/share/libinput and /etc/libinput/local-overrides.quirks. This will negatively affect device behavior. See https://wayland.freedesktop.org/libinput/doc/1.20.0/device-quirks.html for details. │ [2024-07-03 13:08:06.078949] mirserver: . |_ Logical size 800x480 │ [2024-07-03 13:08:06.080448] mirserver: . |_ Logical position +0+0 │ [2024-07-03 13:08:06.082322] mirserver: . |_ Scaling factor: 1.00 │ [2024-07-03 13:08:13.193617] GLRenderer: EGL vendor: Mesa Project │ [2024-07-03 13:08:13.194026] GLRenderer: EGL version: 1.4 │ [2024-07-03 13:08:13.194406] GLRenderer: EGL client APIs: OpenGL OpenGL_ES │ [2024-07-03 13:08:13.194692] GLRenderer: EGL extensions: EGL_ANDROID_blob_cache EGL_ANDROID_native_fence_sync EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_context_flush_control EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_image_dma_buf_export EGL_MESA_query_driver EGL_WL_bind_wayland_display │ [2024-07-03 13:08:13.194892] GLRenderer: GL vendor: Broadcom │ [2024-07-03 13:08:13.195054] GLRenderer: GL renderer: VC4 V3D 2.1 │ [2024-07-03 13:08:13.195173] GLRenderer: GL version: OpenGL ES 2.0 Mesa 23.2.1-1ubuntu3.1~22.04.2 │ [2024-07-03 13:08:13.195286] GLRenderer: GLSL version: OpenGL ES GLSL ES 1.0.16 │ [2024-07-03 13:08:13.195799] GLRenderer: GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_texture_compression_s3tc GL_EXT_texture_compression_dxt1 GL_EXT_texture_format_BGRA8888 GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_stencil8 GL_OES_texture_npot GL_OES_vertex_half_float GL_OES_EGL_image GL_OES_depth_texture GL_AMD_performance_monitor GL_OES_packed_depth_stencil GL_OES_get_program_binary GL_APPLE_texture_max_level GL_EXT_discard_framebuffer GL_EXT_read_format_bgra GL_NV_pack_subimage GL_EXT_frag_depth GL_NV_fbo_color_attachments GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_array_object GL_ANGLE_pack_reverse_row_order GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug GL_KHR_texture_compression_astc_ldr GL_NV_generate_mipmap_sRGB GL_NV_pixel_buffer_object GL_OES_required_internalformat GL_OES_surfaceless_context GL_EXT_debug_label GL_EXT_separate_shader_objects GL_EXT_compressed_ETC1_RGB8_sub_texture GL_EXT_draw_elements_base_vertex GL_EXT_texture_border_clamp GL_KHR_context_flush_control GL_OES_draw_elements_base_vertex GL_OES_texture_border_clamp GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_EXT_texture_compression_s3tc_srgb GL_KHR_parallel_shader_compile GL_MESA_tile_raster_order GL_MESA_bgra │ [2024-07-03 13:08:13.196155] GLRenderer: GL max texture size = 2048 │ [2024-07-03 13:08:13.199592] GLRenderer: GL framebuffer bits: RGBA=8888, depth=0, stencil=0 │ [2024-07-03 13:08:26.178268] < - debug - > mirserver: Handling Terminated from pid=20910 ╰────────────────────────────────────────────────────────────────────────────── ---- generated xml file: /tmp/mir-ci_test_vnc[qterminal-mir_test_tools].xml ---- =========================== short test summary info ============================ FAILED tests/test_vnc.py::TestVnc::test_vnc[qterminal-mir_test_tools] - mir_c... ============================== 1 failed in 25.13s ==============================
This error was seen in the lab. For some reason, the
robot
process fails to exit gracefully.Log
Full Log