Re: [OE-core] [PATCH v3] glib-2.0: fix ptest failures

2019-05-14 Thread Yu, Mingli



On 2019年05月13日 17:40, richard.pur...@linuxfoundation.org wrote:

On Mon, 2019-05-13 at 17:25 +0800, Yu, Mingli wrote:


On 2019年05月08日 20:25, richard.pur...@linuxfoundation.org wrote:

On Wed, 2019-05-08 at 12:54 +0100, Burton, Ross wrote:

On Wed, 8 May 2019 at 04:06,  wrote:

* Increase the timeout to 15 minutes as the default
timeout which is 5 minutes is not enough to fix below error:
| Executing: glib/actions.test
| Test timed out after 300 seconds
| cleaning up pid 13050
| FAIL: glib/actions.test (Child process killed by signal 9)


My Debian machine runs that test in 20 seconds.

Maybe we're missing dependencies to get a working session dbus
up?


That seems likely. I'd note that we see:

https://autobuilder.yocto.io/pub/non-release/20190502-12/testresults/testresult-report.txt


Recipe   | Passed  | Failed   | Skipped   |
Time(s)
glib-2.0 | 290 | 1| 0 |
427

and the failing test is:

  ptestresult.glib-
2.0.glib/gdatetime.test__Child_process_killed_by_signal_6_

so it would seem this is working on our autobuilder tests? That
would
seem to back up Ross' comments.


Thanks Ross and RP's comments!

It's weird! Seems it succeeds in autobuilder, but I can reproduce
the
glib/actions.test failure steadily in my env as below:
# time; /usr/libexec/installed-tests/glib/actions -p;time
user0m0.13s
sys 0m0.07s
/actions/dbus/threaded: OK
user6m29.03s
sys 0m50.46s


I suspect its a dependency such as the dbus session Ross mentioned.
Which image are you running this test in? Have you tried testing in
something like a core-image-sato for comparison?


Use core-image-sato to test in my env as below and still 
/actions/dbus/threaded takes most of the time.


# time; /usr/libexec/installed-tests/glib/actions -p;time
user0m0.20s
sys 0m0.09s
/actions/basic: OK
/actions/name: OK
/actions/simplegroup: OK
/actions/stateful: OK
/actions/default-activate: OK
/actions/entries: OK
/actions/parse-detailed: OK
/actions/property: OK
/actions/dbus/export: OK
/actions/dbus/threaded: OK
/actions/dbus/bug679509: OK
user6m29.77s
sys 0m48.97s

Thanks,



It would be good to narrow down the missing dependency.

Cheers,

Richard



--
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v3] glib-2.0: fix ptest failures

2019-05-13 Thread richard . purdie
On Mon, 2019-05-13 at 17:25 +0800, Yu, Mingli wrote:
> 
> On 2019年05月08日 20:25, richard.pur...@linuxfoundation.org wrote:
> > On Wed, 2019-05-08 at 12:54 +0100, Burton, Ross wrote:
> > > On Wed, 8 May 2019 at 04:06,  wrote:
> > > > * Increase the timeout to 15 minutes as the default
> > > >timeout which is 5 minutes is not enough to fix below error:
> > > >| Executing: glib/actions.test
> > > >| Test timed out after 300 seconds
> > > >| cleaning up pid 13050
> > > >| FAIL: glib/actions.test (Child process killed by signal 9)
> > > 
> > > My Debian machine runs that test in 20 seconds.
> > > 
> > > Maybe we're missing dependencies to get a working session dbus
> > > up?
> > 
> > That seems likely. I'd note that we see:
> > 
> > https://autobuilder.yocto.io/pub/non-release/20190502-12/testresults/testresult-report.txt
> > 
> > 
> > Recipe   | Passed  | Failed   | Skipped   |
> > Time(s)
> > glib-2.0 | 290 | 1| 0 |
> > 427
> > 
> > and the failing test is:
> > 
> >  ptestresult.glib-
> > 2.0.glib/gdatetime.test__Child_process_killed_by_signal_6_
> > 
> > so it would seem this is working on our autobuilder tests? That
> > would
> > seem to back up Ross' comments.
> 
> Thanks Ross and RP's comments!
> 
> It's weird! Seems it succeeds in autobuilder, but I can reproduce
> the 
> glib/actions.test failure steadily in my env as below:
> # time; /usr/libexec/installed-tests/glib/actions -p;time
> user  0m0.13s
> sys   0m0.07s
> /actions/dbus/threaded: OK
> user  6m29.03s
> sys   0m50.46s

I suspect its a dependency such as the dbus session Ross mentioned.
Which image are you running this test in? Have you tried testing in
something like a core-image-sato for comparison?

It would be good to narrow down the missing dependency.

Cheers,

Richard

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v3] glib-2.0: fix ptest failures

2019-05-13 Thread Yu, Mingli



On 2019年05月08日 20:25, richard.pur...@linuxfoundation.org wrote:

On Wed, 2019-05-08 at 12:54 +0100, Burton, Ross wrote:

On Wed, 8 May 2019 at 04:06,  wrote:

* Increase the timeout to 15 minutes as the default
   timeout which is 5 minutes is not enough to fix below error:
   | Executing: glib/actions.test
   | Test timed out after 300 seconds
   | cleaning up pid 13050
   | FAIL: glib/actions.test (Child process killed by signal 9)


My Debian machine runs that test in 20 seconds.

