Skip to content

chore(autoresearch): use --perf-XX / --test-XX flag prefixes (#3124) - #3742

Merged
zackees merged 1 commit into
masterfrom
chore/3124-perf-flag-prefix
Jul 27, 2026
Merged

zackees merged 1 commit into
masterfrom
chore/3124-perf-flag-prefix

Conversation

@zackees

@zackees zackees commented Jul 27, 2026 •

Copy link
Copy Markdown
Member

Summary

Closes #3124. Renames the two autoresearch flags that didn't follow the convention:

Old New
--wave2d-perf --perf-wave2d
--fault-emit-test --test-fault-emit

Straight rename, no deprecation alias — per the issue, neither flag has shipped in a release, so there's nothing to migrate.

Also swept the rest of the flag surface: those two were the only non-conforming perf/test flags in args.py.

Notes

The bash wrapper has its own copy of the flag list. autoresearch hardcodes a --help block independent of argparse, and that is what users actually see. After renaming the Python side, bash autoresearch --help was still advertising --fault-emit-test — so the wrapper is updated too. Worth knowing for future flag work: renaming in args.py alone leaves the user-visible help wrong.

Scope of the identifier renames. The argparse dests and the RunContext field move with the flags (argparse derives the dest from the flag name, so they can't diverge). Internal helpers like _run_lpc_fault_emit_tests keep their names — the issue is about the flag surface, and renaming them would be pure churn.

Testing

  • uv run python -m pytest ci/tests/test_autoresearch_phases.py ci/tests/test_autoresearch_rpc_acceptance.py -q — 116 passed
  • bash autoresearch --help — now shows --test-fault-emit
  • bash lint — green
  • No stale wave2d-perf / fault-emit-test references remain anywhere outside the two internal helper names

Not run: the flags drive real LPC845/Teensy hardware benches, so end-to-end exercise needs a bench. The change is a pure rename with full static coverage.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Changes

    • Renamed the Wave2D performance benchmark option to --perf-wave2d.
    • Renamed the LPC845 fault-emission validation option to --test-fault-emit.
    • Updated CLI help text and hardware validation documentation with the new option names.
    • Updated benchmark and validation configuration handling to use the renamed options consistently.
  • Tests

    • Updated automated test setup to reflect the renamed configuration options.

Renames the two flags that did not follow the convention:

  --wave2d-perf     -> --perf-wave2d
  --fault-emit-test -> --test-fault-emit

Straight rename with no deprecation alias, per the issue: neither flag has
shipped in a release, so there is nothing to migrate.

Renamed the argparse dests and the RunContext field alongside the flags
(argparse derives the dest from the flag, so these have to move together).
Internal helpers like _run_lpc_fault_emit_tests keep their names -- the
issue is about the flag surface, and renaming them would be churn.

The `autoresearch` bash wrapper carries its OWN hardcoded copy of the flag
list for `--help`, separate from argparse. That copy is what users actually
see, so it is updated too -- `bash autoresearch --help` kept advertising
--fault-emit-test after the Python side was already renamed. Same for the
one reference in agents/docs/hardware-autoresearch.md.

Validation: 116 autoresearch tests pass; `bash autoresearch --help` now
shows --test-fault-emit; bash lint green; no stale references remain
outside the two internal helper names.

Co-Authored-By: Claude <[email protected]>
@coderabbitai

coderabbitai Bot commented Jul 27, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 03df90e4-afe7-4be3-80b3-dde437d0aa3b

📥 Commits

Reviewing files that changed from the base of the PR and between 5c9c992 and 032c86f.

📒 Files selected for processing (7)
  • agents/docs/hardware-autoresearch.md
  • autoresearch
  • ci/autoresearch/args.py
  • ci/autoresearch/context.py
  • ci/autoresearch/phases.py
  • ci/tests/test_autoresearch_phases.py
  • ci/tests/test_autoresearch_rpc_acceptance.py

📝 Walkthrough

Walkthrough

Renames AutoResearch performance and LPC845 fault-emission flags, updates their internal configuration fields and runtime propagation, and synchronizes tests, help text, and hardware validation documentation.

Changes

AutoResearch flag naming

Layer / File(s) Summary
CLI contracts and parsing
autoresearch, ci/autoresearch/args.py
Renames --wave2d-perf to --perf-wave2d and --fault-emit-test to --test-fault-emit, including dataclass fields, parsed mappings, and help output.
Runtime configuration propagation
ci/autoresearch/context.py, ci/autoresearch/phases.py
Propagates the renamed Wave2D grid and fault-emission fields through parsing, context construction, dispatch, and the performance runner.
Validation fixtures and documentation
ci/tests/*, agents/docs/hardware-autoresearch.md
Updates test context factories and LPC845 command examples to use the new names.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • FastLED/FastLED#3615: Renames the LPC845 fault-emission AutoResearch mode across CLI fields, phases, and documentation.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the autoresearch flag-prefix rename.
Linked Issues check ✅ Passed The PR updates the requested perf/test flag renames in code, tests, and docs.
Out of Scope Changes check ✅ Passed No unrelated changes stand out; the edits stay within flag renaming and related wiring.
✨ 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 chore/3124-perf-flag-prefix

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.

chore(autoresearch): rename perf + test flags to consistent --perf-XX / --test-XX prefixes

1 participant