-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
add pinning support to the urlstore #5834
Conversation
fixes #5833 License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
err, actually, I don't understand why on line 110 we have HASH2 is added w/o pin=false and isn't |
In these tests, we:
That means catting both files should fail (because the underlying URLs are no longer valid). The actual test case is the |
ah yes that makes sense, the urlstore retrieve should indeed fail if the underlying URL is missing 😄 the one test I would add is checking that a urlstore file added w/o pin=false does survive a gc, since that was the case that triggered this path -- I don't think we cover that currently? maybe something like
doing so with a large file would additionally verify that internal nodes are not GC'd, which was a concern of why's |
(on a side note, I wonder if the output of |
Technically, it already tests that as
I believe the correct way to do that right now is |
address CR License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
great, the tests are explicit and descriptive now! 😄 |
fixes #5833