Repository navigation
test(firmware): cover S-record high address workflows - #8897
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Low impact] The changed tests appear safe to merge and add useful high-address coverage. SummaryAdds four public-workflow scenarios for S-record addresses:
No actionable issue or security concern was found in the changed tests. Tests were not run during this review. Known issue acknowledged by ShuaixinHuang: the supplied PR description identifies the baseline duplicate The supplied description says this PR supersedes #8881. Whether #8897 has since been superseded could not be checked because GitHub access required authentication. Reviews (1) · Last reviewed commit: "test(firmware): cover S-record high addr..." · Reviewed by Greptile |
Supersedes #8881 at the author's request. The branch and code are unchanged; this new PR requires its own CI and initial author readiness confirmation.
Summary
Cover S28 high addresses in the compiled CLI and full/compact stdio MCP workflows, plus unsigned S37 addresses in the CLI. Existing CLI coverage selects S19, and existing MCP S37 coverage uses an address below the signed 32-bit boundary. No issue is linked: this is an independently identified public-workflow coverage gap.
Problem and expected behavior
S28 address 0x00fedcba and S37 address 0xfedcba98 must survive inventory and extraction without losing high bits or changing the source file. Literal checksum-valid records expect a deadbeef region and the corresponding S8/S7 start address.
Change and scope
Two test files add four scenarios. They check variant/start-address metadata, region names, exact extracted bytes and unchanged source bytes. Existing malformed-record and compact/full schema checks remain exercised. Contribution scope: independent test coverage for existing functionality; maintainer scope decision not applicable.
Contract and boundary impact
Expected effects:
These describe test-owned fixture files, extraction outputs and owned REA CLI/server processes. Firmware is not executed.
Evidence and regression coverage
Validation performed
npm.cmd run test:focused -- tests/acceptance/hexRecordsCli.test.ts tests/boundary/mcp/hexRecordsMcp.test.ts: 11 passed in two files, including actual compiled CLI and stdio MCP.npm.cmd run check:fast: typecheck and lint passed, 2 tasks, 43.389 s.git diff --check: passed.Compatibility, safety, and release
Test-only; no migration, runtime, schema, package or release metadata change. Real-device/provider validation is not established by these synthetic fixtures.
Author readiness
Human owner: @ShuaixinHuang
Before merge
type(scope): outcome.