-
Notifications
You must be signed in to change notification settings - Fork 111
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
Reorder commands in ORA get via SSH #7215
Conversation
This delays the remote-end `cat` command until just before its output is needed, for two reasons: 1. The command output is not needed if `get` decides to use scp 2. When getting multiple files encrypted by git-annex (which would use scp, due to size not being part of the annex key), the `cat` output would remain in standard output and would be read when checking whether the *next* file exists, crashing upon `decode()` datalad#7214
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.
Analysis and fix correct. Thank you, @mslw!
Left a proposal for changelog phrasing.
changelog.d/pr-7215.md
Outdated
@@ -0,0 +1,3 @@ | |||
### 🐛 Bug Fixes | |||
|
|||
- Reorder commands in ORA get via SSH. Fixes [#7214](https://github.com/datalad/datalad/issues/7214) via [PR #7215](https://github.com/datalad/datalad/pull/7215) (by [@mslw](https://github.com/mslw)) |
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.
- Reorder commands in ORA get via SSH. Fixes [#7214](https://github.com/datalad/datalad/issues/7214) via [PR #7215](https://github.com/datalad/datalad/pull/7215) (by [@mslw](https://github.com/mslw)) | |
- Fix a bug when retrieving several files from a RIA store via SSH, when the annex key does not contain size information. Fixes [#7214](https://github.com/datalad/datalad/issues/7214) via [PR #7215](https://github.com/datalad/datalad/pull/7215) (by [@mslw](https://github.com/mslw)) |
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.
You were too fast, I was editing the changelog offline :/ I like the brevity of yours better, I will make an update.
Reworded the changelog for brevity, and pushed an amended commit. Now I'm done :) |
Codecov ReportBase: 88.91% // Head: 90.93% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## maint #7215 +/- ##
==========================================
+ Coverage 88.91% 90.93% +2.02%
==========================================
Files 355 355
Lines 46694 46694
Branches 6355 6355
==========================================
+ Hits 41516 42462 +946
+ Misses 5163 4217 -946
Partials 15 15
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
Thank you, @mslw!
PR released in |
This delays the remote-end
cat
command until just before its output is needed, for two reasons:get
decides to use scpcat
output would remain in standard output and would be read when checking whether the next file exists (i.e. when trying to parse a completely different output), crashing upondecode()
.Fixes #7214