Repository navigation
Port the conformance plugin to Scala 3 and dnp4s main - #453
Merged
Merged
Conversation
dnp4s main is now Scala 3 and its procedures were audited against the DNP3 Level 2 test procedures. Build the plugin against it: - Scala 3.9.0 and scala-maven-plugin 4.10.0 - implement the new IntegrationPlugin methods generateExactClassEvents and reinstallPoints - switch remote supervisory control to local at runtime instead of restarting the outstation; 8.6.4.2 and 8.6.4.3 no longer cycle power after changing the switch, so a restart dropped the harness connection - set timesync.maxTimeBetweenSyncRequestsMs, which 8.15.2 now waits - check out dnp4s main in CI instead of the scala-2.13 branch Results are unchanged: 142 procedures pass and 11 are skipped, the same as with the scala-2.13 branch.
jadamcrain
force-pushed
the
conformance-scala3
branch
from
October 10, 2026 07:20
fbdcd4d to
350def7
Compare
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.
dnp4s
mainis now Scala 3 (3.9 LTS), and its procedures were audited against the DNP3 IED Level 2 test procedures (stepfunc/dnp4s#22). This moves the conformance job off thescala-2.13branch and ontomain.Changes
pom.xml: Scala 3.9.0 and scala-maven-plugin 4.10.0. The plugin source compiles unchanged.IntegrationPluginmethods:generateExactClassEventsuses the existing exact binary input, counter and analog input generators for classes 1, 2 and 3.reinstallPointsclears the uninstall flags and restarts the outstation.device.ini: settimesync.maxTimeBetweenSyncRequestsMs = 5000. Step 23 of 8.15.2 now waits this interval rather thanmaxTimeFromResetToIIN14Ms.maininstead ofscala-2.13.Results
I ran the suite locally against the old and new dnp4s. The results are identical: 142 procedures pass, 11 are skipped and none fail.