Repository navigation
test: run this commit's modsim and modpoll against each other (SIM-08) - #142
Merged
Merged
Conversation
modpoll-wot gains a conformance model with every byte and word order and each Form extension, its simulation data and fingerprint vectors. integration/ serves it with modsim and reads it with modpoll over Modbus TCP and RTU on a virtual serial port: every value reads back, the registers on the wire match an independent encoding, full-read reports validate against the model, an unserved address is reported as exception 02, and modpoll's example copy of the shared fixture cannot drift. modsim's snapshot replay and catalog interop now use this commit's modpoll instead of the 2.0.0a5 and 2.0.0a2 releases; the replay expects the exact decimal modpoll exports since then. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
SIM-08 after TOOL-01: the tools are tested against each other at the same commit, not against old commits or releases.
tests/fixtures/conformance.tm.json): uint32 in all four byte and word orders, a word-swapped float32, a negatively scaled int16, an odd-length UTF-8 string, a bit extraction, float16 and a legacy-packed coil value, with simulation data and fingerprint vectors.modsim.tm.jsonstays the 37-point fixture modpoll compares with 1.x.integration/(new workflowintegration): modsim serves the conformance model and modpoll reads it over Modbus TCP and over RTU onmodsim --serial pty. Every value reads back; the registers on the wire match an encoding worked out in the test from the byte and word order rules; full-read reports validate against the model and record the transport; an address modsim does not serve is reported as exception 02; modpoll'sexamples/modsim.tm.jsonmust stay identical to the shared fixture.230.1); releases up to 2.0.0a5 exported230.10000000000002, which modpoll-wot'sscaled_rawproperty tests still accept.modsim-equivalencejob keeps its pinned 1.x baseline and simulator on purpose: it compares 2.x with 1.x.Verification
integration: 7 passed. modpoll-wot 128 passed, modpoll 263 passed / 51 skipped, modsim 156 passed / 5 skipped.make checkfor modpoll and modsim; actionlint.🤖 Generated with Claude Code