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
rfc6555: init at 0.0.0 #67936
rfc6555: init at 0.0.0 #67936
Conversation
f4dee55
to
a50b8c1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Briefly tested it with python 2.7 and 3.7 on NixOS and seems fine in both cases. Maybe it would be nice to briefly comment in the derivation why tests are disabled. |
@d-goldin Can do - they're currently disabled bc they require networking - is it preferable to keep them disabled or is there a way to allow networking during the |
@endocrimes: Yeah, I tried it before and arrived at the same conclusion. Just thought it might make sense to leave a remark in the code so it can be patched in the future or just inform. To my knowledge wrt. network access - while there might be some ways to hack around the sandbox, we shouldn't go there, as it would potentially sacrifice purity reproducibility. But also better to not keep hitting external resources from the build-infra. So often such tests are either selectively disabled/removed or patched to not rely on external resources (ideally upstream of course). |
a50b8c1
to
4f2a3aa
Compare
@d-goldin 👍 added a comment |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review-may-2019/3032/52 |
No, the nix language still doesn't have a good way for that AFAIK. Well, you could cheat by creating a separate fixed-output derivation that produces something trivial on success (e.g. an empty file) and doing tests within that, but... there are also good arguments to try avoiding tests that require internet access. I believe that localhost networking should work fine already (even in the sandbox). |
@vcunat I’m well aware of the downsides of running tests that require network access 😅 - in this case I’m packaging a depending that I am not a maintainer of, so I have limited influence over that. In this case disabling checks is probably fine though. |
If these are just exceptions, it might be worth trying to disable just those that need internet. |
I'm not sure if the disabled tests are holding this PR back, but in case it helps, here is a commit that more selectively disables tests by using a pre-existing decorator: d-goldin@f796e1e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine, though I can't say I know python stuff well.
@vcunat: Why Thanks. |
Here I did |
(cherry picked from commit f5cecbb)
Motivation for this change
rfc6555 is a required dependency of OfflineIMAP 7.3.0.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers