Repository navigation
feat(autoresearch): add --frames N multi-frame capture - #2293
Conversation
Adds back-to-back show()/capture cycles per pattern to expose second-frame degradation bugs where a driver corrupts or zeroes its DMA buffer after the first show() (see #2254, #2288 — ESP32-S3 SPI "black frame between displays"). - CLI: --frames N (1-16), defaults 2 for --spi, 1 otherwise - JSON-RPC: frameCount field in runSingleTest params (bounds-checked) - Firmware: wires num_runs_per_pattern into MultiRunConfig.num_runs - Reporting: per-pattern runNumber + frames=N header when frameCount>1 Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
📝 WalkthroughWalkthroughA comprehensive feature addition enabling multi-frame capture configuration in AutoResearch. Changes span CLI argument parsing for frame count (1–16), driver-dependent defaults in command building, RPC payload extensions for frame metadata, and C++ test execution support for parameterized multiple runs per pattern. Changes
Sequence DiagramsequenceDiagram
participant User as User/CLI
participant Parser as Arg Parser
participant CmdBuilder as Command Builder
participant RPC as RPC Server
participant TestExec as Test Executor
participant Results as Result Aggregator
User->>Parser: --frames N (1-16)
Parser->>CmdBuilder: Args(frames=N)
CmdBuilder->>CmdBuilder: Compute frameCount (driver-dependent defaults)
CmdBuilder->>RPC: runSingleTest(..., frameCount)
RPC->>RPC: Validate frameCount in [1, 16]
RPC->>TestExec: Execute with num_runs_per_pattern
TestExec->>TestExec: Run pattern N times, capture per-frame results
TestExec->>Results: Aggregate runs with runNumber
Results->>RPC: {frameCount, patterns[{runNumber, ...}]}
RPC->>User: Display results with frame metadata
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~30 minutes Possibly related issues
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
Summary
--frames N(1-16) tobash autoresearchfor back-to-backshow()/capture cycles per pattern.2when--spiis used,1otherwise — exposes second-frame degradation bugs where a driver corrupts or zeroes its DMA buffer after the firstshow().runSingleTest→MultiRunConfig.num_runs.runNumberand addsframes=Nto the header when frameCount > 1.Context: issues #2254 and #2288 — ESP32-S3 SPI "black frame between displays".
Test plan
uv run pytest ci/tests/test_autoresearch_phases.pybash autoresearch --spilocally — confirm defaults to frames=2 and reports runNumber on failurebash autoresearch --parlio --frames 1— confirm override works🤖 Generated with Claude Code
Summary by CodeRabbit
--framescommand-line option to configure capture frame count (1–16) per test