Skip to content
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

[Access] Add support for pebbleDB to execution data tracker/pruner #6277

Open
wants to merge 51 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
0b6499a
Refactored structure of execution data tracker
UlyanaAndrukhiv Jul 25, 2024
5893168
Refactored badger version of execution data tracker
UlyanaAndrukhiv Jul 26, 2024
6f24602
Added pebble operations for execution data tracker, added basic pebbl…
UlyanaAndrukhiv Jul 29, 2024
cb61531
Added functional test for pebble execution data tracker impl, updated…
UlyanaAndrukhiv Jul 29, 2024
e2630cd
Updated AN and ON builders
UlyanaAndrukhiv Jul 29, 2024
fd14160
Added comments
UlyanaAndrukhiv Jul 29, 2024
d42f1e6
Merge branch 'master' into UlyanaAndrukhiv/6017-pebble-for-tracker-up…
UlyanaAndrukhiv Jul 30, 2024
4d675d7
Moved interface from tracker to storage
UlyanaAndrukhiv Jul 30, 2024
97897ad
Merge branch 'master' into UlyanaAndrukhiv/6017-pebble-for-tracker-up…
UlyanaAndrukhiv Jul 31, 2024
0f3dd84
Updated pebble execution data tracker
UlyanaAndrukhiv Jul 31, 2024
437d0a7
Added comment for ffBytes, fixed check
UlyanaAndrukhiv Jul 31, 2024
5f7a25e
Merge branch 'UlyanaAndrukhiv/6017-pebble-as-execution-datastore-db' …
UlyanaAndrukhiv Jul 31, 2024
d9218c9
Added integration test for pebble version of execution data pruning, …
UlyanaAndrukhiv Jul 31, 2024
83fc78a
Merge branch 'master' into UlyanaAndrukhiv/6017-pebble-for-tracker-up…
UlyanaAndrukhiv Jul 31, 2024
63573d6
Updated integration test
UlyanaAndrukhiv Jul 31, 2024
6f266d8
Merge branch 'UlyanaAndrukhiv/6017-pebble-for-tracker-updates' of git…
UlyanaAndrukhiv Jul 31, 2024
383e8eb
Merge branch 'master' into UlyanaAndrukhiv/6017-pebble-for-tracker-up…
UlyanaAndrukhiv Jul 31, 2024
edadc78
Updated naming
UlyanaAndrukhiv Aug 1, 2024
04d6e20
Merge branch 'UlyanaAndrukhiv/6017-pebble-for-tracker-updates' of git…
UlyanaAndrukhiv Aug 1, 2024
68a0223
Generated mocks
UlyanaAndrukhiv Aug 1, 2024
ff6b215
Merge branch 'master' into UlyanaAndrukhiv/6017-pebble-for-tracker-up…
UlyanaAndrukhiv Aug 1, 2024
a77db84
Updated naming for operations on storages
UlyanaAndrukhiv Aug 1, 2024
9a2e3be
Added documentation
UlyanaAndrukhiv Aug 1, 2024
4132ead
Updated order of arguments in NewExecutionDataTracker
UlyanaAndrukhiv Aug 1, 2024
d6e7a25
Merge branch 'master' into UlyanaAndrukhiv/6017-pebble-for-tracker-up…
UlyanaAndrukhiv Aug 6, 2024
10bcd53
Renamed to NoopExecutionDataTracker
UlyanaAndrukhiv Aug 8, 2024
72fcbb5
Renamed to NewMockExecutionDataTracker
UlyanaAndrukhiv Aug 8, 2024
c51c837
Merge branch 'master' into UlyanaAndrukhiv/6017-pebble-for-tracker-up…
UlyanaAndrukhiv Aug 8, 2024
2b609d4
Added constant value for discardRatio, changed it according to comment
UlyanaAndrukhiv Aug 8, 2024
9788c58
Updated execution data db prefixes to use fixed values, updated comment
UlyanaAndrukhiv Aug 8, 2024
481242b
Updated heights initialization for badger db
UlyanaAndrukhiv Aug 8, 2024
ca68741
Removed unnecessary option for pebble Set operation
UlyanaAndrukhiv Aug 8, 2024
3022980
Updated badger operations, removed no needed check in common retrieve…
UlyanaAndrukhiv Aug 8, 2024
abd546b
Updated pebble operations, removed no needed check in common retrieve…
UlyanaAndrukhiv Aug 8, 2024
d6f8b9a
Updated badger version of batchDelete
UlyanaAndrukhiv Aug 9, 2024
34e04ee
Updated pebble version of execution data tracker by using batch accor…
UlyanaAndrukhiv Aug 13, 2024
3b8509d
Fixed godoc, updated logger values
UlyanaAndrukhiv Aug 13, 2024
6cb0105
Merge branch 'master' into UlyanaAndrukhiv/6017-pebble-for-tracker-up…
UlyanaAndrukhiv Aug 13, 2024
b8181ab
Updated trackBlob according to comment
UlyanaAndrukhiv Aug 13, 2024
640de21
Separated read operation from write batch operations
UlyanaAndrukhiv Aug 13, 2024
65e1614
Moved common logic for maximum number of items in a single batch for …
UlyanaAndrukhiv Aug 13, 2024
feb984d
Updated naming
UlyanaAndrukhiv Aug 13, 2024
b12dc9b
Moved common logic for tracker initialization
UlyanaAndrukhiv Aug 13, 2024
95ac8ae
Added functional tests for common pebble operations
UlyanaAndrukhiv Aug 14, 2024
cb2924a
Merge branch 'master' into UlyanaAndrukhiv/6017-pebble-for-tracker-up…
UlyanaAndrukhiv Aug 14, 2024
59837c9
Merge branch 'master' into UlyanaAndrukhiv/6017-pebble-for-tracker-up…
UlyanaAndrukhiv Aug 15, 2024
43ce701
Merge branch 'master' into UlyanaAndrukhiv/6017-pebble-for-tracker-up…
UlyanaAndrukhiv Aug 15, 2024
0e39976
Merge branch 'master' into UlyanaAndrukhiv/6017-pebble-for-tracker-up…
UlyanaAndrukhiv Aug 26, 2024
93aa09f
Merge branch 'master' into UlyanaAndrukhiv/6017-pebble-for-tracker-up…
UlyanaAndrukhiv Aug 27, 2024
fba4e0b
Merged with master
UlyanaAndrukhiv Sep 9, 2024
3362d0b
Merge branch 'master' into UlyanaAndrukhiv/6017-pebble-for-tracker-up…
UlyanaAndrukhiv Sep 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ generate-mocks: install-mock-generators
mockery --name 'ExecForkActor' --structname 'ExecForkActorMock' --dir=module/mempool/consensus/mock/ --case=underscore --output="./module/mempool/consensus/mock/" --outpkg="mock"
mockery --name '.*' --dir=engine/verification/fetcher/ --case=underscore --output="./engine/verification/fetcher/mock" --outpkg="mockfetcher"
mockery --name '.*' --dir=./cmd/util/ledger/reporters --case=underscore --output="./cmd/util/ledger/reporters/mock" --outpkg="mock"
mockery --name 'Storage' --dir=module/executiondatasync/tracker --case=underscore --output="module/executiondatasync/tracker/mock" --outpkg="mocktracker"
mockery --name 'ScriptExecutor' --dir=module/execution --case=underscore --output="module/execution/mock" --outpkg="mock"
mockery --name 'StorageSnapshot' --dir=fvm/storage/snapshot --case=underscore --output="fvm/storage/snapshot/mock" --outpkg="mock"

