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 a bug in build_test where the resolve* apis would leak unhandled async errors #2599

Merged
merged 4 commits into from Jan 14, 2020

Conversation

jakemac53
Copy link
Contributor

@jakemac53 jakemac53 commented Jan 14, 2020

Fixes #2596

Specifically if the action callback throws any exceptions then we would leak those as unhandled async errors.

We can't await the call to runBuilder because that would block on the tearDown future which would hang tests.

The solution is to just swallow all errors from the unawaited future, and rely on the onDone Future to report most errors. We try/catch the action callback and forward the errors to the onDone completer.

…m the action callback as unhandled async errors to client code
@googlebot googlebot added the cla: yes Google is happy with the PR contributors label Jan 14, 2020
Copy link
Member

@kevmoo kevmoo left a comment

Choose a reason for hiding this comment

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

💯 Thanks!

@jakemac53
Copy link
Contributor Author

Looks like something else in the latest dev broke us - investigating.

@jakemac53
Copy link
Contributor Author

bad dev release is causing the integration test failures - merging on red.

@jakemac53 jakemac53 merged commit 123f546 into master Jan 14, 2020
@jakemac53 jakemac53 deleted the build-test-resolve-sources-fix branch January 14, 2020 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google is happy with the PR contributors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

build_test fails with an out-of-call-stack exception with build_resolvers 1.3.1
4 participants