-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
test: pipe requires tmpdir #3231
Conversation
I think this is the more important point. I think this is a better approach: Fishrock123@34daef2 (Writable should allow things to overwrite it as if it were a regular value, I think?) |
Basically, minimizing the institutional knowledge, whether linted or not, is more important in the long run. |
(You'd still need these patches though I think.) Also this still only works if you refresh the tmpdir first, for I think obvious reasons. I'm not sure if that is practical to track. |
common.PIPE resides in the temp directory (except on Windows). Insure that the temp directory is refreshed in tests that use common.PIPE. Fixes: nodejs#3227
0925c1d
to
25f02bf
Compare
@Fishrock123 I'm trying to think of ways to decouple the use of
|
@jbergstroem has been talking about turning |
Re above: @Trott On top of your stuff, I'd like to expose an option to pass a directory in where the temporary directories/files are stored and create/clean that when starting the test runner. Once this is made we should just remove all logic related to NODE_COMMON_PIPE since that breaks parallel runs. We lean on this option in CI. |
Just for background on Not that I see any of this impacting on these changes, just wanted to make sure y'all have that in mind when messing around there. |
All of that sounds great to me. None of the above alters the need for changes in this PR, does it? |
@Trott Shouldn't. If so, I'll just modify post landing this. LGTM btw. |
common.PIPE resides in the temp directory (except on Windows). Insure that the temp directory is refreshed in tests that use common.PIPE. PR-URL: nodejs#3231 Fixes: nodejs#3227 Reviewed-By: Johan Bergström <[email protected]>
Landed in a1040f2 |
@Trott @jbergstroem @rvagg ... should this land in v4.x also? |
@jasnell It's a bugfix for tests only so... ¯_(ツ)_/¯ Probably fine either way. |
common.PIPE resides in the temp directory (except on Windows). Insure that the temp directory is refreshed in tests that use common.PIPE. PR-URL: #3231 Fixes: #3227 Reviewed-By: Johan Bergström <[email protected]>
Landed in v4.x in 7a5ae34 |
Fixes #3227
Except on Windows,
common.PIPE
is in the temp directory. So tests that usecommon.PIPE
need to callcommon.refreshTmpDir()
. I dislike the non-obvious coupling of those two things, and maybe there's a better solution, but for the moment at least, this fixes it.