-
Notifications
You must be signed in to change notification settings - Fork 80
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
[MRG] Fix SBT duplicates bug #1568
Conversation
Codecov Report
@@ Coverage Diff @@
## latest #1568 +/- ##
==========================================
+ Coverage 80.96% 81.14% +0.17%
==========================================
Files 102 102
Lines 10299 10322 +23
Branches 1165 1169 +4
==========================================
+ Hits 8339 8376 +37
+ Misses 1751 1741 -10
+ Partials 209 205 -4
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
The tests are failing because of the need to support |
OK, @luizirber, I think this is ready for a look. |
@luizirber there's one failing test under python 3.9 on linux - ipfsstorage. I'm unclear on whether it's something I broke, tho. |
It's something that was broken: (actually implementing it is interesting because it leads to using an IPFS address as we use .zip files nowadays, hmm...) |
Co-authored-by: Luiz Irber <luizirber@users.noreply.github.com>
OK. Any thoughts on what to do about it, or why it's acting up now? I can dig into it later, just wondering if you know off the top of your head. |
yay w00t! fixed! |
(ready for review and merge @luizirber) |
Co-authored-by: Luiz Irber <luizirber@users.noreply.github.com>
Trying to think a bit conceptually about what is happening when saving/loading:
Part of the confusion in using this API is that we mostly depend on the extension of the |
Right - and I have a much better understanding of the code's behavior now 😄 , which is nice! |
For Zip SBTs, signatures with identical md5sums were being saved correctly as different signatures, but the updated signature filenames resulting from duplicate md5sums were not being communicated back to the tree properly. This meant that the names of a number of signatures (but not their content) were being lost, triggering the behavior seen over in #1511 (comment) as well as a number of apparent duplicate signatures per #1171.
Fixes #1171.
TODO: