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] Index collections from execution data #5163

Merged
merged 11 commits into from
Dec 22, 2023

Conversation

peterargue
Copy link
Contributor

Closes: #4829

@codecov-commenter
Copy link

codecov-commenter commented Dec 19, 2023

Codecov Report

Attention: 36 lines in your changes are missing coverage. Please review.

Comparison is base (d0b0ef2) 56.44% compared to head (953ac9e) 56.52%.
Report is 91 commits behind head on master.

Files Patch % Lines
engine/access/ingestion/engine.go 64.64% 27 Missing and 8 partials ⚠️
module/metrics/execution_state_indexer.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5163      +/-   ##
==========================================
+ Coverage   56.44%   56.52%   +0.08%     
==========================================
  Files         981      979       -2     
  Lines       93112    93132      +20     
==========================================
+ Hits        52557    52644      +87     
+ Misses      36666    36592      -74     
- Partials     3889     3896       +7     
Flag Coverage Δ
unittests 56.52% <72.30%> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@peterargue peterargue marked this pull request as ready for review December 20, 2023 20:58
@peterargue peterargue self-assigned this Dec 22, 2023

// if more contiguous blocks are now complete, update db
if newLastFullHeight > lastFullHeight {
err = e.blocks.UpdateLastFullBlockHeight(newLastFullHeight)
Copy link
Member

Choose a reason for hiding this comment

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

nit: I think this index could be saved to a separate database( such as the Progress module), instead of the generic badger blocks. Other node type might not have the concept of "FullBlock"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good call out. I opened an issue to track this: #5185

@@ -716,14 +716,14 @@ func (builder *FlowAccessNodeBuilder) BuildExecutionSyncComponents() *FlowAccess

checkpointHeight := builder.SealedRootBlock.Header.Height

buutstrap, err := pStorage.NewRegisterBootstrap(pdb, checkpointFile, checkpointHeight, builder.Logger)
bootstrap, err := pStorage.NewRegisterBootstrap(pdb, checkpointFile, checkpointHeight, builder.Logger)
Copy link
Contributor

Choose a reason for hiding this comment

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

that was an itch for me 😄

@peterargue peterargue enabled auto-merge December 22, 2023 18:45
@peterargue peterargue added this pull request to the merge queue Dec 22, 2023
Merged via the queue into master with commit db9383c Dec 22, 2023
@peterargue peterargue deleted the petera/4829-index-collection-execdata branch December 22, 2023 19:20
peterargue added a commit that referenced this pull request Jan 4, 2024
…cdata

[Access] Index collections from execution data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Access] Index collections from execution data
4 participants