| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
copied my comments from #3191 lgtm I imagine the proper way to do this is with Object.assign() but since it's tests I'm not sure it matters, anyone else have an opinion on that? |
Sorry, something went wrong.
|
I think @cjihrig was suggesting using this approach env: util._extend(process.env, {NODE_DEBUG: process.argv[2]}) |
Sorry, something went wrong.
|
I forgot we have Object.assign() now. If you can use that, that's probably the correct approach. |
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
I think you can drop the || {} now.
Sorry, something went wrong.
There was a problem hiding this comment.
Fixed.
Sorry, something went wrong.
There was a problem hiding this comment.
Is HOME still required? Seems like it should get copied over now.
Sorry, something went wrong.
There was a problem hiding this comment.
Yeah, thanks, you are right. Home should be copied over. Fixed.
Sorry, something went wrong.
|
LGTM |
Sorry, something went wrong.
|
lgtm will land tomorrow |
Sorry, something went wrong.
Sorry, something went wrong.
|
Seeing a CI failure on freebsd (https://ci.nodejs.org/job/node-test-commit-other/854/nodes=freebsd101-64/console) that may be related to this commit. not ok 886 test-child-process-emfile.js
#
#assert.js:89
# throw new assert.AssertionError({
# ^
#AssertionError: 0 undefined null
# at emitTwo (events.js:87:13)
# at ChildProcess.emit (events.js:172:7)
# at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
@john-yan @mhdawson ... can you please investigate before landing in master. If landed in master in time, I'll pick it back to v4.x but not sure it'll make it for v4.2.0 |
Sorry, something went wrong.
|
I've been seeing that test fail more often |
Sorry, something went wrong.
|
Pretty sure that test isn't related: #3193 |
Sorry, something went wrong.
|
Object.assign actually modifies the first argument, should we really send process.env there? Maybe do this instead: - Object.assign(process.env, { foo: expected })
+ Object.assign({}, process.env, { foo: expected }) |
Sorry, something went wrong.
|
Hello @LinusU , looks like they wanted to extend process.env instead. |
Sorry, something went wrong.
|
Hello @jasnell , Given that the changes in this commit has no global effect and no change has been made to the failing test cases in the CI, I don't think it's related. |
Sorry, something went wrong.
|
Ok. Thank you for clarifying. Running one more local test then will land on master. |
Sorry, something went wrong.
Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> PR-URL: #3190
Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> PR-URL: #3190
| Back | FazBrowse Home | New Git URL |
When the parent spawn the child processes, the environment variables passing into the child processes are missing the original env variables passing into the parent. Some missing variables like LD_LIBRARY_PATH cause the child processes unable to run.
PR-URL: #3183