Test the perception pipeline orchestration; raise coverage floor to 60% - #16
Open
mandarwagh9 wants to merge 1 commit into
Open
Test the perception pipeline orchestration; raise coverage floor to 60%#16mandarwagh9 wants to merge 1 commit into
mandarwagh9 wants to merge 1 commit into
Conversation
…floor to 60% Adds the first test driving PerceptionPipelineService end-to-end (detect -> track -> fuse -> snapshot -> broadcast) with mock adapters, plus metrics, lifecycle, and health-status coverage. services.py was the largest untested core module. - test_pipeline_service.py: a tick builds + broadcasts a snapshot; no-frames is a no-op; generation increments per tick; PipelineMetrics running average; start/stop lifecycle; HealthCheckService status reporting. - CI: raise the backend coverage floor 50% -> 60%. services.py coverage 34%->89%, total 60%->63%. ruff/mypy clean, 117 tests pass. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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 & why
Builds on the now-clean
main. The perception orchestration layer (services.py— the detect→track→fuse→snapshot→broadcast loop that the whole system runs on) was the largest untested core module (~34%). This drives it end-to-end with mock adapters.Changes
test_pipeline_service.py:PerceptionSnapshot(detections/tracks/world-objects/frame) and broadcasts itgenerationincrements per tickPipelineMetricsrunning averagestart/stoplifecycleHealthCheckServicestatus reportingVerification
ruffclean ·mypyclean (18 files) · 117 backend tests pass (was 111).services.pycoverage 34% → 89%; total 60% → 63%.🤖 Generated with Claude Code