WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 171580
REGRESSION: LayoutTest streams/reference-implementation/readable-stream-templated.html is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=171580
Summary
REGRESSION: LayoutTest streams/reference-implementation/readable-stream-templ...
Ryan Haddad
Reported
2017-05-02 17:08:01 PDT
LayoutTest streams/reference-implementation/readable-stream-templated.html is a flaky failure
https://build.webkit.org/results/Apple%20El%20Capitan%20Debug%20WK1%20(Tests)/r216097%20(935)/results.html
https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=streams%2Freference-implementation%2Freadable-stream-templated.html
--- /Volumes/Data/slave/elcapitan-debug-tests-wk1/build/layout-test-results/streams/reference-implementation/readable-stream-templated-expected.txt +++ /Volumes/Data/slave/elcapitan-debug-tests-wk1/build/layout-test-results/streams/reference-implementation/readable-stream-templated-actual.txt @@ -15,7 +15,7 @@ CONSOLE MESSAGE: Unhandled Promise Rejection: TypeError: cancel() called on a reader owned by no readable stream CONSOLE MESSAGE: Unhandled Promise Rejection: TypeError: cancel() called on a reader owned by no readable stream -Harness Error (FAIL), message = cancel() called on a reader owned by no readable stream +Harness Error (FAIL), message = !!! PASS Running templatedRSClosed with ReadableStream (closed via call in start) PASS piping to a WritableStream in the writable state should close the writable stream
Attachments
[PATCH] Proposed Fix
(7.52 KB, patch)
2017-05-05 12:03 PDT
,
Joseph Pecoraro
ap
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Ryan Haddad
Comment 1
2017-05-02 17:13:54 PDT
According to the flakiness dashboard, the earliest failure on macOS is 4/28/2017 4:20:02 PM @
r215945
, but the changes around that time do not appear to be related.
Alexey Proskuryakov
Comment 2
2017-05-04 23:54:24 PDT
The earliest failure I see on internal bots was with
r215927
, but this failure is not frequent enough to pinpoint the culprit. Happens on both Mac and iOS. Looking at the test, I strongly suspect that it became flaky after
r215916
(unhandledrejection). Joe, could you please take a look?
Radar WebKit Bug Importer
Comment 3
2017-05-04 23:55:13 PDT
<
rdar://problem/32009647
>
Joseph Pecoraro
Comment 4
2017-05-05 11:10:07 PDT
I'm unable to reproduce this. $ run-webkit-tests --debug --iterations=40 --force streams/reference-implementation $ run-webkit-tests --debug --iterations=40 --force streams/reference-implementation -1 So I think the best thing to do is just silence the messages in this test.
Joseph Pecoraro
Comment 5
2017-05-05 11:11:33 PDT
Hmm, the File message is "!!!" instead of the unhandled promise rejection message. Let me try to figure out what could cause that.
Joseph Pecoraro
Comment 6
2017-05-05 12:01:17 PDT
"!!!" is an Error that can be thrown in the tests and is included in promise rejections.
Joseph Pecoraro
Comment 7
2017-05-05 12:03:20 PDT
Created
attachment 309194
[details]
[PATCH] Proposed Fix
Alexey Proskuryakov
Comment 8
2017-05-05 12:08:27 PDT
Comment on
attachment 309194
[details]
[PATCH] Proposed Fix rs=me A couple more things to try when reproducing: - overload CPUs with many processes (--fully-parallel --child-processes=50 --repeat 1000) - enable GuardMalloc to change performance characteristics
Joseph Pecoraro
Comment 9
2017-05-05 13:33:00 PDT
<
https://trac.webkit.org/changeset/216267/webkit
>
youenn fablet
Comment 10
2017-05-05 15:06:02 PDT
The best fix would have been to move from async_test to promise_test. Landed fix seems good enough to me.
Joseph Pecoraro
Comment 11
2017-05-05 15:25:07 PDT
(In reply to youenn fablet from
comment #10
)
> The best fix would have been to move from async_test to promise_test. > Landed fix seems good enough to me.
Yeah, I don't want to modify these tests too much. They are roughly imported, and probably out of date from upstream. I don't know if we should treat these as imported tests and avoid modifications or treat them as our own tests and feel free to modify at will.
youenn fablet
Comment 12
2017-05-05 15:37:34 PDT
Piping is outdated since it ties ReadableStream (up-to-date) to WritableStream (outdated). These tests should probably be removed when improving WritableStream and replaced by WPT existing WritableStream tests
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