Repository navigation
Revert "feat(protocols): add ProtocolHttpClient and refactor health check [OMN-566]" - #164
Conversation
…heck [OM…" This reverts commit 2fd2a4c.
|
Caution Review failedThe pull request is closed. WalkthroughThis PR reduces CI test parallelization from 24 to 20 splits, refactors the health-check mixin to inline aiohttp instead of using protocol abstractions, removes HTTP protocol exports from the public API, restructures health-status TypedDicts, and removes related integration and unit tests while updating others. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes
Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (18)
Comment |
Code Review - PR #164: Revert ProtocolHttpClient FeatureSummaryThis PR reverts #159 which introduced ProtocolHttpClient protocol abstraction and refactored health checks to use dependency injection. The revert appears clean and restores the codebase to its pre-#159 state. Positive Aspects
Areas of Concern1. Missing Revert Rationale - The PR body only states 'Reverts #159' without explaining WHY. Was there a critical bug, CI failure, performance regression, or architectural decision reversal? 2. Transport Import Violation Re-Introduced - mixin_health_check.py is back on the allowlist for direct aiohttp imports. The original PR #159 was specifically created to remove this violation (OMN-566). Reverting undoes that compliance work. 3. Test Suite Size Discrepancy - Test count reverted from 15,624 to 12,198 (loss of ~3,400 tests). However, only 697 tests were in the removed test files. This math does not add up and should be verified. 4. Protocol Module Orphaned - The entire src/omnibase_core/protocols/http/ module is removed. Verify no other branches/PRs have started using this protocol. Impact Assessment
Approval StatusAPPROVE with reservations The revert itself is technically clean and correct, but the lack of rationale is concerning. Safe to merge as a tactical revert, but strategic questions remain unanswered. Action ItemsFor PR Author:
For Team:
Reviewed by: Claude (AI Code Reviewer) | Date: 2025-12-11 | Risk: Medium |
* Reapply "feat(protocols): add ProtocolHttpClient and refactor health check [OM…" (#164) This reverts commit 63799c6. * fix(health-check): address PR #203 code review feedback Implements three improvements from PR review: 1. **CRITICAL FIX**: Narrow exception handling in URL validation - Replace broad `except Exception` with specific `ValueError, AttributeError` - Only catches urlparse-specific errors, allows programming errors to propagate - Improves debuggability and code maintainability - File: src/omnibase_core/mixins/mixin_health_check.py:895-900 2. **ENHANCEMENT**: Add optional response timing to health checks - New parameter: `track_duration: bool = False` (backward compatible) - Captures response time in milliseconds when enabled - Stores duration in `ModelHealthStatus.check_duration_ms` field - Enables observability for service degradation detection - File: src/omnibase_core/mixins/mixin_health_check.py:798-948 3. **DOCUMENTATION**: Document HTTP protocol extensibility limitation - Added TODO comment explaining current GET-only design (YAGNI principle) - Lists future HTTP methods: POST, HEAD, PUT for advanced use cases - Guides future protocol extensions - File: src/omnibase_core/protocols/http/protocol_http_client.py:292-297 **Quality Gates**: ✅ mypy strict mode passes (0 errors in 2198 files) **Tests**: ✅ All 41 existing health check tests pass **Backward Compatibility**: ✅ All changes maintain existing behavior Co-authored-by: Claude Code (Polymorphic Agent)
Reverts #159
Summary by CodeRabbit
Refactor
Chores
Tests
✏️ Tip: You can customize this high-level summary in your review settings.