Skip to content

fix(autoresearch): feed watchdog during repeated captures - #3676

Merged
zackees merged 1 commit into
masterfrom
fix/rp2040-phase8-watchdog-soak
Jul 15, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/rp2040-phase8-watchdog-soak

Conversation

@zackees

@zackees zackees commented Jul 15, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Feed the existing sketch watchdog between bounded repeated AutoResearch captures, so a legitimate synchronous RPC soak does not reset at the five-second loop watchdog boundary.
  • Keep each TX/RX timeout unchanged; an in-capture wedge remains watchdog-visible.
  • Keep successful soak captures allocation-quiet and retain full raw-edge evidence for every RX/decode/compare failure.

RP Pico HIL

GPIO11 -> GPIO8, PIO1 exact-byte WS2812B loopback:

  • 8 frames x four patterns: pass in 3.620 s.
  • 16 frames x four patterns: pass in 7.229 s after the fix (the prior image timed out at the five-second loop watchdog boundary).

Validation

  • bash test rx --debug
  • C++ review: no critical/high findings.
  • fbuild/AutoResearch RP2040 deployment and GPIO pretest passed.

Refs #3661
Refs #3648

Summary by CodeRabbit

  • Performance

    • Reduced overhead during successful captures and long-running test sessions.
    • Deferred detailed diagnostic data collection until a capture or comparison failure occurs.
    • Limited retained successful-run results while preserving failure details.
  • Diagnostics

    • Improved failure reporting with additional capture-capacity and raw-edge evidence.
    • Reduced routine logging and progress-output overhead when detailed logs are disabled.
  • Test Reporting

    • Updated multi-run summaries to track pass and failure totals incrementally.

@zackees
zackees merged commit 65ef0f9 into master Jul 15, 2026
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Jul 15, 2026
@coderabbitai

coderabbitai Bot commented Jul 15, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: bc2b8b0f-0dcc-4a89-b201-9defb6f842d9

📥 Commits

Reviewing files that changed from the base of the PR and between 779998c and d1ff7ce.

📒 Files selected for processing (1)
  • examples/AutoResearch/AutoResearchTest.cpp

📝 Walkthrough

Walkthrough

AutoResearchTest.cpp defers raw-edge diagnostics to failure paths, gates high-frequency logging and formatting, records additional capture metadata, and tracks multi-run totals incrementally while retaining fewer successful results.

Changes

AutoResearch optimization

Layer / File(s) Summary
Capture diagnostics and conditional logging
examples/AutoResearch/AutoResearchTest.cpp
Adds deferred raw-edge diagnostic collection, records wait and decode-capacity data, and gates high-frequency capture logs by log level.
Multi-run diagnostic collection
examples/AutoResearch/AutoResearchTest.cpp
Gates progress and hex-dump formatting, and preserves edge evidence when capture or pixel comparison fails.
Multi-run counters and result retention
examples/AutoResearch/AutoResearchTest.cpp
Tracks pass/failure totals during execution, retains one successful result plus all failures, and uses tracked totals for summary statistics.

Estimated code review effort: 3 (Moderate) | ~20 minutes

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/rp2040-phase8-watchdog-soak

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant