Bug 148569

Summary: REGRESSION(r188639): [GTK] Several inspector tests started to time out in GTK+ bots after r188639
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, clopez, timothy
Priority: P2 Keywords: Gtk, Regression
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch darin: review+

Description Carlos Garcia Campos 2015-08-28 02:08:29 PDT
Let's skip them for now
Comment 1 Carlos Garcia Campos 2015-08-28 02:13:24 PDT
Skipped in r189092
Comment 2 Carlos Alberto Lopez Perez 2015-09-07 12:35:04 PDT
*** Bug 148939 has been marked as a duplicate of this bug. ***
Comment 3 BJ Burg 2015-09-07 14:17:14 PDT
You may need to spend some time getting GTK up to speed with new inspector test infrastructure:

 * Tests load either Test.html or TestStub.html
 * A new method in Internals returns the path to TestStub.html
 * Most tests need to be able to load some auxiliary local files (TestHarness.js, etc) even if they run inside an iframe
Comment 4 Carlos Garcia Campos 2015-09-25 09:22:03 PDT
Created attachment 261926 [details]
Patch
Comment 5 Carlos Garcia Campos 2015-09-25 09:22:34 PDT
(In reply to comment #3)
> You may need to spend some time getting GTK up to speed with new inspector
> test infrastructure:
> 
>  * Tests load either Test.html or TestStub.html
>  * A new method in Internals returns the path to TestStub.html
>  * Most tests need to be able to load some auxiliary local files
> (TestHarness.js, etc) even if they run inside an iframe

This last point was the only thing missing actually. Thanks for your help.
Comment 6 BJ Burg 2015-09-25 10:05:45 PDT
(In reply to comment #5)
> (In reply to comment #3)
> > You may need to spend some time getting GTK up to speed with new inspector
> > test infrastructure:
> > 
> >  * Tests load either Test.html or TestStub.html
> >  * A new method in Internals returns the path to TestStub.html
> >  * Most tests need to be able to load some auxiliary local files
> > (TestHarness.js, etc) even if they run inside an iframe
> 
> This last point was the only thing missing actually. Thanks for your help.

No problem. Let me know if you have any questions or other issues pop up. I'm hoping to get Windows tests working again soon.
Comment 7 Carlos Garcia Campos 2015-09-26 01:41:05 PDT
Committed r190265: <http://trac.webkit.org/changeset/190265>
Comment 8 Carlos Garcia Campos 2015-09-28 03:20:24 PDT
There are still some tests timing out in the bots, but I think they are just slow. I've tried some of them, for example inspector/css/createStyleSheet.html never times out for me, however inspector/css/stylesheet-events-basic.html fails for me when run with run-webkit-tests and passes when using WTR directly. It also pass when running run-webkit-tests with --no-timeout, the test is a lot slower when using run-webkit-tests for some reason. The thing is that I'm not sure if the slowness is somehow expected or a bug specific to the GTK+ port. It seems to me that the inspector tests actually run multiple test cases per test, so it's probably expected to be slow. Should we mark inspector tests as slow to use a higher timeout?
Comment 9 BJ Burg 2015-09-28 09:24:29 PDT
(In reply to comment #8)
> There are still some tests timing out in the bots, but I think they are just
> slow. I've tried some of them, for example
> inspector/css/createStyleSheet.html never times out for me, however
> inspector/css/stylesheet-events-basic.html fails for me when run with
> run-webkit-tests and passes when using WTR directly. It also pass when
> running run-webkit-tests with --no-timeout, the test is a lot slower when
> using run-webkit-tests for some reason. The thing is that I'm not sure if
> the slowness is somehow expected or a bug specific to the GTK+ port. It
> seems to me that the inspector tests actually run multiple test cases per
> test, so it's probably expected to be slow. Should we mark inspector tests
> as slow to use a higher timeout?

We have been seeing similar issues for some Mac bots, with tests having high variance and taking several times longer to complete than when running locally, even on very old hardware (2008 MacBook runs tests in ~3s, bots can take up to 40s+). However, I  have not noticed differences between run-webkit-tests and direct WKTR execution. If you are able to find anything out, do file a bug.

<https://webkit.org/b/148636> tracks general flakiness in inspector tests.