-
Notifications
You must be signed in to change notification settings - Fork 529
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 referencing for safe removal of unused Bitswap blocks #16073
Conversation
!ci-build-me |
2 similar comments
!ci-build-me |
!ci-build-me |
!ci-build-me |
3 similar comments
!ci-build-me |
!ci-build-me |
!ci-build-me |
@@ -14,7 +14,7 @@ libp2p_helper: ../../libp2p_ipc/libp2p_ipc.capnp.go | |||
test: ../../libp2p_ipc/libp2p_ipc.capnp.go | |||
cd src/libp2p_helper \ | |||
&& (ulimit -n 65536 || true) \ | |||
&& $(GO) test -short -timeout 40m | |||
&& $(GO) test -short -timeout 60m |
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.
wow, that is short 😁
is this timeout justified by having to run more tests?
could it have been accidentally leaked from development process?
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.
The 40 minute timeout wasn't enough for these changes with some runs. I found relatively low variance with a 60 second timeout. I wasn't sure what the problem was initially on remote until i got the test passing locally after waiting longer. We run The new downloader test as well as the util test. It seams justified to me, because the downloader was not required before.
ff8a39d
to
63f4c3c
Compare
609c254
to
b2796f7
Compare
7a6392d
to
7df326d
Compare
Motivation: block size that we';ll be using in production is too large for effective bug searching via property tests.
Commit doesn't compile. Commit that comes next in the branch is going to fix it. Separation is made for greater clarity during review. Integrates commit o1-labs/go-bs-lmdb@1dc365f which introduces a method to atomically delete blocks after checking a predicate (`DeleteBlocksIf`).
New behavior introduced by the commit: if a bitswap block references is used by some root not fully deleted from the storage, it won't be deleted.
7df326d
to
e979bdf
Compare
Update the test after reference tracking change.
Commentary from Sai: The 40 minute timeout wasn't enough for these changes with some runs. I found relatively low variance with a 60 minute timeout. I wasn't sure what the problem was initially on remote until i got the test passing locally after waiting longer. We run the new downloader test as well as the util test. It seems justified to me, because the downloader was not required before.
e979bdf
to
637a9dc
Compare
…phelperdefinitions
!ci-build-me |
1 similar comment
!ci-build-me |
No description provided.