Polish: log_format validation, clearer URL errors, status-drop logging - #18
Merged
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: getoptimum/coderabbit/.coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthrough
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
✨ Finishing Touches📝 Generate docstrings
Comment |
…p log Low/minor findings from the main review: - config: reject an unknown KEYSYNC_LOG_FORMAT (the --log-format flag is enum-restricted by click, but the env path wasn't, so a typo silently rendered console output). - config: a bare host with no scheme now errors with a scheme-specific message instead of the generic 'must use https'. - beacon: log the count + statuses of known-but-excluded validators (e.g. withdrawal_done) so a real exit dropping out of the desired set leaves a trail instead of vanishing silently (via a shared _included helper). Adds config tests. 88 passed, ruff and mypy clean.
CryptoFewka
force-pushed
the
fix/review-low-minor
branch
from
June 25, 2026 18:32
39c4ea6 to
b393c65
Compare
Merged
CryptoFewka
added a commit
that referenced
this pull request
Jun 25, 2026
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.
What
The Low/minor findings from the full-
mainreview (polish; no behavior-critical bugs).config: reject an unknownKEYSYNC_LOG_FORMAT. The--log-formatflag is enum-restricted by click, but the env-var path wasn't, soKEYSYNC_LOG_FORMAT=yamlsilently rendered console output. Now afield_validatorfails config (EXIT_CONFIG) for anything butconsole/json.config: clearer schemeless-URL error. A bare host likeconsole.getoptimum.io(no scheme) was rejected with the generic "must use https"; it now reports the missing scheme specifically.beacon: log known-but-excluded validators. A validator the beacon knows but whose status is outside the owned set (e.g.withdrawal_done) was filtered out with zero diagnostic, so a real exit dropping out of the desired set was invisible. A shared_includedhelper now logs the count + statuses at info level. (Behavior unchanged; existing status-filter test still passes.)Intentionally not included (noted as deferred in the review):
_read_pubkeysdeferring format validation to the beacon (intended design), the theoreticaloperator_id == 0falsy case (real operator ids aren't falsy), the internal-onlylogging.configure(level=...)strictness (no user path sets it), and the deadmin_lengthguard on URL fields (harmless).Tests
test_unknown_log_format_rejected,test_schemeless_url_rejected_with_scheme_message.pytest: 88 passed;ruff+mypy: clean.Written with Claude Code
Summary by CodeRabbit
Bug Fixes
Tests