Skip to content

Add metrics for historical proof success/failure rate#2958

Merged
yzang2019 merged 6 commits intomainfrom
yzang/add-metrics-proof-rejected
Feb 23, 2026
Merged

Add metrics for historical proof success/failure rate#2958
yzang2019 merged 6 commits intomainfrom
yzang/add-metrics-proof-rejected

Conversation

@yzang2019
Copy link
Contributor

Describe your changes and provide context

Add metrics to indicate historical proof success/failure rate due to rate limiting.

Testing performed to validate your change

@github-actions
Copy link

github-actions bot commented Feb 23, 2026

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

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedFeb 23, 2026, 5:47 PM

@codecov
Copy link

codecov bot commented Feb 23, 2026

Codecov Report

❌ Patch coverage is 82.35294% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.29%. Comparing base (462deb2) to head (d68fb20).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
sei-cosmos/storev2/rootmulti/store.go 82.35% 2 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #2958       +/-   ##
===========================================
- Coverage   58.15%   56.29%    -1.87%     
===========================================
  Files        2106        6     -2100     
  Lines      173285     1009   -172276     
===========================================
- Hits       100777      568   -100209     
+ Misses      63561      378    -63183     
+ Partials     8947       63     -8884     
Flag Coverage Δ
sei-chain 46.19% <82.35%> (-11.94%) ⬇️
sei-db 68.49% <ø> (ø)

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

Files with missing lines Coverage Δ
sei-cosmos/storev2/rootmulti/store.go 46.19% <82.35%> (+1.19%) ⬆️

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

}

// Must have proof ops from underlying store query before appending commit proof.
if res.ProofOps == nil {
Copy link
Contributor

@Kbhat1 Kbhat1 Feb 23, 2026

Choose a reason for hiding this comment

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

Was removing this intentional? We check res.ProofOps.Ops right after this before checking res.ProofOps is not nil

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We didn't remove this, just combining it with the other if to remove duplicate code

Copy link
Contributor

Choose a reason for hiding this comment

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

But we check res.ProofOps.Ops right after this before checking res.ProofOps is not nil

Copy link
Collaborator

@masih masih left a comment

Choose a reason for hiding this comment

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

Couple of issues to fix first.
Thank you for adding this metric; super useful 🙌

@yzang2019 yzang2019 requested a review from masih February 23, 2026 16:48
@yzang2019 yzang2019 enabled auto-merge (squash) February 23, 2026 17:51
@yzang2019 yzang2019 merged commit 9e7161b into main Feb 23, 2026
35 checks passed
@yzang2019 yzang2019 deleted the yzang/add-metrics-proof-rejected branch February 23, 2026 18:01
github-actions bot pushed a commit that referenced this pull request Feb 23, 2026
## Describe your changes and provide context
Add metrics to indicate historical proof success/failure rate due to
rate limiting.

## Testing performed to validate your change

(cherry picked from commit 9e7161b)
@seidroid
Copy link

seidroid bot commented Feb 23, 2026

Successfully created backport PR for release/v6.3:

masih pushed a commit that referenced this pull request Feb 24, 2026
…lure rate (#2965)

Backport of #2958 to `release/v6.3`.

Co-authored-by: Yiming Zang <50607998+yzang2019@users.noreply.github.com>
yzang2019 added a commit that referenced this pull request Feb 27, 2026
* main: (66 commits)
  feat(flatkv): include legacyDB in ApplyChangeSets, LtHash, and read path (#2978)
  Deflake mempool tests with Eventually-based block waits (#2983)
  Demote noisy gasless classification log to debug level (#2982)
  Harden `TestStateLock_NoPOL` against proposal/timeout race (#2980)
  added a config parameter to limit outbound p2p connections. (#2974)
  merged unconditional and persistent peers status (#2977)
  Fix race between file pruning and in-flight parquet queries (#2975)
  fix(giga): don't migrate balance on failed txs (#2961)
  Fix hanging upgrade tests by adding timeouts to wait_for_height (#2976)
  Add snapshot import for Giga Live State (#2970)
  Fix Rocksdb MVCC read timestamp lifetime for iterators (#2971)
  Reduce exposed tendermint RPC endpoint (#2968)
  Deflake `TestStateLock_NoPOL` by widening propose timeout in test (#2969)
  go bench read + write receipts/logs for parquet vs pebble (#2794)
  [giga] clear up cache after Write (#2827)
  fix: use correct EVM storage key prefix in benchmark key generation (#2966)
  Harden staking precompile test against CI flakiness (#2967)
  Don't sync flatKV DBs when committing  (#2964)
  Fix flaky `TestStateLock_POLSafety1` (#2962)
  Add metrics for historical proof success/failure rate (#2958)
  ...
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