-
Notifications
You must be signed in to change notification settings - Fork 71
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
piece doctor and sector state manager refactor #1463
Merged
Merged
Changes from 7 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
1f90ebd
fix timer.Reset and improve logs
nonsense 1b2264c
revert randomization
nonsense 8409e5b
piece doc: handle errors
nonsense a9a7b07
adjust piece check
nonsense 3918e94
refactor unsealsectormanager
nonsense dfbecb9
refactor piece doctor
nonsense 9a8e89c
add random ports
nonsense 7554280
ignore tests
nonsense cdf4192
add version to boostd-data
nonsense 155a103
fix ctx in Start
nonsense 356853c
fix: add reader mock to fix tests
dirkmc e5f68d5
fix: pass new piece directory to provider on test restart
dirkmc b92eed2
fix synchronisation
nonsense c9e4d2b
Merge branch 'nonsense/piece-doctor-logs' of ssh://github.com/filecoi…
nonsense f9bb53e
note that panics are not propagated in tests
nonsense 1161a14
carv1 panics piece directory
nonsense 4817efb
print panics
nonsense 39724ee
fix: use reader that supports Seek in piece reader mock
dirkmc 5a94a70
fix: reset mock car reader on each invocation
dirkmc 2a59356
fix: TestOfflineDealDataCleanup
dirkmc 0f720fe
add check for nil cancel func
nonsense 85a9241
bump min check period for LevelDB to 5 minutes
nonsense 22e7eaf
check if sector state mgr is initialised
nonsense ef31c83
debug line for unflagging
nonsense 4c24fbc
commenting out TestMultipleDealsConcurrent -- flaky test -- works loc…
nonsense b44c1b8
add SectorStateUpdates pubsub
nonsense f8b3cf4
add close for pubsub
nonsense eed2b5a
add mock sectorstatemgr
nonsense b18bcd5
add wrapper tests
nonsense 289ccb4
fixup
nonsense db908c3
cleanup
nonsense 36aa47b
cleanup
nonsense afc055e
better names
nonsense 174678e
t.Skip for test
nonsense 6e9ca99
remove TODO above println for panic
nonsense ecce469
add unit tests for refreshState
nonsense e572b06
rename tests
nonsense 6627cbd
more cases
nonsense 38d084c
more tests
nonsense 734ac01
update description
nonsense f91ae9f
better comment
nonsense 8f67c82
better names and comments
nonsense File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package clientutil | ||
|
||
import ( | ||
"context" | ||
"fmt" | ||
|
||
"github.com/filecoin-project/boostd-data/client" | ||
"github.com/filecoin-project/boostd-data/svc" | ||
) | ||
|
||
func NewTestStore(ctx context.Context) *client.Store { | ||
bdsvc, err := svc.NewLevelDB("") | ||
if err != nil { | ||
panic(err) | ||
} | ||
ln, err := bdsvc.Start(ctx, "localhost:0") | ||
if err != nil { | ||
panic(err) | ||
} | ||
|
||
cl := client.NewStore() | ||
err = cl.Dial(ctx, fmt.Sprintf("ws://%s", ln.String())) | ||
if err != nil { | ||
panic(err) | ||
} | ||
|
||
return cl | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This
store
is really theboostd-data
service and NOT the piece directory.