Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that ReadableStreams are cancelled with actual Errors #11034

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

There's a number of spots in the current code, and tests, where cancel methods are not called with appropriate arguments (leading to Promises not being rejected with Errors as intended).
In some cases the cancel reason is implicitly set to undefined, and in others the cancel reason is just a plain String. To address this inconsistency, the patch changes things such that cancelling is done with AbortExceptions everywhere instead.

There's a number of spots in the current code, and tests, where `cancel` methods are not called with appropriate arguments (leading to Promises not being rejected with Errors as intended).
In some cases the cancel `reason` is implicitly set to `undefined`, and in others the cancel `reason` is just a plain String. To address this inconsistency, the patch changes things such that cancelling is done with `AbortException`s everywhere instead.
@Snuffleupagus
Copy link
Collaborator Author

/botio unittest

@pdfjsbot
Copy link

pdfjsbot commented Aug 1, 2019

From: Bot.io (Windows)


Received

Command cmd_unittest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.215.176.217:8877/9928837f7fb80e1/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Aug 1, 2019

From: Bot.io (Linux m4)


Received

Command cmd_unittest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/8f1c941f2a9ca23/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Aug 1, 2019

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/8f1c941f2a9ca23/output.txt

Total script time: 2.63 mins

  • Unit Tests: FAILED

@Snuffleupagus
Copy link
Collaborator Author

Check that the Linux failure is still intermittent...

/botio-linux unittest

@pdfjsbot
Copy link

pdfjsbot commented Aug 1, 2019

From: Bot.io (Linux m4)


Received

Command cmd_unittest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/6992ef929fe3af9/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Aug 1, 2019

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/9928837f7fb80e1/output.txt

Total script time: 5.36 mins

  • Unit Tests: Passed

@pdfjsbot
Copy link

pdfjsbot commented Aug 1, 2019

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/6992ef929fe3af9/output.txt

Total script time: 2.60 mins

  • Unit Tests: Passed

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Aug 1, 2019

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/ba05b3bdea87487/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Aug 1, 2019

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/ba05b3bdea87487/output.txt

Total script time: 1.72 mins

Published

@timvandermeij timvandermeij merged commit 9c8fe31 into mozilla:master Aug 1, 2019
@timvandermeij
Copy link
Contributor

Thanks!

@Snuffleupagus Snuffleupagus deleted the cancel-with-AbortException branch August 2, 2019 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants