Repository navigation
chore(autoresearch): use --perf-XX / --test-XX flag prefixes (#3124) - #3742
Merged
Merged
Conversation
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]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
📝 WalkthroughWalkthroughRenames AutoResearch performance and LPC845 fault-emission flags, updates their internal configuration fields and runtime propagation, and synchronizes tests, help text, and hardware validation documentation. ChangesAutoResearch flag naming
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #3124. Renames the two autoresearch flags that didn't follow the convention:
--wave2d-perf--perf-wave2d--fault-emit-test--test-fault-emitStraight 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.
autoresearchhardcodes a--helpblock independent of argparse, and that is what users actually see. After renaming the Python side,bash autoresearch --helpwas still advertising--fault-emit-test— so the wrapper is updated too. Worth knowing for future flag work: renaming inargs.pyalone leaves the user-visible help wrong.Scope of the identifier renames. The argparse dests and the
RunContextfield move with the flags (argparse derives the dest from the flag name, so they can't diverge). Internal helpers like_run_lpc_fault_emit_testskeep 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 passedbash autoresearch --help— now shows--test-fault-emitbash lint— greenwave2d-perf/fault-emit-testreferences remain anywhere outside the two internal helper namesNot 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
--perf-wave2d.--test-fault-emit.Tests