WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
157816
REGRESSION (
r200887
): LayoutTest http/tests/performance/performance-resource-timing-cached-entries.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=157816
Summary
REGRESSION (r200887): LayoutTest http/tests/performance/performance-resource-...
Ryan Haddad
Reported
2016-05-17 15:30:36 PDT
LayoutTest http/tests/performance/performance-resource-timing-cached-entries.html is flaky on all platforms Most recent failure: <
https://build.webkit.org/results/Apple%20El%20Capitan%20Debug%20WK1%20(Tests)/r201023%20(5296)/results.html
> Flakiness dashboard: <
https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=http%2Ftests%2Fperformance%2Fperformance-resource-timing-cached-entries.html
> --- /Volumes/Data/slave/elcapitan-debug-tests-wk1/build/layout-test-results/http/tests/performance/performance-resource-timing-cached-entries-expected.txt +++ /Volumes/Data/slave/elcapitan-debug-tests-wk1/build/layout-test-results/http/tests/performance/performance-resource-timing-cached-entries-actual.txt @@ -1,2 +1,2 @@ -PASS foundResource is 2 +FAIL foundResource should be 2. Was 3.
Attachments
Patch
(1.53 KB, patch)
2016-05-17 23:10 PDT
,
Yoav Weiss
no flags
Details
Formatted Diff
Diff
Patch
(2.54 KB, patch)
2016-05-17 23:45 PDT
,
Yoav Weiss
no flags
Details
Formatted Diff
Diff
Patch
(3.85 KB, patch)
2016-05-18 14:49 PDT
,
Yoav Weiss
no flags
Details
Formatted Diff
Diff
Patch
(4.41 KB, patch)
2016-05-18 22:59 PDT
,
Yoav Weiss
no flags
Details
Formatted Diff
Diff
Patch
(4.42 KB, patch)
2016-05-18 23:11 PDT
,
Yoav Weiss
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews103 for mac-yosemite
(1.07 MB, application/zip)
2016-05-18 23:40 PDT
,
Build Bot
no flags
Details
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2016-05-17 22:32:55 PDT
This test is super flaky, even causing EWS false positives. It needs to be dealt with very soon. Should we just roll out the patch, given that its test doesn't work reliably?
Yoav Weiss
Comment 2
2016-05-17 22:54:35 PDT
I'm looking into it now.
Yoav Weiss
Comment 3
2016-05-17 23:10:19 PDT
Created
attachment 279216
[details]
Patch
Yoav Weiss
Comment 4
2016-05-17 23:12:34 PDT
I wasn't able to recreate the issue locally, but since the test showed more entries than expected, clearing the entries at the beginning of the test might do the trick. I'll open a separate issue to investigate why this is required in some cases. (as it should happen automatically between navigations)
WebKit Commit Bot
Comment 5
2016-05-17 23:12:43 PDT
Attachment 279216
[details]
did not pass style-queue: ERROR: LayoutTests/ChangeLog:8: Line contains tab character. [whitespace/tab] [5] Total errors found: 1 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Yoav Weiss
Comment 6
2016-05-17 23:45:33 PDT
Created
attachment 279221
[details]
Patch
Yoav Weiss
Comment 7
2016-05-17 23:46:26 PDT
(In reply to
comment #6
)
> Created
attachment 279221
[details]
> Patch
While removing my own tabs from the ChangeLog (oops), I found several others, so removed them as well.
Alexey Proskuryakov
Comment 8
2016-05-18 09:38:47 PDT
Comment on
attachment 279221
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=279221&action=review
> LayoutTests/ChangeLog:8 > + This patch attempts to unflake the test.
What is your plan for investigating the root cause? With the test deflaked on the bots, and with the issue not reproducible for you locally, I don't see how it can be actionable.
Yoav Weiss
Comment 9
2016-05-18 14:00:22 PDT
I'm not sure, but I thought unflaking the test would help avoid EWS false positives. We could always later on introduce an ignored test that just checks for this flakiness on the bots. Regarding the issue itself, the entries are stored inside m_performance which is referenced by DOMWindow. Is it possible that DOMWindow survives navigations/test runs? If so, the solution is most probably to clear m_performance when a new navigation is initiated. Does that make sense?
Alexey Proskuryakov
Comment 10
2016-05-18 14:05:36 PDT
> Is it possible that DOMWindow survives navigations/test runs?
That seems unlikely. Is there any logging you can add to the test to see what happened (maybe print out all the resources if the count is wrong)? You can mark the test as flaky and add the extra logging - that way you can collect information and still unbreak EWS.
Yoav Weiss
Comment 11
2016-05-18 14:08:24 PDT
(In reply to
comment #10
)
> > Is it possible that DOMWindow survives navigations/test runs? > > That seems unlikely. > > Is there any logging you can add to the test to see what happened (maybe > print out all the resources if the count is wrong)? You can mark the test as > flaky and add the extra logging - that way you can collect information and > still unbreak EWS.
That makes sense. I'll do that shortly.
Yoav Weiss
Comment 12
2016-05-18 14:49:33 PDT
Created
attachment 279286
[details]
Patch
Alexey Proskuryakov
Comment 13
2016-05-18 15:56:56 PDT
Comment on
attachment 279286
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=279286&action=review
> LayoutTests/http/tests/performance/performance-resource-timing-cached-entries.html:11 > + if (window.performance) > + console.log("current entries: " + performance.getEntriesByType('resource').length);
I was thinking of something like (right after a shouldBe()): if (foundResource !== 2) { for (var i = 0; i < resources.length; ++i) { if (resources[i].name.indexOf("square") !== -1) debug(resources.name); } } That way, there will be more information logged, and you won't need to change the expectation.
Yoav Weiss
Comment 14
2016-05-18 22:59:30 PDT
Created
attachment 279355
[details]
Patch
Yoav Weiss
Comment 15
2016-05-18 23:11:28 PDT
Created
attachment 279357
[details]
Patch
Yoav Weiss
Comment 16
2016-05-18 23:12:38 PDT
Comment on
attachment 279357
[details]
Patch Added more logs. Landing
Build Bot
Comment 17
2016-05-18 23:40:49 PDT
Comment on
attachment 279357
[details]
Patch
Attachment 279357
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.webkit.org/results/1346582
New failing tests: storage/websql/database-lock-after-reload.html
Build Bot
Comment 18
2016-05-18 23:40:56 PDT
Created
attachment 279360
[details]
Archive of layout-test-results from ews103 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews103 Port: mac-yosemite Platform: Mac OS X 10.10.5
Yoav Weiss
Comment 19
2016-05-19 00:46:21 PDT
Comment on
attachment 279357
[details]
Patch The failing tests seem unrelated. Trying again to cq+
WebKit Commit Bot
Comment 20
2016-05-19 01:07:30 PDT
Comment on
attachment 279357
[details]
Patch Clearing flags on attachment: 279357 Committed
r201130
: <
http://trac.webkit.org/changeset/201130
>
WebKit Commit Bot
Comment 21
2016-05-19 01:07:35 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug