Skip to content

fix(autoresearch): demote unavailable Teensy LPUART - #3357

Merged
zackees merged 1 commit into
masterfrom
codex/autoresearch-discovery-no-fallback
Jun 24, 2026
Merged

zackees merged 1 commit into
masterfrom
codex/autoresearch-discovery-no-fallback

Conversation

@zackees

@zackees zackees commented Jun 24, 2026 •

Copy link
Copy Markdown
Member

Summary

Part of #3353.
Addresses #3352 by demoting LPUART from the active AutoResearch driver matrix.

LPUART currently has a reserved bus enum and interface scaffold, but no real Teensy channel engine/peripheral implementation in the active tree. Treating it as part of --all or accepting --lpuart makes AutoResearch look greener than the firmware really is.

Changes:

Verification

uv run --no-sync pytest ci/tests/test_autoresearch_phases.py::TestParseArgsAndBuildCommands::test_all_drivers ci/tests/test_autoresearch_phases.py::TestParseArgsAndBuildCommands::test_all_drivers_teensy4_only_real_teensy_drivers ci/tests/test_autoresearch_phases.py::TestParseArgsAndBuildCommands::test_lpuart_is_reserved_not_selectable

Result: 3 passed.

bash autoresearch teensy41 --lpuart --tx-pin 8 --rx-pin 9 --timeout 2m

Result: exits immediately with --lpuart is reserved but not currently implemented; no build/deploy or hardware test is attempted.

Summary by CodeRabbit

  • Bug Fixes
    • Clarified command-line help for driver selection, including that one option is currently unavailable and reserved for future use.
    • Prevented the unavailable driver option from being used during runs; it now returns a clear error instead of proceeding.
    • Updated the automatic driver list so only currently implemented drivers are included.

@zackees
zackees merged commit 53686b5 into master Jun 24, 2026
7 of 10 checks passed
@zackees
zackees deleted the codex/autoresearch-discovery-no-fallback branch June 24, 2026 17:43
@coderabbitai

coderabbitai Bot commented Jun 24, 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: 16cf05fa-fd0c-48e6-a174-deacb19da6e0

📥 Commits

Reviewing files that changed from the base of the PR and between 525ee20 and d45ea46.

📒 Files selected for processing (3)
  • ci/autoresearch/args.py
  • ci/autoresearch/phases.py
  • ci/tests/test_autoresearch_phases.py

📝 Walkthrough

Walkthrough

The --lpuart CLI option is marked as reserved/unavailable in help text and epilog examples. At runtime, supplying --lpuart now hard-fails with exit code 1. LPUART is removed from the Teensy 4.x --all driver matrix and from RPC command construction (TX pin override deleted). Tests are updated to match.

Changes

LPUART Driver Removal

Layer / File(s) Summary
CLI help and runtime driver selection
ci/autoresearch/args.py, ci/autoresearch/phases.py
--lpuart and --all help strings updated to describe LPUART as reserved/unavailable; _parse_args_and_build_commands now returns exit code 1 when --lpuart is supplied and excludes LPUART from the Teensy 4.x --all driver list.
Remove LPUART TX pin override from RPC builder
ci/autoresearch/phases.py
Deletes the lpuart_tx_pin constant and the conditional block that injected pinTx into runSingleTest JSON-RPC params for LPUART; only the FlexIO TX pin override remains.
Test suite updates
ci/tests/test_autoresearch_phases.py
test_all_drivers removes "LPUART" from the expected drivers set; test_lpuart_is_reserved_not_selectable now asserts the function returns 1 and adds assertions on JSON-RPC command methods and absence of "__skip_with_pass" markers.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related issues

Possibly related PRs

  • FastLED/FastLED#3005: Modifies the same _parse_args_and_build_commands driver-selection and --all matrix logic in ci/autoresearch/phases.py.
  • FastLED/FastLED#3033: Directly inverse change — that PR added LPUART support (enabled via --lpuart/--all, set default pinTx), while this PR removes it entirely.

Poem

🐇 Hop hop, the LPUART's gone away,
No pins to wire, no flags to obey,
"Reserved for future," the banner now reads,
Exit code one for unruly misdeeds.
The FlexIO driver still hops along fine,
While LPUART waits for its time to shine! ✨

✨ 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 codex/autoresearch-discovery-no-fallback

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: Triage

Development

Successfully merging this pull request may close these issues.

1 participant