Skip to content

Conversation

@codchen
Copy link
Collaborator

@codchen codchen commented Oct 31, 2025

Describe your changes and provide context

Previously, BeginBlock follows a very involved call path:

SeiApp->BaseApp->SeiApp->ModuleManager->Modules->keepers

This PR simplifies BeginBlock to be SeiApp->keepers

Testing performed to validate your change

no functional change

@github-actions
Copy link

github-actions bot commented Oct 31, 2025

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

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedNov 3, 2025, 1:03 PM

@codecov
Copy link

codecov bot commented Oct 31, 2025

Codecov Report

❌ Patch coverage is 30.76923% with 90 lines in your changes missing coverage. Please review.
✅ Project coverage is 43.17%. Comparing base (f5f08c5) to head (6bc167c).

Files with missing lines Patch % Lines
x/evm/keeper/abci.go 0.00% 26 Missing ⚠️
x/epoch/keeper/abci.go 0.00% 21 Missing ⚠️
app/legacyabci/begin_block.go 0.00% 10 Missing ⚠️
app/abci.go 50.00% 4 Missing and 3 partials ⚠️
sei-cosmos/baseapp/baseapp.go 12.50% 7 Missing ⚠️
sei-wasmd/x/wasm/ibctesting/chain.go 0.00% 6 Missing ⚠️
sei-cosmos/x/distribution/abci.go 0.00% 4 Missing ⚠️
sei-cosmos/x/evidence/abci.go 0.00% 3 Missing ⚠️
app/app.go 85.71% 2 Missing ⚠️
sei-cosmos/baseapp/abci.go 66.66% 2 Missing ⚠️
... and 2 more

❌ Your patch check has failed because the patch coverage (30.76%) is below the target coverage (70.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2522      +/-   ##
==========================================
- Coverage   43.22%   43.17%   -0.05%     
==========================================
  Files        1583     1586       +3     
  Lines      138846   138790      -56     
==========================================
- Hits        60011    59925      -86     
- Misses      73389    73425      +36     
+ Partials     5446     5440       -6     
Flag Coverage Δ
sei-chain 31.23% <30.61%> (-0.08%) ⬇️
sei-cosmos 52.35% <36.00%> (-0.04%) ⬇️
sei-db 47.58% <ø> (ø)
sei-tendermint 48.03% <ø> (-0.05%) ⬇️
sei-wasmd 46.27% <5.88%> (-0.08%) ⬇️
sei-wasmvm 40.37% <ø> (ø)

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

Files with missing lines Coverage Δ
evmrpc/send.go 45.65% <100.00%> (ø)
evmrpc/server.go 91.09% <100.00%> (ø)
evmrpc/simulate.go 70.05% <100.00%> (+0.07%) ⬆️
evmrpc/tracers.go 44.32% <100.00%> (ø)
sei-cosmos/baseapp/options.go 45.29% <ø> (-0.69%) ⬇️
sei-cosmos/types/module/module.go 54.76% <ø> (-2.33%) ⬇️
sei-cosmos/x/accesscontrol/module.go 0.00% <ø> (ø)
sei-cosmos/x/authz/module/module.go 0.00% <ø> (ø)
sei-cosmos/x/capability/module.go 48.00% <ø> (-2.95%) ⬇️
sei-cosmos/x/distribution/module.go 55.38% <ø> (+1.65%) ⬆️
... and 24 more

... and 16 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.

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@codchen codchen force-pushed the tony/streamline-abci branch 2 times, most recently from b18902f to 5e3e8bf Compare November 3, 2025 04:14
@codchen codchen force-pushed the tony/streamline-abci branch from 5e3e8bf to 6bc167c Compare November 3, 2025 13:03
Copy link
Collaborator

@udpatil udpatil left a comment

Choose a reason for hiding this comment

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

LGTM, just one question regarding capability BeginBlocker

func (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock) {
defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), telemetry.MetricKeyBeginBlocker)

am.keeper.InitMemStore(ctx)
Copy link
Collaborator

Choose a reason for hiding this comment

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

why was this not previously calling capability's BeginBlocker function which also just calls the InitMemStore?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

i'm not quite sure - could just be a refactor oversight from cosmos-sdk

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.

3 participants