-
Notifications
You must be signed in to change notification settings - Fork 28
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
Live tests fail for v6.14 on Windows 10 Strawberry Perl 5.24.1.1 behind HPE firewall #46
Comments
Thanks for the report. I'll do some testing when I get home with access to a Windows machine. |
@skaji possibly related to your changes? |
First I want to make sure whether tests pass or not with Net::HTTP@6.13. @pwr22 Could you test this please?
[update]
|
Or, |
We should create LIVE_TESTS file manually to run tests. |
I see. Sorry, I completely missed that point. |
As far as I know, Net::HTTP itself does not respect https?_proxy environment variable (LWP does). @pwr22 |
@skaji enabling the live tests on 6.13 causes failures also. The difference being that they aren't run by default when installing that version though I don't think it's a good idea to run live tests by default on build unless you have some way of doing a sanity check on connectivity first. Given that this is a HTTP module itself.... that's a bit of a bootstrapping problem At work I'm stuck behind a firewall that stops pretty much all external connectivity. I'm 95% sure that's the problem here too |
Double checked on |
I'd be inclined to try (A) and see how that works out. |
@pwr22 Yes! thanks! |
Hmm, I don't think (A) will be a viable fix for my environment. The firewall seems to respond in such a way that both the current tests sanity check (which I didn't know existed - sorry for missing that!) and |
@pwr22 Could you show us the outputs for the following commands?
|
It seems more like this stems from PR20 and won't change with Test::RequiresInternet. The fix would be to set |
In PowerShell:
|
@skaji As you can see, 'non-authorised' network traffic returns something that my browser is happy to display but it upsets the live test
@genio Thanks, is this a standard? I don't see it mentioned anywhere in the My general opinion is that this kind of testing is often brittle, it assumes that everyone has an open environment which sadly isn't true in the corporate world. IMO this testing should be opt-in, not out. Alternatively, since |
@pwr22 Yes, it became a standard of sorts in 2014. If you like, you can follow through the logic in the Mailing List thread here. Basically, there were too many dists trying to detect users' wishes on their own and they were all different. Test::RequiresInternet honors this environment variable, and our tests here mimic Test::RequiresInternet. The only difference in our test here is that we're not loading up the whole testing harness and whatnot first. This means we can fail those tests somewhat more quickly (nearly immediately). All that being said, I do agree that maybe we should provide this information somewhere in the docs so others don't fall into this same problem. I think we'd be open to suggestion on how to word such documentation. |
Installing 6.13 works fine. I am behind a restrictive outbound firewall with a proxy for external access,
http_proxy
andhttps_proxy
are set correctlyPerl -V
cpanm Net::HTTP@6.14
The text was updated successfully, but these errors were encountered: