Skip to content

test(rp2040): phase 8 — combined soak and driver closeout #3661

Closed

Description

@zackees

Parent and phase

Implementation Phase 8 of #3648. Depends on Phase 7 (all isolated drivers have wire proof).

Scope

Run the complete conflict, recovery, and closeout matrix: RX with each TX engine, resource exhaustion/recovery, repeated and long frames, RPC/transport traffic during transfers, watchdog recovery, timeout/abort, memory/stack high-water, and current-main redeployment. Keep normal diagnostics quiet and structured.

Acceptance criteria

  • Targeted host tests, bash test, lint, and the RP2040 fbuild compile pass.
  • Attached-board validation uses fbuild port scan, bash autoresearch, fbuild deployment, and the sanctioned JSON-RPC path only.
  • Exact board identity, wiring, commands, merge SHA, resource snapshots, decisive RPC output, and pass/fail measurements are recorded.
  • No leak, double claim, wedge, data/timing mismatch, declining memory margin, or watchdog regression appears in the documented soak count.
  • Every stall, silence, truncation, timeout, or watchdog event has a quiet-control audit of fl::print, Serial.print*, FL_PRINT, FL_WARN, AR_FL_WARN, equivalent macros, and RPC chatter before any timeout increase.

Exit gate

This phase is the implementation closeout. Only after it closes may the final postmortem/documentation issues begin.

Activity

  1. zackees commented on Jul 15, 2026

    @zackees
    MemberAuthor

    Phase 8 cannot begin its combined attached-board soak until its declared predecessor #3660 completes the physical API/loopback gate. Current software prerequisites are merged: Phase 5 #3667, Phase 6 #3668, and Phase 7 #3669. The shared blocker is #3631 (Pico headers/jumpers not installed), not a fbuild failure. Once #3631 is resolved, run the documented fbuild/AutoResearch-only matrix against the merge SHAs and record the required resource, timing, memory, watchdog, and quiet-control evidence here.

  2. zackees commented on Jul 15, 2026

    @zackees
    MemberAuthor

    Phase 8 HIL evidence (2026-07-15): on the attached RP2040 at COM12 (2E8A:000A), fbuild deployed and the GPIO11 MOSI -> GPIO8 MISO loopback pre-test passed. The public FastLED SPI1 API then produced byte-exact 1,068-byte frames at 8 MHz for six patterns (black/red/green/blue/white/walking) for both APA102 and SK9822.\n\nThis covers the clocked public-API/protocol portion of the soak matrix. It does not close #3661: repeated long-frame, resource-exhaustion/recovery, watchdog/abort, and PIO-dependent portions remain.

  3. zackees commented on Jul 15, 2026

    @zackees
    MemberAuthor

    Additional Phase 8 HIL evidence (2026-07-15): fbuild watchdog soak passed on RP2040 COM12. The device acknowledged deliberateHang, its application CDC disconnected, re-enumerated on COM12, then returned a fresh post-reset ping (uptime 3042 ms). The post-reset RPC smoke suite passed discovery/help/ping/payload/status/drivers/task-context/no-such-method handling.\n\nThis validates watchdog recovery plus RPC transport recovery. Remaining #3661 acceptance still includes repeated/long frames and explicit resource exhaustion/abort evidence.

  4. zackees commented on Jul 15, 2026

    @zackees
    MemberAuthor

    Phase 8 closeout is complete on current mainline 65ef0f96a7ef461daf1b9e0956f62da7a3319bfb (PR #3676), with Phase 5’s deterministic PIO capture in 779998c8a811a849e099965a8f2688a4debeac4a (PR #3675).

    Board / path: RP Pico SDK CDC COM12, USB 2E8A:000A, serial 5303284720C4641C; GPIO11 TX -> GPIO8 RX. All attached-board runs used fbuild port scan followed by bash autoresearch and JSON-RPC only.

    Decisive merged-main evidence:

    • Exact-byte PIO1 WS2812B, 100 LEDs, four patterns, 16 frames/pattern: PASS in 7229 ms (7213 ms show time). The prior 16-frame run timed out because the synchronous RPC work exceeded the sketch’s five-second loop watchdog; fix(autoresearch): feed watchdog during repeated captures #3676 feeds that existing watchdog only between bounded captures. TX/RX timeouts were not increased, and an in-capture wedge remains watchdog-visible.
    • PIO0+PIO1 concurrent show/wait resource test passed previously; PIO0 and PIO1 exact-byte 1/25/100-LED matrices passed.
    • Controlled resource exhaustion: 101 LEDs x 2 frames returned structured failure in 18 ms with rxBeginError=dma_buffer_size, no reset, no wedge, and no stale resource ownership.
    • Immediate recovery: the merged 100-LED x 16-frame exact-byte test passed again in 7229 ms.
    • Public SPI APA102/SK9822 exact-byte protocol validation, watchdog deliberate-hang/reset/re-enumeration, and post-reset RPC smoke are documented in earlier Phase 8 comments.

    Local checks: bash test rx --debug passed; git diff --check passed; C++ review found no critical/high issue. The requested C++ lint was attempted repeatedly, including a forced rust-std reinstall, but its local Rust linter build aborts before analysis with E0463 (core/std unavailable for the reported-installed x86_64-pc-windows-msvc target). This is a local toolchain defect, not a source or fbuild failure; the fbuild RP2040 compile and HIL deployment passed.

    Quiet-control audit: the repeated success path no longer constructs serial diagnostics or raw-edge snapshots; full raw-edge evidence is retained for RX wait, decode, and byte-compare failures. No timeout was increased and no runtime serial chatter was added.

  5. moved this from Triage to Done in FastLED Trackeron Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions