Open rrelyea opened 3 years ago
@zivkan @sbanni - Given our stance today, do we still need to do work here?
My PR comments were basically "don't write tests that use real URLs/HTTP requests". When dotnet.myget.org was decomissioned, we had tests break (I don't know if it was these tests, or different ones), which broke our builds and our ability to merge PRs, until we fixed it. In the last 2 weeks, we've had a test that makes requests to nuget.smbsrc.net (unrelated to codespaces) occasionally timeout, again breaking our builds.
So, on one hand yes, I still believe that we should change tests that make real HTTP requests to use mocked HTTP tests (or a fake HTTP source running on localhost). On the other hand, we can deal with these types or errors and flakiness when it causes problems, rather than being proactive about it.
But I still wish people would stop writing/copying tests that make real HTTP requests to remote servers.
Is this relevant?
Unless you have information otherwise, I believe my comments in https://github.com/NuGet/Home/issues/10393#issuecomment-818396901 stands.