fix(130845): update Simnet Key Value fixture for Operation field#449
fix(130845): update Simnet Key Value fixture for Operation field#449keesverruijt wants to merge 1 commit into
Conversation
canboat #697 renamed PGN 130845 field 9 MinLength -> Operation (a SIMNET_KEY_OPERATION lookup) and dropped the spare9 field. The decode output now yields operation: 'Set' instead of minlength/spare9, and the encoder ignores the now-unknown minlength/spare9 keys (encoding the Operation byte as 0xff instead of 0x01). Update test/pgns/130845.js to use operation: 'Set' (wire byte 0x01), matching the regenerated definition. Companion to 645ae09 which fixed 130850 but missed 130845. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughTwo test case expectations in the PGN 130845 fixture are updated: the ChangesPGN 130845 test fixture
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
test/pgns/130845.jsESLint skipped: missing config or dependency (missing-dependency). The ESLint configuration references a package that is not available in the sandbox. 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 |
Why CI is red
canboat #697 (
fd9bde4) reshaped PGN 130845 Simnet: Key Value: field 9 was renamedMinLength→Operation(aSIMNET_KEY_OPERATIONlookup:0 Read,1 Set,2 Reply) and thespare9field was dropped.The earlier fix
645ae09("simrad tests failing because of canboat changes") updated130850.jsbut missed130845.js, so the canboat "Test canboatjs…" workflow still fails with 4 errors:from pgn 130845): output now hasoperation: 'Set'and nominlength/spare9.to pgn 130845): the staleminlength/spare9keys are unknown → ignored, so the Operation byte encodes as0xffinstead of the expected0x01.The fix
Update
test/pgns/130845.js(both entries) to useoperation: 'Set'and dropminlength/spare9.Set= wire byte0x01, which matches the existing input sample (…,12,00,01,58), so the encode round-trip is preserved.🤖 Generated with Claude Code
Summary by CodeRabbit
Backlight levelfield format.operation: Setwith the samevalue: 88, replacing older expected fields.