Repository navigation
gsdml: explain modules the catalog leaves out; go-profinet v0.23.0 - #53
Merged
Merged
Conversation
go-profinet v0.23.0 refuses a device access point that needs configurable submodules and leaves a catalog module that needs one out of the catalog. gsdml modules lists those modules with go-profinet's reason (omitted_modules), and --plug of one fails with unsupported_gsdml naming the module and the reason, instead of an unknown ident. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
This builds on go-profinet v0.23.0, which refuses configurations that need configurable submodules (
UseableSubmodules) and leaves catalog modules that need one out of the catalog.Changes
--gsdmland thegsdmlcommands that build a model now fail withunsupported_gsdml(exit 3) for a DAP whose own submodules or plugged modules include one withFixedInSubslotsorUsedInSubslots. Such a file was accepted before and gave a model without those submodules.--plug SLOT=IDENT(connect, the AR commands,gsdml plan): plugging an omitted module fails withunsupported_gsdml, naming the module and go-profinet's reason (gsdml.ModuleReport.OmittedandModuleErr), with or without--plug-any-slot. Before, this said "no module type with ident number". An ident the file doesn't have is stillinvalid_input.gsdml modules:omitted_modules(id,ident_number,reason) in JSON, a section after the usable modules in text, andomittedrows in the table.Tests
TestOmittedModule: a GSDML file generated from the test model, with a used configurable submodule on catalog module 0x40. It coversgsdml modulesin JSON, text and table output, the file without the submodule,connect --plugwith and without--plug-any-slot,gsdml plan --plug, and an unknown ident.TestOmittedModulesOf: a nil document, an empty document, and an unknown DAP.make checkpasses (total coverage 95.0%), and every changed line incmd/ar.go,cmd/gsdml.goandcmd/plan.gois covered locally.🤖 Generated with Claude Code