| Summary: | streams/reference-implementation/readable-stream.html is flaky | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Alexey Proskuryakov <ap> | ||||||||
| Component: | Tools / Tests | Assignee: | Xabier Rodríguez Calvar <calvaris> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | benjamin, calvaris, commit-queue, youennf | ||||||||
| Priority: | P2 | ||||||||||
| Version: | 528+ (Nightly build) | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Bug Depends on: | 143774 | ||||||||||
| Bug Blocks: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Alexey Proskuryakov
2015-04-15 09:33:55 PDT
Created attachment 251005 [details] Patch Comment out flaky tests while working on a more complete solution on bug 143774. Comment on attachment 251005 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=251005&action=review > LayoutTests/ChangeLog:9 > + Can you add the reason of the flakiness in the changelog: order of execution of setTimeout callbacks and promise resolution callbacks is not deterministic, making first failing assertion changing. Also, there may be other tests in this file that need to be commented out. Have you checked all async tests? > LayoutTests/streams/reference-implementation/readable-stream-expected.txt:13 > FAIL ReadableStream: should only call pull once for a forever-empty stream, even after reading read is not implemented Can this test be flakky? Created attachment 251006 [details]
Patch
Comment out more possibly flaky tests
(In reply to comment #3) > Can you add the reason of the flakiness in the changelog: order of execution > of setTimeout callbacks and promise resolution callbacks is not > deterministic, making first failing assertion changing. Done. > Also, there may be other tests in this file that need to be commented out. > Have you checked all async tests? I checked all tests relying on a timeout to call done(), specially the ones that check some condition prior to finish. > > LayoutTests/streams/reference-implementation/readable-stream-expected.txt:13 > > FAIL ReadableStream: should only call pull once for a forever-empty stream, even after reading read is not implemented > > Can this test be flakky? It was subject to, yes. Comment on attachment 251006 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=251006&action=review > LayoutTests/ChangeLog:15 > + The explanation is a bit hard to understand for me as written. It seems more related to promise resolution/setTimeout callbacks being run in an undeterministic way. Additionaly, even if we had all features implemented correctly, we may hit done() before executing other callbacks, hence not executing some important code like checking assertions... Let's ship the changes and check whether flakiness disappear. Created attachment 251008 [details]
Patch for landing
Comment on attachment 251008 [details] Patch for landing Clearing flags on attachment: 251008 Committed r182942: <http://trac.webkit.org/changeset/182942> All reviewed patches have been landed. Closing bug. |