Repository navigation
fix: P0 correctness bugs (halt detection, hangs, panic, docs) - #57
Merged
Merged
Conversation
Fixes #38 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Fixes #35 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…vances Fixes #34 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… panic at shutdown Fixes #37 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…adline as clean exit Fixes #36 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
20 tasks done
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
# Conflicts: # internal/clients/celestia/client_test.go
This was referenced Oct 20, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the remaining P0 issues from the optimization roadmap (#53). The fifth P0 issue, #35 (Celestia auth token), was already fixed on
mainby #55, so this PR no longer touches the Celestia client.Changes
#34:
time_since_last_blocknever grows on a halted chainpkg/exporters/drift/drift.goreset the gauge on every successful poll, so a halt alert could never fire.lastHeight). A flat or decreasing height leaves it alone.#36: process hangs when one exporter fails;
--durationexits 1pkg/metrics/server.gonow useserrgroup.WithContext. When one exporter fails, the HTTP server and the other exporters stop, and the process exits instead of staying up as a zombie.cmd/monitor.gonow treatscontext.DeadlineExceeded(from--duration) as a clean exit.#37: verifier panic at shutdown
pkg/exporters/verifier/verifier.gono longer closesblockQueue. Workers exit onctx.Done(). This removes a send-on-closed-channel panic that delayed re-queue goroutines could trigger.#38: README documented flags and modes that don't exist
--enable-metrics,--debugand "one-shot mode" from the README.--porthelp text.--verboseandEVMETRICS_DEBUG.block_time_slo_seconds,block_receive_delay_secondsandblock_receive_delay_slo_secondsas "not yet emitted, see [P2] Emit declared-but-unused metrics: block_receive_delay and SLO threshold gauges #44".Tests
New tests for each fix:
drift_test.go: fails on the old code.server_test.go: reproduces the hang without the fix.verifier_test.go: workers stop on cancel.Results, after merging the latest
main(#55, #56):go test -race ./...passes.gofmt -lreports nothing.Note
The drift test uses real 1s polls with about 0.3–0.5s of slack. If it turns flaky in CI, the follow-up is to inject the ticker.
Fixes #34
Fixes #36
Fixes #37
Fixes #38
🤖 Generated with Claude Code