Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 664804 - app-i18n/ibus: test failures: ibus-bus & ibus-engine-switch test failed
Summary: app-i18n/ibus: test failures: ibus-bus & ibus-engine-switch test failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2018-08-29 00:13 UTC by Thomas Deutschmann (RETIRED)
Modified: 2018-10-05 09:57 UTC (History)
0 users

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


Attachments
build.log (build.log,213.40 KB, text/plain)
2018-08-29 00:13 UTC, Thomas Deutschmann (RETIRED)
Details
build.log on sparc (app-i18n_ibus-1.5.18_use_sP4cW,277.64 KB, text/plain)
2018-08-29 21:17 UTC, Rolf Eike Beer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann (RETIRED) gentoo-dev 2018-08-29 00:13:46 UTC
Created attachment 545416 [details]
build.log

> FAIL: ibus-bus
> PASS: ibus-config
> PASS: ibus-configservice
> PASS: ibus-factory
> PASS: ibus-inputcontext
> PASS: ibus-inputcontext-create
> PASS: ibus-keynames
> PASS: ibus-registry
> PASS: ibus-serializable
> PASS: ibus-share
> PASS: ibus-util
> FAIL: ibus-engine-switch
> ============================================================================
> Testsuite summary for ibus 1.5.18
> ============================================================================
> # TOTAL: 12
> # PASS:  10
> # SKIP:  0
> # XFAIL: 0
> # FAIL:  2
> # XPASS: 0
> # ERROR: 0
> 
> 
> /ibus/list-engines: OK
> /ibus/list-active-engines: OK
> /ibus/create-input-context-async: OK
> /ibus/get-engines-by-names: OK
> /ibus/get-address: OK
> /ibus/get-current-input-context: OK
> /ibus/get-engines: OK
> /ibus/get-global-engine:
> (/var/tmp/portage/app-i18n/ibus-1.5.18/work/ibus-1.5.18/src/tests/.libs/ibus-bus:18354): IBUS-WARNING **: ibus_bus_call_sync: org.freedesktop.IBus.SetGlobalEngine: GDBus.Error:org.freedesktop.DBus.Error.Failed: Set global engine failed: The connection is closed
> ./runtest: line 117: 18354 Trace/breakpoint trap   (core dumped) ( cd $tstdir; need_bus=no; for t in $BUS_REQUIRED_TESTS;
> do
>     if test $t = `func_basename $tst`; then
>         need_bus=yes;
>     fi;
> done; if test $need_bus = yes; then
>     func_copy_component "../$top_srcdir/engine/simple.xml"; func_copy_component "../$top_srcdir/conf/memconf/memconf.xml"; IBUS_COMPONENT_PATH=$PWD/components; export IBUS_COMPONENT_PATH; IBUS_ADDRESS_FILE=$PWD/ibus-daemon.pid; export IBUS_ADDRESS_FILE; ../$top_builddir/bus/ibus-daemon --daemonize --cache=none --panel=disable --panel-extension=disable --config=default --verbose; sleep 1;
> fi; exec "../$tst" ${1+"$@"} )
> FAIL ibus-bus (exit status: 133)
> 
> 
> 
> 
> /ibus/engine-switch/global-engine:
> (/var/tmp/portage/app-i18n/ibus-1.5.18/work/ibus-1.5.18/src/tests/.libs/ibus-engine-switch:20600): IBUS-WARNING **: ibus_bus_call_sync: org.freedesktop.IBus.SetGlobalEngine: GDBus.Error:org.freedesktop.DBus.Error.Failed: Set global engine failed: The connection is closed
> ./runtest: line 117: 20600 Trace/breakpoint trap   (core dumped) ( cd $tstdir; need_bus=no; for t in $BUS_REQUIRED_TESTS;
> do
>     if test $t = `func_basename $tst`; then
>         need_bus=yes;
>     fi;
> done; if test $need_bus = yes; then
>     func_copy_component "../$top_srcdir/engine/simple.xml"; func_copy_component "../$top_srcdir/conf/memconf/memconf.xml"; IBUS_COMPONENT_PATH=$PWD/components; export IBUS_COMPONENT_PATH; IBUS_ADDRESS_FILE=$PWD/ibus-daemon.pid; export IBUS_ADDRESS_FILE; ../$top_builddir/bus/ibus-daemon --daemonize --cache=none --panel=disable --panel-extension=disable --config=default --verbose; sleep 1;
> fi; exec "../$tst" ${1+"$@"} )
> FAIL ibus-engine-switch (exit status: 133)
>
Comment 1 Rolf Eike Beer archtester 2018-08-29 21:17:07 UTC
I have seen the same on sparc. The interesting thing is that I cannot reproduce it: I afterwards build it twice with the tests and they worked both times.
Comment 2 Rolf Eike Beer archtester 2018-08-29 21:17:39 UTC
Created attachment 545484 [details]
build.log on sparc
Comment 3 Naohiro Aota gentoo-dev 2018-09-01 14:04:28 UTC
Reproduced here. It seems it's failing because gsettings schema is missing.

