Bug 140649

Summary: fast/hidpi/image-srcset-change-dynamically-from-js-2x.html is flaky
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: Tools / TestsAssignee: Alexey Proskuryakov <ap>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, commit-queue, dino, kling, rniwa, thorton, yoav
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
proposed fix
thorton: review+, buildbot: commit-queue-
Archive of layout-test-results from ews105 for mac-mavericks-wk2
none
Archive of layout-test-results from ews103 for mac-mavericks
none
a more complete fix none

Description Alexey Proskuryakov 2015-01-19 16:51:34 PST
fast/hidpi/image-srcset-change-dynamically-from-js-2x.html sometimes fails on WK2 bots. It sometimes fails, other times has output showing that it reloaded more than once.

The test uses a pretty complicated helper script that has multiple load event handlers that compete with testRunner.setBackingScaleFactor() completion.
Comment 1 Alexey Proskuryakov 2015-01-19 16:58:32 PST
Created attachment 244941 [details]
proposed fix
Comment 2 Alexey Proskuryakov 2015-01-19 17:18:46 PST
Comment on attachment 244941 [details]
proposed fix

View in context: https://bugs.webkit.org/attachment.cgi?id=244941&action=review

> LayoutTests/ChangeLog:8
> +        Speculative fix, streamline resources/srcset-helper.js and remove races.

I could actually reproduce the flakiness with 

run-webkit-tests fast/hidpi/image-srcset-change-dynamically-from-js-2x.html  --no-retry -2 --repeat 1000 -f
Comment 3 Build Bot 2015-01-19 17:34:11 PST
Comment on attachment 244941 [details]
proposed fix

Attachment 244941 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/4856970032971776

New failing tests:
svg/css/svg-resource-fragment-identifier-img-src.html
fast/dom/HTMLImageElement/sizes/image-sizes-2x.html
Comment 4 Build Bot 2015-01-19 17:34:15 PST
Created attachment 244943 [details]
Archive of layout-test-results from ews105 for mac-mavericks-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105  Port: mac-mavericks-wk2  Platform: Mac OS X 10.9.5
Comment 5 Build Bot 2015-01-19 19:40:29 PST
Comment on attachment 244941 [details]
proposed fix

Attachment 244941 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/6596122952859648

New failing tests:
svg/css/svg-resource-fragment-identifier-img-src.html
fast/dom/HTMLImageElement/sizes/image-sizes-2x.html
Comment 6 Build Bot 2015-01-19 19:40:32 PST
Created attachment 244956 [details]
Archive of layout-test-results from ews103 for mac-mavericks

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103  Port: mac-mavericks  Platform: Mac OS X 10.9.5
Comment 7 Alexey Proskuryakov 2015-01-19 23:07:00 PST
Created attachment 244970 [details]
a more complete fix

Turns out that:

1. The script was used outside its directory, so more tests needed to be updated.
2. We had two copies of the script, and thus an opportunity to unify them.

I think that this fixes another flaky test, which was wrongfully skipped before.
Comment 8 WebKit Commit Bot 2015-01-20 10:25:58 PST
Comment on attachment 244970 [details]
a more complete fix

Clearing flags on attachment: 244970

Committed r178721: <http://trac.webkit.org/changeset/178721>
Comment 9 WebKit Commit Bot 2015-01-20 10:26:05 PST
All reviewed patches have been landed.  Closing bug.
Comment 10 Sam Sneddon [:gsnedders] 2022-02-01 03:01:09 PST
*** Bug 134923 has been marked as a duplicate of this bug. ***