-
Notifications
You must be signed in to change notification settings - Fork 10
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
dandischema/tests/test_metadata.py::test_migrate_041 requires network access #87
Comments
It looks like maybe this was caused by a transient network failure on GitHub's end. If you run the tests again now, do you get the same error? |
@waxlamp well the sandbox for the system-wide install prevents any outgoing connections to avoid code injection, so very obviously it will never be able to reach github. All the files needed should be declaratively downloaded and have a checksum distributed to the package manager. It all works ofc from outside the sandbox. Just wondering whether this test can be sandboxed since everything else worked so nicely, which was a pleasant surprise. |
Ah, sorry, I missed the bit in your original comment about the sandbox. Can you give me some more detail about how you're installing this package system wide? Are you using something like NixOS which forces all software installation through such a sandbox? |
I think we are not yet annotating tests for which need network (well -- internet), so they could be excluded while testing in a sandbox. In dandi-cli we have |
The repository has been modified since the original post so that the test in question no longer exists, and I am unable to get anything to fail with |
Mark tests requiring network access and add a test workflow that disables network access
The
dandischema/tests/test_metadata.py::test_migrate_041
test fails inside the root sandbox for system-wide install. It works if I test it manually based on the source directory as my user. Not really a big issue since it can be easily be blacklisted for the system-wide install.Is it in any case possible to make it work without network access?
This is the full log showing it fail: https://ppb.chymera.eu/cbaa53
The text was updated successfully, but these errors were encountered: