Skip to content

core, eth, miner: add metrics to track block creation and write pipeline latency#2097

Merged
pratikspatil024 merged 5 commits intodevelopfrom
psp-metrics-for-stress-test
Mar 2, 2026
Merged

core, eth, miner: add metrics to track block creation and write pipeline latency#2097
pratikspatil024 merged 5 commits intodevelopfrom
psp-metrics-for-stress-test

Conversation

@pratikspatil024
Copy link
Copy Markdown
Member

Description

Replica of #2090 into develop

Changes

  • Bugfix (non-breaking change that solves an issue)
  • Hotfix (change that solves an urgent issue, and requires immediate attention)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (change that is not backwards-compatible and/or changes current functionality)
  • Changes only for a subset of nodes

Breaking changes

Please complete this section if any breaking changes have been made, otherwise delete it

Nodes audience

In case this PR includes changes that must be applied only to a subset of nodes, please specify how you handled it (e.g. by adding a flag with a default value...)

Checklist

  • I have added at least 2 reviewer or the whole pos-v1 team
  • I have added sufficient documentation in code
  • I will be resolving comments - if any - by pushing each fix in a separate commit and linking the commit hash in the comment reply
  • Created a task in Jira and informed the team for implementation in Erigon client (if applicable)
  • Includes RPC methods changes, and the Notion documentation has been updated

Cross repository changes

  • This PR requires changes to heimdall
    • In case link the PR here:
  • This PR requires changes to matic-cli
    • In case link the PR here:

Testing

  • I have added unit tests
  • I have added tests to CI
  • I have tested this code manually on local environment
  • I have tested this code manually on remote devnet using express-cli
  • I have tested this code manually on amoy
  • I have created new e2e tests into express-cli

Manual tests

Please complete this section with the steps you performed if you ran manual tests for this functionality, otherwise delete it

Additional comments

Please post additional comments in this section if you have them, otherwise delete it

@pratikspatil024 pratikspatil024 requested a review from a team March 2, 2026 10:30
@pratikspatil024 pratikspatil024 merged commit 98777c0 into develop Mar 2, 2026
12 of 13 checks passed
@pratikspatil024 pratikspatil024 deleted the psp-metrics-for-stress-test branch March 2, 2026 10:43
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Mar 2, 2026

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 2, 2026

Codecov Report

❌ Patch coverage is 66.66667% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 50.91%. Comparing base (46e2631) to head (406bb7e).
⚠️ Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
core/blockchain.go 56.66% 9 Missing and 4 partials ⚠️
eth/handler.go 75.00% 2 Missing ⚠️

❌ Your patch status has failed because the patch coverage (66.66%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2097      +/-   ##
===========================================
+ Coverage    50.87%   50.91%   +0.04%     
===========================================
  Files          878      878              
  Lines       152469   152510      +41     
===========================================
+ Hits         77564    77647      +83     
+ Misses       69809    69771      -38     
+ Partials      5096     5092       -4     
Files with missing lines Coverage Δ
core/state/statedb.go 66.90% <100.00%> (+1.23%) ⬆️
miner/worker.go 69.02% <100.00%> (+0.52%) ⬆️
eth/handler.go 64.39% <75.00%> (+0.31%) ⬆️
core/blockchain.go 62.19% <56.66%> (-0.07%) ⬇️

... and 13 files with indirect coverage changes

Files with missing lines Coverage Δ
core/state/statedb.go 66.90% <100.00%> (+1.23%) ⬆️
miner/worker.go 69.02% <100.00%> (+0.52%) ⬆️
eth/handler.go 64.39% <75.00%> (+0.31%) ⬆️
core/blockchain.go 62.19% <56.66%> (-0.07%) ⬇️

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

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.

3 participants