Repository navigation
Add LPC IEEE754 AutoResearch codec mode - #3213
Conversation
📝 WalkthroughWalkthroughAdds an ChangesIEEE 754 Codec On-Device Verification Mode
Sequence Diagram(s)sequenceDiagram
rect rgba(100, 149, 237, 0.5)
Note over CI,phases.py: Build & Deploy
CI->>phases.py: _run_build_deploy(ctx, ieee754_test_mode=True)
phases.py->>phases.py: _build_environment_for_mode(ctx) → "lpc845brk_ieee754"
phases.py->>PlatformIO: install packages for lpc845brk_ieee754
phases.py->>nxplpc: flash(environment="lpc845brk_ieee754")
end
rect rgba(144, 238, 144, 0.5)
Note over CI,Device: Test Execution
CI->>phases.py: _run_ieee754_tests(ctx)
phases.py->>RpcClient: connect via serial
phases.py->>RpcClient: drain boot messages
phases.py->>RpcClient: ieee754CodecTest (with retries)
RpcClient->>Device: RPC call
Device->>Device: autoresearch::ieee754_check::run()
Device-->>RpcClient: {success, tests_run, tests_failed, first_failure, expected_bits, actual_bits}
RpcClient-->>phases.py: JSON response
phases.py->>phases.py: validate success && tests_failed==0 && tests_run>0
phases.py-->>CI: exit code 0 or 1
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
agents/docs/hardware-autoresearch.md (1)
8-31:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winClarify that
--ieee754is an exception to driver selection.This section still says a driver is mandatory, but the new IEEE754 mode runs without LED driver loopback and the example uses
bash autoresearch lpc845brk --ieee754. Please update the intro/error wording so users don’t think this flag is invalid.Based on learnings:
--ieee754is a standalone on-device codec verification mode, andlpc845brkmaps to a dedicatedlpc845brk_ieee754build path.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@agents/docs/hardware-autoresearch.md` around lines 8 - 31, The "MANDATORY: Driver Selection Required" section header and introductory text do not account for the `--ieee754` flag as an exception to the driver requirement. Update the section heading and opening statement to clarify that users must specify either at least one LED driver flag (--parlio, --rmt, --spi, --uart, --i2s, --lcd-rgb, --all, --parallel) OR use the `--ieee754` special mode for codec verification without driver loopback. This will prevent users from thinking `--ieee754` is invalid when used without an LED driver flag.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@agents/docs/hardware-autoresearch.md`:
- Around line 8-31: The "MANDATORY: Driver Selection Required" section header
and introductory text do not account for the `--ieee754` flag as an exception to
the driver requirement. Update the section heading and opening statement to
clarify that users must specify either at least one LED driver flag (--parlio,
--rmt, --spi, --uart, --i2s, --lcd-rgb, --all, --parallel) OR use the
`--ieee754` special mode for codec verification without driver loopback. This
will prevent users from thinking `--ieee754` is invalid when used without an LED
driver flag.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 7c07719c-41f4-4673-9fc8-a1421255e46b
📒 Files selected for processing (10)
agents/docs/hardware-autoresearch.mdci/autoresearch/args.pyci/autoresearch/context.pyci/autoresearch/phases.pyci/tests/test_autoresearch_phases.pyexamples/AutoResearch/AutoResearchIeee754.hexamples/AutoResearch/AutoResearchLowMemory.hexamples/AutoResearch/AutoResearchRemoteMathMethods.cppexamples/AutoResearch/AutoResearchRemotePinMethods.cppplatformio.ini
Summary
--ieee754mode for on-device integer IEEE 754 decimal codec verification (test(autoresearch): on-device verification of fl::ieee754_string codec (refs #3022, #3038) #3039)lpc845brk_ieee754low-memory build surface so default LPC AutoResearch stays under flash budgetieee754CodecTestRPC in full and low-memory AutoResearchFixes #3039
Validation
uv run pytest ci/tests/test_autoresearch_phases.py(50 passed)bash test --cpp tests/fl/stl/ieee754_string.cpp(passed, cached on final run)bash compile lpc845brk --examples AutoResearch --backend fbuild(default firmware 62.47KB / 64KB)bash autoresearch lpc845brk --ieee754 --upload-port COM10 --skip-lint --skip-schema(hardware passed: 35 checks, 0 failures; IEEE754 firmware 59.36KB / 64KB)Summary by CodeRabbit
Release Notes
New Features
--ieee754execution mode to autoresearch for running on-device integer IEEE 754 decimal codec verification, including parsing, formatting, and round-trip testing. Supported on lpc845brk target.Chores