Maybe we're missing dependencies to get a working session dbus up?


That seems likely. I'd note that we see:

https://autobuilder.yocto.io/pub/non-release/20190502-12/testresults/testresult-report.txt


Recipe   | Passed  | Failed   | Skipped   | Time(s)
glib-2.0 | 290 | 1| 0 | 427

and the failing test is:

 ptestresult.glib-2.0.glib/gdatetime.test__Child_process_killed_by_signal_6_

so it would seem this is working on our autobuilder tests? That would
seem to back up Ross' comments.


Thanks Ross and RP's comments!

It's weird! Seems it succeeds in autobuilder, but I can reproduce the 
glib/actions.test failure steadily in my env as below:

# time; /usr/libexec/installed-tests/glib/actions -p;time
user0m0.13s
sys 0m0.07s
/actions/dbus/threaded: OK
user6m29.03s
sys 0m50.46s

Thanks,



Cheers,

Richard



--
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v3] glib-2.0: fix ptest failures

2019-05-08 Thread richard . purdie
On Wed, 2019-05-08 at 12:54 +0100, Burton, Ross wrote:
> On Wed, 8 May 2019 at 04:06,  wrote:
> > * Increase the timeout to 15 minutes as the default
> >   timeout which is 5 minutes is not enough to fix below error:
> >   | Executing: glib/actions.test
> >   | Test timed out after 300 seconds
> >   | cleaning up pid 13050
> >   | FAIL: glib/actions.test (Child process killed by signal 9)
> 
> My Debian machine runs that test in 20 seconds.
> 
> Maybe we're missing dependencies to get a working session dbus up?

That seems likely. I'd note that we see:

https://autobuilder.yocto.io/pub/non-release/20190502-12/testresults/testresult-report.txt


Recipe   | Passed  | Failed   | Skipped   | Time(s)
glib-2.0 | 290 | 1| 0 | 427

and the failing test is:

ptestresult.glib-2.0.glib/gdatetime.test__Child_process_killed_by_signal_6_

so it would seem this is working on our autobuilder tests? That would
seem to back up Ross' comments.

Cheers,

Richard

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v3] glib-2.0: fix ptest failures

2019-05-08 Thread Burton, Ross
On Wed, 8 May 2019 at 04:06,  wrote:
> * Increase the timeout to 15 minutes as the default
>   timeout which is 5 minutes is not enough to fix below error:
>   | Executing: glib/actions.test
>   | Test timed out after 300 seconds
>   | cleaning up pid 13050
>   | FAIL: glib/actions.test (Child process killed by signal 9)

My Debian machine runs that test in 20 seconds.

Maybe we're missing dependencies to get a working session dbus up?

Ross
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v3] glib-2.0: fix ptest failures

2019-05-07 Thread mingli.yu
From: Mingli Yu 

* Install 7 translation packages to fix 7 ptest
  failures such as:
  | GLib:ERROR:../glib-2.58.3/glib/tests/gdatetime.c:1477:test_non_utf8_printf: 
assertion failed (__p == ("10\346\234\210")): ("Oct" == "10\346\234\210")
  | GLib:ERROR:../glib-2.58.3/glib/tests/gdatetime.c:1716:test_month_names: 
assertion failed (p_casefold == (o_casefold)): ("nov" == "stu")
  | GLib:ERROR:../glib-2.58.3/glib/tests/gdatetime.c:1731:test_month_names: 
assertion failed (p_casefold == (o_casefold)): ("jul" == "liep.")

* Increase the timeout to 15 minutes as the default
  timeout which is 5 minutes is not enough to fix below error:
  | Executing: glib/actions.test
  | Test timed out after 300 seconds
  | cleaning up pid 13050
  | FAIL: glib/actions.test (Child process killed by signal 9)

Signed-off-by: Mingli Yu 
---
 meta/recipes-core/glib-2.0/glib-2.0/run-ptest | 2 +-
 meta/recipes-core/glib-2.0/glib.inc   | 7 +++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-core/glib-2.0/glib-2.0/run-ptest 
b/meta/recipes-core/glib-2.0/glib-2.0/run-ptest
index 8f082d34f6..893125d772 100644
--- a/meta/recipes-core/glib-2.0/glib-2.0/run-ptest
+++ b/meta/recipes-core/glib-2.0/glib-2.0/run-ptest
@@ -2,5 +2,5 @@
 
 set -eux
 useradd glib2-test
-su glib2-test -c gnome-desktop-testing-runner glib
+su glib2-test -c "gnome-desktop-testing-runner glib -t 900"
 userdel glib2-test
diff --git a/meta/recipes-core/glib-2.0/glib.inc 
b/meta/recipes-core/glib-2.0/glib.inc
index 574bb38557..1e8fea2df1 100644
--- a/meta/recipes-core/glib-2.0/glib.inc
+++ b/meta/recipes-core/glib-2.0/glib.inc
@@ -152,6 +152,13 @@ RDEPENDS_${PN}-ptest += "\
 tzdata-europe \
 tzdata-posix \
 shared-mime-info \
+${PN}-locale-ja \
+${PN}-locale-fr \
+${PN}-locale-el \
+${PN}-locale-hr \
+${PN}-locale-lt \
+${PN}-locale-pl \
+${PN}-locale-ru \
"
 
 RDEPENDS_${PN}-ptest_append_libc-glibc = "\
-- 
2.18.1

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core