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

Bubble assertion failures back to the main thread #45061

Merged
merged 1 commit into from May 25, 2022

Conversation

matthewd
Copy link
Member

Without some help, failures in a forked process make for some noise in the output, but won't fail the build.

Instead of trying to transfer the whole exception back, I've gone for a simpler solution of just sending something (the exception class name) back so we'll fail; the full failure will be visible in the child process's stderr output.


This test is currently failing for me locally on macOS, but the more immediate concern is that it's not actually being counted as a failure. At least after this it'll be properly failing, which is.. better?

Without some help, failures in a forked process make for some noise in
the output, but won't fail the build.

Instead of trying to transfer the whole exception back, I've gone for a
simpler solution of just sending _something_ (the exception class name)
back so we'll fail; the full failure will be visible in the child
process's stderr output.
@matthewd matthewd merged commit b5d12ea into rails:main May 25, 2022
@matthewd matthewd deleted the assert-on-main-thread branch May 25, 2022 11:03
zzak pushed a commit to zzak/rails that referenced this pull request Jun 9, 2023
Bubble assertion failures back to the main thread
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

1 participant