Skip to content

[CON-153] fix: lightclient: divergence detector should return upon sending error#2634

Merged
philipsu522 merged 1 commit intomainfrom
asr/fix-divergence-detector
Dec 23, 2025
Merged

[CON-153] fix: lightclient: divergence detector should return upon sending error#2634
philipsu522 merged 1 commit intomainfrom
asr/fix-divergence-detector

Conversation

@arajasek
Copy link
Copy Markdown
Contributor

If I'm understanding this code correctly, we should always return after adding an error to the channel. I think we're just missing two return statements.

Note: I wound up here investigating a flaky test failure, but I think this is an actual bug, not a test issue.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 18, 2025

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

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedDec 23, 2025, 3:47 PM

@github-actions
Copy link
Copy Markdown

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

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedDec 18, 2025, 7:59 PM

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 18, 2025

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 41.99%. Comparing base (3078fb2) to head (539dc31).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
sei-tendermint/light/detector.go 50.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2634      +/-   ##
==========================================
- Coverage   42.00%   41.99%   -0.02%     
==========================================
  Files        1018     1018              
  Lines       84807    84809       +2     
==========================================
- Hits        35626    35614      -12     
- Misses      45838    45851      +13     
- Partials     3343     3344       +1     
Flag Coverage Δ
sei-cosmos 38.20% <ø> (-0.01%) ⬇️
sei-db 69.28% <ø> (+0.21%) ⬆️
sei-tendermint 47.29% <50.00%> (-0.04%) ⬇️

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

Files with missing lines Coverage Δ
sei-tendermint/light/detector.go 72.30% <50.00%> (-0.24%) ⬇️

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

@arajasek arajasek force-pushed the asr/fix-divergence-detector branch from 478182e to 539dc31 Compare December 23, 2025 15:46
@arajasek arajasek enabled auto-merge (squash) December 23, 2025 17:32
@philipsu522 philipsu522 disabled auto-merge December 23, 2025 18:51
@philipsu522 philipsu522 merged commit ffc83e6 into main Dec 23, 2025
40 of 42 checks passed
@philipsu522 philipsu522 deleted the asr/fix-divergence-detector branch December 23, 2025 18:52
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