By running the test by hand, I got the following error output:

/ibus/get-global-engine:                                                                                                                
(process:32542): GLib-GIO-ERROR **: 13:41:36.186: Settings schema 'org.freedesktop.ibus.panel.emoji' is not installed                                                                                                                                                           
                                                                                                                                        (/var/tmp/portage/app-i18n/ibus-1.5.18/work/ibus-1.5.18/src/tests/.libs/ibus-bus:32526): IBUS-WARNING **: 13:41:36.324: ibus_bus_call_sync: org.freedesktop.IBus.SetGlobalEngine: GDBus.Error:org.freedesktop.DBus.Error.Failed: Set global engine failed: The connection is closed

Notice it's complaining that a schema is not installed.

I applied the following two patches, and these errors disappeared.

https://github.com/ibus/ibus/commit/32f2f2bab149ad766674e7421f7044ebe98bb0b6#diff-8ad05a541e438f5b36a7ac06a2c9486f
https://github.com/ibus/ibus/commit/10cc30eac200d10b581d9d2122d5a732f4880943#diff-8ad05a541e438f5b36a7ac06a2c9486f
Comment 4 Arfrever Frehtes Taifersar Arahesis 2018-09-02 03:59:20 UTC
Both these commits are included in IBus 1.5.19, which was added in Gentoo in:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02d5c896c9451a96c4b949ccb0286b8e5ca0073e

Thomas Deutschmann: Please confirm if IBus 1.5.19 passes tests for you.
Comment 5 Arfrever Frehtes Taifersar Arahesis 2018-09-02 04:01:46 UTC
(And for best results, do testing at the time when <app-i18n/ibus-1.5.18 is installed or no version of app-i18n/ibus at all is installed.)
Comment 6 Larry the Git Cow gentoo-dev 2018-10-05 09:57:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cd01d132be45451a6ce59844c62b6d50242d5e9

commit 5cd01d132be45451a6ce59844c62b6d50242d5e9
Author:     Naohiro Aota <naota@gentoo.org>
AuthorDate: 2018-10-04 21:47:46 +0000
Commit:     Naohiro Aota <naota@gentoo.org>
CommitDate: 2018-10-05 09:55:59 +0000

    app-i18n/ibus: add patch to fix test failures
    
    Add upstream patch to enable GSettings in the test.
    https://github.com/ibus/ibus/commit/10cc30eac200d10b581d9d2122d5a732f4880943
    
    Closes: https://bugs.gentoo.org/664804
    Signed-off-by: Naohiro Aota <naota@gentoo.org>
    Package-Manager: Portage-2.3.50, Repoman-2.3.11

 .../ibus-1.5.18-enable-gsettings-in-runtest.patch  | 62 ++++++++++++++++++++++
 app-i18n/ibus/ibus-1.5.18.ebuild                   |  4 +-
 2 files changed, 65 insertions(+), 1 deletion(-)