Expand Down
33 changes: 22 additions & 11 deletions cmd/access/node_builder/access_node_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ import (
execdatacache "github.com/onflow/flow-go/module/executiondatasync/execution_data/cache"
"github.com/onflow/flow-go/module/executiondatasync/pruner"
edstorage "github.com/onflow/flow-go/module/executiondatasync/storage"
"github.com/onflow/flow-go/module/executiondatasync/tracker"
finalizer "github.com/onflow/flow-go/module/finalizer/consensus"
"github.com/onflow/flow-go/module/grpcserver"
"github.com/onflow/flow-go/module/id"
Expand Down Expand Up @@ -323,7 +322,7 @@ type FlowAccessNodeBuilder struct {
collectionExecutedMetric module.CollectionExecutedMetric
ExecutionDataPruner *pruner.Pruner
ExecutionDatastoreManager edstorage.DatastoreManager
ExecutionDataTracker tracker.Storage
ExecutionDataTracker storage.ExecutionDataTracker
VersionControl *version.VersionControl

// The sync engine participants provider is the libp2p peer store for the access node
Expand Down Expand Up @@ -671,15 +670,27 @@ func (builder *FlowAccessNodeBuilder) BuildExecutionSyncComponents() *FlowAccess
}

trackerDir := filepath.Join(builder.executionDataDir, "tracker")
builder.ExecutionDataTracker, err = tracker.OpenStorage(
trackerDir,
sealed.Height,
node.Logger,
tracker.WithPruneCallback(func(c cid.Cid) error {
// TODO: use a proper context here
return builder.ExecutionDataBlobstore.DeleteBlob(context.TODO(), c)
}),
)
if executionDataDBMode == execution_data.ExecutionDataDBModeBadger {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we implement a CheckExistingExecutionDataDBMode(executionDataDBMode, trackerDir) function or something similar to check if the folder has consistent data with the DB mode?

This could prevent from accidentally using existing badger db data as pebble, which might corrupt the database.

builder.ExecutionDataTracker, err = bstorage.NewExecutionDataTracker(
node.Logger,
trackerDir,
sealed.Height,
bstorage.WithPruneCallback(func(c cid.Cid) error {
// TODO: use a proper context here
return builder.ExecutionDataBlobstore.DeleteBlob(context.TODO(), c)
}),
)
} else {
builder.ExecutionDataTracker, err = pstorage.NewExecutionDataTracker(
node.Logger,
trackerDir,
sealed.Height,
pstorage.WithPruneCallback(func(c cid.Cid) error {
// TODO: use a proper context here
return builder.ExecutionDataBlobstore.DeleteBlob(context.TODO(), c)
}),
)
}
if err != nil {
return nil, fmt.Errorf("failed to create execution data tracker: %w", err)
}
Expand Down
37 changes: 18 additions & 19 deletions cmd/execution_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ import (
"github.com/onflow/flow-go/module/executiondatasync/execution_data"
exedataprovider "github.com/onflow/flow-go/module/executiondatasync/provider"
"github.com/onflow/flow-go/module/executiondatasync/pruner"
"github.com/onflow/flow-go/module/executiondatasync/tracker"
"github.com/onflow/flow-go/module/finalizedreader"
finalizer "github.com/onflow/flow-go/module/finalizer/consensus"
"github.com/onflow/flow-go/module/mempool/queue"
Expand All @@ -91,8 +90,8 @@ import (
"github.com/onflow/flow-go/state/protocol"
badgerState "github.com/onflow/flow-go/state/protocol/badger"
"github.com/onflow/flow-go/state/protocol/blocktimer"
storageerr "github.com/onflow/flow-go/storage"
storage "github.com/onflow/flow-go/storage/badger"
"github.com/onflow/flow-go/storage"
bstorage "github.com/onflow/flow-go/storage/badger"
"github.com/onflow/flow-go/storage/badger/procedure"
storagepebble "github.com/onflow/flow-go/storage/pebble"
sutil "github.com/onflow/flow-go/storage/util"
Expand Down Expand Up @@ -134,11 +133,11 @@ type ExecutionNode struct {
committee hotstuff.DynamicCommittee
ledgerStorage *ledger.Ledger
registerStore *storehouse.RegisterStore
events *storage.Events
serviceEvents *storage.ServiceEvents
txResults *storage.TransactionResults
results *storage.ExecutionResults
myReceipts *storage.MyExecutionReceipts
events *bstorage.Events
serviceEvents *bstorage.ServiceEvents
txResults *bstorage.TransactionResults
results *bstorage.ExecutionResults
myReceipts *bstorage.MyExecutionReceipts
providerEngine exeprovider.ProviderEngine
checkerEng *checker.Engine
syncCore *chainsync.Core
Expand All @@ -158,7 +157,7 @@ type ExecutionNode struct {
executionDataDatastore *badgerds.Datastore
executionDataPruner *pruner.Pruner
executionDataBlobstore blobs.Blobstore
executionDataTracker tracker.Storage
executionDataTracker storage.ExecutionDataTracker
blobService network.BlobService
blobserviceDependable *module.ProxiedReadyDoneAware
metricsProvider txmetrics.TransactionExecutionMetricsProvider
Expand Down Expand Up @@ -284,7 +283,7 @@ func (exeNode *ExecutionNode) LoadExecutionMetrics(node *NodeConfig) error {
err := node.DB.View(procedure.GetHighestExecutedBlock(&height, &blockID))
if err != nil {
// database has not been bootstrapped yet
if errors.Is(err, storageerr.ErrNotFound) {
if errors.Is(err, storage.ErrNotFound) {
return nil
}
return fmt.Errorf("could not get highest executed block: %w", err)
Expand All @@ -303,8 +302,8 @@ func (exeNode *ExecutionNode) LoadSyncCore(node *NodeConfig) error {
func (exeNode *ExecutionNode) LoadExecutionReceiptsStorage(
node *NodeConfig,
) error {
exeNode.results = storage.NewExecutionResults(node.Metrics.Cache, node.DB)
exeNode.myReceipts = storage.NewMyExecutionReceipts(node.Metrics.Cache, node.DB, node.Storage.Receipts.(*storage.ExecutionReceipts))
exeNode.results = bstorage.NewExecutionResults(node.Metrics.Cache, node.DB)
exeNode.myReceipts = bstorage.NewMyExecutionReceipts(node.Metrics.Cache, node.DB, node.Storage.Receipts.(*bstorage.ExecutionReceipts))
return nil
}

Expand Down Expand Up @@ -443,7 +442,7 @@ func (exeNode *ExecutionNode) LoadGCPBlockDataUploader(
exeNode.events,
exeNode.results,
exeNode.txResults,
storage.NewComputationResultUploadStatus(node.DB),
bstorage.NewComputationResultUploadStatus(node.DB),
execution_data.NewDownloader(exeNode.blobService),
exeNode.collector)
if retryableUploader == nil {
Expand Down Expand Up @@ -759,9 +758,9 @@ func (exeNode *ExecutionNode) LoadExecutionState(
chunkDataPackDB, node.Storage.Collections, exeNode.exeConf.chunkDataPackCacheSize)

// Needed for gRPC server, make sure to assign to main scoped vars
exeNode.events = storage.NewEvents(node.Metrics.Cache, node.DB)
exeNode.serviceEvents = storage.NewServiceEvents(node.Metrics.Cache, node.DB)
exeNode.txResults = storage.NewTransactionResults(node.Metrics.Cache, node.DB, exeNode.exeConf.transactionResultsCacheSize)
exeNode.events = bstorage.NewEvents(node.Metrics.Cache, node.DB)
exeNode.serviceEvents = bstorage.NewServiceEvents(node.Metrics.Cache, node.DB)
exeNode.txResults = bstorage.NewTransactionResults(node.Metrics.Cache, node.DB, exeNode.exeConf.transactionResultsCacheSize)

exeNode.executionState = state.NewExecutionState(
exeNode.ledgerStorage,
Expand Down Expand Up @@ -966,11 +965,11 @@ func (exeNode *ExecutionNode) LoadExecutionDataPruner(
}

trackerDir := filepath.Join(exeNode.exeConf.executionDataDir, "tracker")
exeNode.executionDataTracker, err = tracker.OpenStorage(
exeNode.executionDataTracker, err = bstorage.NewExecutionDataTracker(
node.Logger,
trackerDir,
sealed.Height,
node.Logger,
tracker.WithPruneCallback(func(c cid.Cid) error {
bstorage.WithPruneCallback(func(c cid.Cid) error {
// TODO: use a proper context here
return exeNode.executionDataBlobstore.DeleteBlob(context.TODO(), c)
}),
Expand Down
33 changes: 22 additions & 11 deletions cmd/observer/node_builder/observer_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ import (
execdatacache "github.com/onflow/flow-go/module/executiondatasync/execution_data/cache"
"github.com/onflow/flow-go/module/executiondatasync/pruner"
edstorage "github.com/onflow/flow-go/module/executiondatasync/storage"
"github.com/onflow/flow-go/module/executiondatasync/tracker"
finalizer "github.com/onflow/flow-go/module/finalizer/consensus"
"github.com/onflow/flow-go/module/grpcserver"
"github.com/onflow/flow-go/module/id"
Expand Down Expand Up @@ -287,7 +286,7 @@ type ObserverServiceBuilder struct {
ExecutionDataBlobstore blobs.Blobstore
ExecutionDataPruner *pruner.Pruner
ExecutionDatastoreManager edstorage.DatastoreManager
ExecutionDataTracker tracker.Storage
ExecutionDataTracker storage.ExecutionDataTracker

RegistersAsyncStore *execution.RegistersAsyncStore
Reporter *index.Reporter
Expand Down Expand Up @@ -1239,15 +1238,27 @@ func (builder *ObserverServiceBuilder) BuildExecutionSyncComponents() *ObserverS
}

trackerDir := filepath.Join(builder.executionDataDir, "tracker")
builder.ExecutionDataTracker, err = tracker.OpenStorage(
trackerDir,
sealed.Height,
node.Logger,
tracker.WithPruneCallback(func(c cid.Cid) error {
// TODO: use a proper context here
return builder.ExecutionDataBlobstore.DeleteBlob(context.TODO(), c)
}),
)
if executionDataDBMode == execution_data.ExecutionDataDBModeBadger {
builder.ExecutionDataTracker, err = bstorage.NewExecutionDataTracker(
node.Logger,
trackerDir,
sealed.Height,
bstorage.WithPruneCallback(func(c cid.Cid) error {
// TODO: use a proper context here
return builder.ExecutionDataBlobstore.DeleteBlob(context.TODO(), c)
}),
)
} else {
builder.ExecutionDataTracker, err = pstorage.NewExecutionDataTracker(
node.Logger,
trackerDir,
sealed.Height,
pstorage.WithPruneCallback(func(c cid.Cid) error {
// TODO: use a proper context here
return builder.ExecutionDataBlobstore.DeleteBlob(context.TODO(), c)
}),
)
}
if err != nil {
return nil, fmt.Errorf("failed to create execution data tracker: %w", err)
}
Expand Down
20 changes: 10 additions & 10 deletions engine/execution/computation/computer/computer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ import (
"github.com/onflow/flow-go/module/epochs"
"github.com/onflow/flow-go/module/executiondatasync/execution_data"
"github.com/onflow/flow-go/module/executiondatasync/provider"
mocktracker "github.com/onflow/flow-go/module/executiondatasync/tracker/mock"
"github.com/onflow/flow-go/module/mempool/entity"
"github.com/onflow/flow-go/module/metrics"
modulemock "github.com/onflow/flow-go/module/mock"
requesterunit "github.com/onflow/flow-go/module/state_synchronization/requester/unittest"
"github.com/onflow/flow-go/module/trace"
mocktracker "github.com/onflow/flow-go/storage/mocks"
"github.com/onflow/flow-go/utils/unittest"
)

Expand Down Expand Up @@ -179,7 +179,7 @@ func TestBlockExecutor_ExecuteBlock(t *testing.T) {
Times(1) // 1 block

bservice := requesterunit.MockBlobService(blockstore.NewBlockstore(dssync.MutexWrap(datastore.NewMapDatastore())))
trackerStorage := mocktracker.NewMockStorage()
trackerStorage := mocktracker.NewMockExecutionDataTracker()

prov := provider.NewProvider(
zerolog.Nop(),
Expand Down Expand Up @@ -317,7 +317,7 @@ func TestBlockExecutor_ExecuteBlock(t *testing.T) {
committer := new(computermock.ViewCommitter)

bservice := requesterunit.MockBlobService(blockstore.NewBlockstore(dssync.MutexWrap(datastore.NewMapDatastore())))
trackerStorage := mocktracker.NewMockStorage()
trackerStorage := mocktracker.NewMockExecutionDataTracker()

prov := provider.NewProvider(
zerolog.Nop(),
Expand Down Expand Up @@ -421,7 +421,7 @@ func TestBlockExecutor_ExecuteBlock(t *testing.T) {
comm := new(computermock.ViewCommitter)

bservice := requesterunit.MockBlobService(blockstore.NewBlockstore(dssync.MutexWrap(datastore.NewMapDatastore())))
trackerStorage := mocktracker.NewMockStorage()
trackerStorage := mocktracker.NewMockExecutionDataTracker()

prov := provider.NewProvider(
zerolog.Nop(),
Expand Down Expand Up @@ -477,7 +477,7 @@ func TestBlockExecutor_ExecuteBlock(t *testing.T) {
committer := new(computermock.ViewCommitter)

bservice := requesterunit.MockBlobService(blockstore.NewBlockstore(dssync.MutexWrap(datastore.NewMapDatastore())))
trackerStorage := mocktracker.NewMockStorage()
trackerStorage := mocktracker.NewMockExecutionDataTracker()

prov := provider.NewProvider(
zerolog.Nop(),
Expand Down Expand Up @@ -710,7 +710,7 @@ func TestBlockExecutor_ExecuteBlock(t *testing.T) {
vm := fvm.NewVirtualMachine()

bservice := requesterunit.MockBlobService(blockstore.NewBlockstore(dssync.MutexWrap(datastore.NewMapDatastore())))
trackerStorage := mocktracker.NewMockStorage()
trackerStorage := mocktracker.NewMockExecutionDataTracker()

prov := provider.NewProvider(
zerolog.Nop(),
Expand Down Expand Up @@ -821,7 +821,7 @@ func TestBlockExecutor_ExecuteBlock(t *testing.T) {
vm := fvm.NewVirtualMachine()

bservice := requesterunit.MockBlobService(blockstore.NewBlockstore(dssync.MutexWrap(datastore.NewMapDatastore())))
trackerStorage := mocktracker.NewMockStorage()
trackerStorage := mocktracker.NewMockExecutionDataTracker()

prov := provider.NewProvider(
zerolog.Nop(),
Expand Down Expand Up @@ -934,7 +934,7 @@ func TestBlockExecutor_ExecuteBlock(t *testing.T) {
vm := fvm.NewVirtualMachine()

bservice := requesterunit.MockBlobService(blockstore.NewBlockstore(dssync.MutexWrap(datastore.NewMapDatastore())))
trackerStorage := mocktracker.NewMockStorage()
trackerStorage := mocktracker.NewMockExecutionDataTracker()

prov := provider.NewProvider(
zerolog.Nop(),
Expand Down Expand Up @@ -980,7 +980,7 @@ func TestBlockExecutor_ExecuteBlock(t *testing.T) {
bservice := requesterunit.MockBlobService(
blockstore.NewBlockstore(
dssync.MutexWrap(datastore.NewMapDatastore())))
trackerStorage := mocktracker.NewMockStorage()
trackerStorage := mocktracker.NewMockExecutionDataTracker()

prov := provider.NewProvider(
zerolog.Nop(),
Expand Down Expand Up @@ -1309,7 +1309,7 @@ func Test_ExecutingSystemCollection(t *testing.T) {
)

bservice := requesterunit.MockBlobService(blockstore.NewBlockstore(dssync.MutexWrap(datastore.NewMapDatastore())))
trackerStorage := mocktracker.NewMockStorage()
trackerStorage := mocktracker.NewMockExecutionDataTracker()

prov := provider.NewProvider(
zerolog.Nop(),
Expand Down
4 changes: 2 additions & 2 deletions engine/execution/computation/execution_verification_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ import (
"github.com/onflow/flow-go/module/chunks"
"github.com/onflow/flow-go/module/executiondatasync/execution_data"
exedataprovider "github.com/onflow/flow-go/module/executiondatasync/provider"
mocktracker "github.com/onflow/flow-go/module/executiondatasync/tracker/mock"
"github.com/onflow/flow-go/module/metrics"
requesterunit "github.com/onflow/flow-go/module/state_synchronization/requester/unittest"
"github.com/onflow/flow-go/module/trace"
mocktracker "github.com/onflow/flow-go/storage/mocks"
"github.com/onflow/flow-go/utils/unittest"
)

Expand Down Expand Up @@ -753,7 +753,7 @@ func executeBlockAndVerifyWithParameters(t *testing.T,
ledgerCommiter := committer.NewLedgerViewCommitter(ledger, tracer)

bservice := requesterunit.MockBlobService(blockstore.NewBlockstore(dssync.MutexWrap(datastore.NewMapDatastore())))
trackerStorage := mocktracker.NewMockStorage()
trackerStorage := mocktracker.NewMockExecutionDataTracker()

prov := exedataprovider.NewProvider(
zerolog.Nop(),
Expand Down
6 changes: 3 additions & 3 deletions engine/execution/computation/manager_benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

blockstore "github.com/ipfs/boxo/blockstore"
"github.com/ipfs/boxo/blockstore"
"github.com/ipfs/go-datastore"
dssync "github.com/ipfs/go-datastore/sync"
"github.com/onflow/cadence/runtime"
Expand All @@ -25,12 +25,12 @@ import (
"github.com/onflow/flow-go/model/flow"
"github.com/onflow/flow-go/module/executiondatasync/execution_data"
exedataprovider "github.com/onflow/flow-go/module/executiondatasync/provider"
mocktracker "github.com/onflow/flow-go/module/executiondatasync/tracker/mock"
"github.com/onflow/flow-go/module/mempool/entity"
"github.com/onflow/flow-go/module/metrics"
module "github.com/onflow/flow-go/module/mock"
requesterunit "github.com/onflow/flow-go/module/state_synchronization/requester/unittest"
"github.com/onflow/flow-go/module/trace"
mocktracker "github.com/onflow/flow-go/storage/mocks"
"github.com/onflow/flow-go/utils/unittest"
)

Expand Down Expand Up @@ -180,7 +180,7 @@ func benchmarkComputeBlock(
Return(nil, nil)

bservice := requesterunit.MockBlobService(blockstore.NewBlockstore(dssync.MutexWrap(datastore.NewMapDatastore())))
trackerStorage := mocktracker.NewMockStorage()
trackerStorage := mocktracker.NewMockExecutionDataTracker()

prov := exedataprovider.NewProvider(
zerolog.Nop(),
Expand Down
Loading
Loading