-
Notifications
You must be signed in to change notification settings - Fork 8
fix: use write instead of end to show results #100
Conversation
Using `process.stdout.end` may disturb the normal closing of the node process. It is safer to use `process.stdout.write`.
What problems does using If we must switch to using |
First, I'm not sure that calling |
From a node team member:
|
So, have you seen an actual failure as a result of the change to using |
No I can't reproduce the faulty behavior on my setup. I just have the intuition that it is where the problem lies. So this is what I propose: we make this simple change and check whether we keep seeing the issue in the telemetry. If it stops great. If it continues, we are still happy to have removed |
I don't think we should make this change as written. I switched from I'm not against changing this code. I just don't think the changes in this PR are sufficient. |
I think the error you saw earlier was due to me calling I don't see anything else to do, this change is my best guest. |
Ok. Let me see if I can reproduce the problem using these changes. |
I confirmed that this does, indeed, fix the problem, at least in my local environment. |
Okay great, I will mark the issue as solved. Let's keep an eye on telemetry and reopen the issue if we see the same problem passing by. |
🎉 This PR is included in version 10.0.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Using
process.stdout.end
may disturb the normal closing of the node process. It is safer to useprocess.stdout.write
. @apotterri is there a good reason to keep usingprocess.stdout.end
? As far as I know, it is the only place in your code that may cause the early exit of node.