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. |
cristianoc
left a comment
There was a problem hiding this comment.
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 <cristianoc@users.noreply.github.com>

#5471 (comment)