-
Notifications
You must be signed in to change notification settings - Fork 469
citest: add callback #5477
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
citest: add callback #5477
Conversation
e489241
to
aeca741
Compare
@cristianoc sorry, i was about to push fix 😓 |
Was in the middle of checking that failures were reported, so I just had that at hand. |
Next, I'll try like 100 times that test don't hang anymore. And we haven't just lowered the probability of hanging. |
There's one more outstanding issue: Windows unit tests enjoy returning a timeout from time to time. But that's unrelated to this. |
|
I could just repro as well. So, back to sync? |
Maybe try see what test is causing this. Haven't found out yet which one is hanging. |
Can we have sync as a parameter, so we can switch back and forth between the two while trying to find out more. |
I suspect this:
is enough to create trouble. |
What if this is done in a Some |
hm in the checks I did, I could see a different test each time:
So i'm unsure it's a problem of a specific test, but rather how they're invoked from |
@cristianoc I tried using Then I noticed that the tests hanging would always be the ones that were overriding Maybe if both parent and child scripts are using same stdio, they might end up waiting for each other before closing. |
The probability has gone down a lot in the last commit.
|
Actually tested wrongly. Hold on. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While waiting for tests to run hundreds of times...
Wish there was such a clear statement in one of the issues reported on node. Appears to be true though. |
The |
Merging as resolved! (Until someone adds a test that redirects stdio). |
ftr this section in node.js docs seems relevant:
|
Indeed that was linked in the previous issue too. Pretty indirect phrasing though. |
* citest: add callback * clean up * tests: use rescript_exe in custom_namespace test * tests: remove stdio override from all tests that used it Co-authored-by: Cristiano Calcagno <[email protected]>
#5471 (comment)