Skip to content

When gyb-generation fails on a subthread, raise that exception in the parent thread #534

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

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Aug 1, 2022

An exception raised in a thread managed by ThreadPoolExecutor only gets raised if its value is retrieved. Iterate over all the 'None' results to cause the exceptions to be propagated.

Otherwise, gyb-generation can silently fail.

… parent thread

An exception raised in a thread managed by `ThreadPoolExecutor` only gets raised if its value is retrieved. Iterate over all the 'None' results to cause the exceptions to be propagated.

Otherwise, gyb-generation can silently fail.
@ahoppen ahoppen requested a review from rintaro August 1, 2022 13:03
@ahoppen
Copy link
Member Author

ahoppen commented Aug 1, 2022

@swift-ci Please test

@ahoppen ahoppen merged commit c3b5493 into swiftlang:main Aug 2, 2022
@ahoppen ahoppen deleted the pr/propogate-exception-from-threaded-gyb-generation branch January 14, 2023 08:21
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.

2 participants