keymanapp / keyman

Keyman cross platform input methods system running on Android, iOS, Linux, macOS, Windows and mobile and desktop web
https://keyman.com/
Other
377 stars 104 forks source link

chore(linux): handle ibus connection failure in CI builds #10429

Open mcdurdin opened 5 months ago

mcdurdin commented 5 months ago

https://build.palaso.org/buildConfiguration/Keyman_Linux_Test_Integration/435930?buildTab=log&linesState=86&logView=flowAware&focusLine=1931

ermshiperete commented 4 months ago

Tests sometimes fail with:

[03:34:20 ](https://build.palaso.org/buildConfiguration/Keyman_Linux_Test_Integration/435930?buildTab=log&linesState=1808&logView=flowAware&focusLine=1808)
   98/100 X11-048___modifier_keys_keep_context__no-surrounding-text      ERROR            0.32s   (exit status 133 or signal 5 SIGTRAP)

[03:34:20 ](https://build.palaso.org/buildConfiguration/Keyman_Linux_Test_Integration/435930?buildTab=log&linesState=1809&logView=flowAware&focusLine=1809)
  >>> G_TEST_SRCDIR=/var/lib/TeamCity/agent/work/99b311828f4ee7c/keyman/linux/ibus-keyman/tests G_TEST_BUILDDIR=/var/lib/TeamCity/agent/work/99b311828f4ee7c/keyman/linux/build/x86_64/release/tests MALLOC_PERTURB_=154 /var/lib/TeamCity/agent/work/99b311828f4ee7c/keyman/linux/ibus-keyman/tests/scripts/run-single-test.sh --testname 048___modifier_keys_keep_context --x11 --no-surrounding-text --tap -k --env /tmp/env.txt --cleanup /tmp/ibus-keyman-test-pids --check /tmp/ibus-keyman-test-pids.pids -- k_048___modifier_keys_keep_context.kmx 048___modifier_keys_keep_context

[03:34:20 ](https://build.palaso.org/buildConfiguration/Keyman_Linux_Test_Integration/435930?buildTab=log&linesState=1810&logView=flowAware&focusLine=1810)
  ――――――――――――――――――――――――――――――――――――― ✀  ―――――――――――――――――――――――――――――――――――――

[03:34:20 ](https://build.palaso.org/buildConfiguration/Keyman_Linux_Test_Integration/435930?buildTab=log&linesState=1811&logView=flowAware&focusLine=1811)
  stderr:

[03:34:20 ](https://build.palaso.org/buildConfiguration/Keyman_Linux_Test_Integration/435930?buildTab=log&linesState=1812&logView=flowAware&focusLine=1812)
  # NOTE: When the tests fail check /tmp/ibus-engine-keyman.log and /tmp/ibus-daemon.log!

[03:34:20 ](https://build.palaso.org/buildConfiguration/Keyman_Linux_Test_Integration/435930?buildTab=log&linesState=1813&logView=flowAware&focusLine=1813)

[03:34:20 ](https://build.palaso.org/buildConfiguration/Keyman_Linux_Test_Integration/435930?buildTab=log&linesState=1814&logView=flowAware&focusLine=1814)
  # Starting tests...

[03:34:20 ](https://build.palaso.org/buildConfiguration/Keyman_Linux_Test_Integration/435930?buildTab=log&linesState=1815&logView=flowAware&focusLine=1815)

[03:34:20 ](https://build.palaso.org/buildConfiguration/Keyman_Linux_Test_Integration/435930?buildTab=log&linesState=1816&logView=flowAware&focusLine=1816)
  (ibus-keyman-tests:1257743): IBUS-CRITICAL **: 21:34:20.088: ibus_bus_call_sync: assertion 'ibus_bus_is_connected (bus)' failed

[03:34:20 ](https://build.palaso.org/buildConfiguration/Keyman_Linux_Test_Integration/435930?buildTab=log&linesState=1817&logView=flowAware&focusLine=1817)
  /var/lib/TeamCity/agent/work/99b311828f4ee7c/keyman/linux/ibus-keyman/tests/scripts/run-single-test.sh: line 43: 1257743 Trace/breakpoint trap   (core dumped) "${G_TEST_BUILDDIR:-.}"/ibus-keyman-tests ${ARG_K-} ${ARG_TAP-} ${ARG_VERBOSE-} ${ARG_DEBUG-} ${ARG_SURROUNDING_TEXT-} ${ARG_NO_SURROUNDING_TEXT-} --directory "$TESTDIR" ${ARG_DISPLAY_SERVER} "$TESTFILE"

[03:34:20 ](https://build.palaso.org/buildConfiguration/Keyman_Linux_Test_Integration/435930?buildTab=log&linesState=1818&logView=flowAware&focusLine=1818)

[03:34:20 ](https://build.palaso.org/buildConfiguration/Keyman_Linux_Test_Integration/435930?buildTab=log&linesState=1819&logView=flowAware&focusLine=1819)
  (test program exited with status code 133)

[03:34:20 ](https://build.palaso.org/buildConfiguration/Keyman_Linux_Test_Integration/435930?buildTab=log&linesState=1820&logView=flowAware&focusLine=1820)
  ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

03:34:20
ermshiperete commented 2 weeks ago

See also #11247