-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
[v11.x] process: provide dummy stdio for non-console Windows apps #25356
Conversation
The only known condition where we could not provide appropriate stdio streams so far were non-console Windows applications. Since this issue has come up a few times in our issue tracker now, switch to providing dummy streams for these cases instead. If there are other valid cases in which `uv_guess_handle` fails, and where there is a more sensible way to provide stdio, we’ll probably still find out because the streams don’t work properly either way. Refs: nodejs/help#1251 PR-URL: nodejs#20640 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
/cc @nodejs/platform-macos for investigating the failure |
For Windows, the compilation issue is strange:
Maybe just a fluke needing a retry? /cc @nodejs/build @nodejs/platform-windows |
@bzoz Yeah, I wouldn’t worry about that for now… marking this as WIP while it’s failing on macOS |
@addaleax Can reproduce failure locally on macOS. Going to bisect master to see if I can identify the commit that fixed it there. |
It appears that 3337836 is the commit that fixed things so that this change no longer caused test failures on macOS. So maybe if that backport is done and landed first, this one will pass on macOS? |
@Trott thanks for investigating! I am going to land the mentioned backport later, so let's see if we are able to land this afterwards. |
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.
LG if the CI is green.
Landed in 8d166c9 🎉 (OS-X is finally green due to the console commit). |
Clean cherry-pick of #20640, it’s just macOS CI that this may or may not end up being blocked on.
The only known condition where we could not provide appropriate
stdio streams so far were non-console Windows applications.
Since this issue has come up a few times in our issue tracker now,
switch to providing dummy streams for these cases instead.
If there are other valid cases in which
uv_guess_handle
fails,and where there is a more sensible way to provide stdio,
we’ll probably still find out because the streams don’t work
properly either way.