Skip to content
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

Use binary mode for local copy list in upload_calculation #2748

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Apr 12, 2019

Fixes #2725

The file content of the files in the node repository is not necessarily
encoded but could be binary, so the best thing is to not guess the
encoding but transfer the raw bytes.

@sphuber sphuber force-pushed the fix_2725_use_binary_handles_upload_calculation branch from baa3b88 to 3fb79d6 Compare May 14, 2019 11:55
@sphuber sphuber changed the title [WIP] Use binary mode for local copy list in upload_calculation Use binary mode for local copy list in upload_calculation May 14, 2019
@sphuber sphuber requested a review from giovannipizzi May 14, 2019 11:57
@sphuber
Copy link
Contributor Author

sphuber commented May 14, 2019

@giovannipizzi although I think we should sit down sometime to really think how we should handle file operations in the various places that we do, I think we should merge this for now since we are planning on releasing v1.0.0b3. This solves a serious bug, so I think it is a good net improvement for now

@sphuber sphuber force-pushed the fix_2725_use_binary_handles_upload_calculation branch from 3fb79d6 to fc9f28d Compare May 14, 2019 13:04
@coveralls
Copy link

coveralls commented May 14, 2019

Coverage Status

Coverage decreased (-0.04%) to 72.669% when pulling 17403eb on sphuber:fix_2725_use_binary_handles_upload_calculation into 69fa013 on aiidateam:develop.

The file content of the files in the node repository is not necessarily
encoded but could be binary, so the best thing is to not guess the
encoding but transfer the raw bytes.
@sphuber sphuber force-pushed the fix_2725_use_binary_handles_upload_calculation branch from fc9f28d to 17403eb Compare May 14, 2019 15:40
@sphuber sphuber merged commit 0353e11 into aiidateam:develop May 15, 2019
@sphuber sphuber deleted the fix_2725_use_binary_handles_upload_calculation branch May 15, 2019 05:20
unkcpz pushed a commit to unkcpz/aiida-core that referenced this pull request May 20, 2019
…m#2748)

The file content of the files in the node repository is not necessarily
encoded but could be binary, so the best thing is to not guess the
encoding but transfer the raw bytes.
unkcpz pushed a commit to unkcpz/aiida-core that referenced this pull request May 20, 2019
…m#2748)

The file content of the files in the node repository is not necessarily
encoded but could be binary, so the best thing is to not guess the
encoding but transfer the raw bytes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Transport task fails for an .hdf file
3 participants