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
enabled arclink decryption during download #1360
Conversation
coverage/coveralls lies - it includes files which were not changed in this PR - however I really love the idea of this feature if it would work ... |
Yea coveralls is funny sometimes...no clue why it lists untouched files. The PR itself looks fine to me. I assume you locally tested on py2 and py3? |
tests were fine for windows - still would be nice if someone would test it manually on linux |
I get lots of timeouts when running |
hmm not good - I'll check at home if this is still running for me and report back - thanks for testing |
oh and port 36000 needs to be open - see https://github.com/obspy/obspy/blob/master/obspy/clients/arclink/tests/test_decrypt.py#L35 |
I see. I'll test at home. |
FYI: I just pushed a commit to this branch that allows to run the crypto tests with either supported crypto library. |
careful: |
Hmm...there must be a way to figure out if the decrypt was successful, right? How does |
while using pycrypto it just fails later - either because it can't unpack using bzip2 or it can't read as its not a valid mseed AFAIK m2crypto checks in the final call https://github.com/obspy/obspy/blob/master/obspy/clients/arclink/decrypt.py#L66 - so we could look into that |
+TESTS:clients.arclink Travis should run ArcLink test suites for future commits/pushes to this branch now (see here). Please ping me if it doesn't work.. |
the later commit from @krischer does imho not work - see comment above - so either we stick with my orginal implementation, leave it as it is or find something better and triggering a new test run did not work, or? |
efd6074
to
8f0e429
Compare
I rebased and force-pushed right now, that will trigger CI.. |
Current Travis commit status includes Arclink tests: https://travis-ci.org/obspy/obspy/builds/176344138 Not sure if tests cover decryption, though? |
I'll bump this to 1.2.0. Feel free to add to 1.1.0 if it gets ready in the next couple of weeks. |
imho ready to merge |
lesser memory footprint (~50%) while having the same execution speed as before
a23be3d
to
9cb59bd
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.
Yep, CI looks good (we really should figure out why we have these erratic arclink "UNSET" problems.. or well.. once the VCR stuff is ready we're rid of it I guess)
Rebased on current master, mainly to get rid of some merge commits within this branch..
failing test is not related - merging |
@barsch this PR should also have modified arclink extra/optional dependencies.. anybody know how to modify a set of OR dependencies in setup.py? I couldn't find it.. https://github.com/obspy/obspy/blob/master/setup.py#L116 Should be semantically be something like..
|
I don't think there is such option - I would take it out completely and just document it btw: pycryptodome does also work - its an drop-in replacement for pycrypto |
lesser memory footprint while having the same execution speed as before