-
-
Notifications
You must be signed in to change notification settings - Fork 859
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
Tests on windows #278
Tests on windows #278
Conversation
2 similar comments
Ok, for reference, here is the failing test output from issue #241 ...
|
So as it turns out, tests 4 and 5 are failing on Windows because they're failing everywhere, linux included... The |
Ok Test 1 is fixed by 1fcf13b, pretty simple. On Windows, node binary path is usually in Tests 4 and 5 are fixed by d25aee4. This is the test that was actually failing on linux too. Thankfully it was a mistake in the test, not in the source. But I did make a change to the source, so that the test would work as expected; I made a change that allows Test 7 is fixed by 0a01850. This seems to indicate a (weird) portability issue with the nodejs platform itself (see zenflow/node-bug-windows-process-dot-env) but, going by the description of the test, it is not important that |
The last issue seems to be that (in all environments) I updated That seems like a subtly big problem: our test runner does not support the range of nodejs versions that we do. I can't see any immediate solution to that (except changing the test runner, and that seems out-of-scope for this PR) so for now I will revert 51c239e and simply disable the "global variable leak detection" feature of lab. |
This PR is now ready for review (and merging too I think) |
Thanks for all of this! In #279, I was able to upgrade lab to avoid turning off leak detection and rework the parse stubbing to avoid changing the source. Patch release will go out soon 🙏 If you have the time, it would be worth following up on why Windows turns empty string assignments to |
@maxbeatty Glad I could help. To be honest, a little disappointed that you didn't think this PR was worth reviewing/discussing and merging, and you rather copy the work into your own PR. But I'll remind myself that that's not really important 😄. The nodejs bug is really beyond me; no chance I'll be able to figure out why. (It's so random in when it pops up, but thankfully it can be consistently reproduced) But I did file this bug report with a reproduction repository: nodejs/node#19048 |
Please know your contribution is appreciated. Sometimes it's easier to pull in changes manually than exchange multiple rounds of reviews. If dotenv's codebase can be cleaner and simpler after the v8.10.0 release, we would welcome more contributions. |
Resolves #241 (sorry for taking so long to get around to this)
Opening this PR early to test the AppVeyor configuration