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

fix: isolate tests #3459

Merged
merged 1 commit into from
Dec 7, 2019
Merged

Conversation

bartlomieju
Copy link
Member

@bartlomieju bartlomieju commented Dec 7, 2019

Fixes Isolate tests as pointed by @kevinkassimo in Gitter.

I screwed it up during #3358 and #3434 because I used pool.spawn_ok which doesn't panic on errors.

core/isolate.rs Show resolved Hide resolved
Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Good catch @kevinkassimo and thanks for the quick fix @bartlomieju. It's scary that such errors can get past CI. I wish I had a way to tell rust to quit the process when any thread panics.

@ry ry merged commit e02029c into denoland:master Dec 7, 2019
@95th
Copy link
Contributor

95th commented Dec 22, 2019

@ry TIL you could use std::panic::set_hook for this.

@bartlomieju bartlomieju deleted the fix-disabled_eager_poll branch December 22, 2019 13:54
@ry
Copy link
Member

ry commented Dec 23, 2019

@95th We had that before but it actually caused other problems - like not being able to see stack traces. Here are some references:
c7e1f8f
tokio-rs/tokio#495
tokio-rs/tokio#209
#1311
#2098
#2097

bartlomieju added a commit to bartlomieju/deno that referenced this pull request Dec 28, 2019
Some tests were silently failing after denoland#3358 and denoland#3434 because pool.spawn_ok
was used which doesn't panic on errors. For reference, the failure looked like this:

thread '<unnamed>' panicked at 'assertion failed: match isolate.poll_unpin(cx) { Poll::Ready(Ok(_)) => true, _ => false, }', core/isolate.rs:1408:7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants