Skip to content

integrate hashlogger#3647

Draft
cody-littley wants to merge 3 commits into
mainfrom
cjl/hashlog-integration
Draft

integrate hashlogger#3647
cody-littley wants to merge 3 commits into
mainfrom
cjl/hashlog-integration

Conversation

@cody-littley

Copy link
Copy Markdown
Contributor

Describe your changes and provide context

Wire in the hashlogger to report hashes for lots of different things

@github-actions

github-actions Bot commented Jun 25, 2026

Copy link
Copy Markdown

The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedJun 26, 2026, 6:39 PM

@codecov

codecov Bot commented Jun 25, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 63.07692% with 48 lines in your changes missing coverage. Please review.
✅ Project coverage is 58.59%. Comparing base (3d06be8) to head (89e9638).
⚠️ Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
sei-db/state_db/sc/composite/hashlog.go 0.00% 19 Missing ⚠️
sei-db/state_db/sc/hashlog/hash_logger_impl.go 77.61% 8 Missing and 7 partials ⚠️
sei-db/state_db/sc/memiavl/hashlog.go 72.72% 3 Missing and 3 partials ⚠️
sei-db/state_db/sc/flatkv/hashlog.go 77.77% 2 Missing and 2 partials ⚠️
sei-db/state_db/sc/hashlog/noop_hash_logger.go 0.00% 4 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3647      +/-   ##
==========================================
- Coverage   58.95%   58.59%   -0.36%     
==========================================
  Files        2261     2223      -38     
  Lines      186891   184007    -2884     
==========================================
- Hits       110174   107824    -2350     
+ Misses      66795    66446     -349     
+ Partials     9922     9737     -185     
Flag Coverage Δ
sei-db 70.41% <ø> (ø)
sei-db-state-db ?
sei-db-state-db-pr 75.01% <63.07%> (?)

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

Files with missing lines Coverage Δ
app/seidb.go 74.32% <ø> (ø)
sei-cosmos/baseapp/abci.go 64.24% <ø> (ø)
sei-cosmos/baseapp/baseapp.go 75.58% <ø> (ø)
sei-cosmos/storev2/rootmulti/store.go 67.67% <ø> (-0.36%) ⬇️
sei-db/config/sc_config.go 87.50% <ø> (ø)
sei-db/state_db/sc/hashlog/hash_logger_config.go 94.11% <ø> (-0.33%) ⬇️
sei-db/state_db/sc/flatkv/hashlog.go 77.77% <77.77%> (ø)
sei-db/state_db/sc/hashlog/noop_hash_logger.go 63.63% <0.00%> (-36.37%) ⬇️
sei-db/state_db/sc/memiavl/hashlog.go 72.72% <72.72%> (ø)
sei-db/state_db/sc/hashlog/hash_logger_impl.go 78.51% <77.61%> (+0.23%) ⬆️
... and 1 more

... and 43 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

done := make(chan struct{})
select {
case h.controlChan <- controlMessage{kind: ctrlColumnChange, hashType: hashType, add: add, done: done}:
select {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

sendColumnChange returns nil when the context is cancelled or the sender context is done:
Consider returning a sentinel error or at least h.ctx.Err() / h.senderCtx.Err() so the caller knows the registration didn't actually land.

}

// containsString reports whether s is present in xs.
func containsString(xs []string, s string) bool {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: The containsString function can be replaced with slices.Contains

}
}
}
for _, category := range desired {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A set-based approach would be clearer?

desiredSet := make(map[string]struct{}, len(desired))
for _, c := range desired { desiredSet[c] = struct{}{} }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants