Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uptest: fix test when NODE_OPTIONS env var is set to --trace-warnings #20027
Conversation
nodejs-github-bot
added
test
tools
labels
Apr 14, 2018
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
An argument could be made to also clear out the other environment variables. Or maybe allow them to be set but print out a warning that test results may be affected. |
gibfahn
approved these changes
Apr 15, 2018
This comment has been minimized.
This comment has been minimized.
|
@richardlau hm, how about we do both, warn them that test results may get affected if env variables are set. use |
This comment has been minimized.
This comment has been minimized.
Sounds quite complicated, I'd just unset this one by default for now, and do other things as we need to. If there are reasons to have NODE_OPTIONS set when running the test, we could just introduce an alternative variable like If you want to unset all of them I guess that's fine, but leaving it until someone runs into a problem seems reasonable too. |
jasnell
approved these changes
Apr 16, 2018
This comment has been minimized.
This comment has been minimized.
|
@gibfahn yep, complicated. i guess we can land this pr as is then? and if we run into some problem in future we can come with some other solution |
BridgeAR
added
the
author ready
label
Apr 22, 2018
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Landed in 5af28c2 |
aks- commentedApr 14, 2018
it fixes the issue of tests failing if the shell has
export NODE_OPTIONS='--trace-warnings'setChecklist
make -j4 test(UNIX), orvcbuild test(Windows) passes