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
error thrown prior to QUnit.start causes tests to hang. #8409
Comments
@stefanpenner - Can you double check that demo repo? I just did:
And all tests pass:
Maybe you forgot to push a commit with the error inducing code? |
@rwjblue ya, i likely didn't push yet when you tried it. Try again?
|
// throw here, totally silent error (expected for now);
<script src="/testem.js" integrity=""></script>
// throw here, all tests are run, but the failure is included With todays approach global errors after Global failures while QUnit (likely also mocha) is in control should be simple handled be QUnit and Mocha. The issue really is, if an error occurs before QUnit/Mocha take over, we are left in a bad state. Because of this we may want to consider that global errors from the point |
It is also worth noting, this doesn't appear to be regression. |
@rwjblue et.al Thoughts? |
I think it would be fine to consider global failures before test framework detection is ran to be fatal... |
We've just run into this exact scenario, causing multiple CI runs to hang due to bad import paths in tests. and there is work to do get people always checking locally before pushing and we'll be reminding developers of that, but it would be greatly appreciated if that didn't just take the CI node out of action. looking for my issue in the list this one feels like it might be the same thing #8247 |
While debugging a "hung CI" build with @chadhietala we noticed that if an error was thrown prior to
QUnit.start
being invoked, our tests hang forever.Example repo: https://github.com/stefanpenner/__test-chads-problem
The text was updated successfully, but these errors were encountered: