Repository navigation
tests/ui-smoke: find the GUI process under qemu-user - #4965
Open
grandixximo wants to merge 1 commit into
Open
grandixximo wants to merge 1 commit into
grandixximo wants to merge 1 commit into
Conversation
Some ubuntu-24.04-arm runners cannot run 32-bit ARM, so the armhf job falls back to QEMU. Under qemu-user binfmt a process's argv[0] is the emulator and the interpreter is argv[1]. find_gui_pid only looked at argv[0], never matched the GUI, and the gmoccapy, qtdragon and touchy quit tests failed with "GUI process not found" while the GUI was up. Look at argv[0] and argv[1]. crashdump_report also printed "crash: no readable core dump" on every run, which made the failure read as a crash. Print it only when linuxcnc.err holds a crash marker, the same ones drive.py looks for. Fixes LinuxCNC#4962
grandixximo
force-pushed
the
ui-smoke-quit-slow
branch
from
December 5, 2026 09:10
81ccaad to
1382a10
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some ubuntu-24.04-arm runners cannot run 32-bit ARM, so the armhf job falls back to QEMU (the "Check for native 32-bit execution" step logs "exec format error"). Under qemu-user binfmt a process's argv[0] is the emulator and the python interpreter is argv[1]. find_gui_pid only looked at argv[0], never matched the GUI, and the gmoccapy, qtdragon and touchy quit tests failed with "GUI process not found" while the GUI was running. It now looks at argv[0] and argv[1].
crashdump_report also printed "crash: no readable core dump" on every run, which made the failure read as a crash. It now prints that only when linuxcnc.err holds a crash marker, the same markers drive.py looks for.
Tested locally: the three quit tests pass; with -d a clean run no longer prints the crash line; a process with a qemu-style command line (emulator, python3, .../bin/gui) is found by the new check and missed by the old one. I have no QEMU here, so the armhf CI run is the real test.
Fixes #4962