Skip to content

gsdml: explain modules the catalog leaves out; go-profinet v0.23.0 - #53

Merged
boeboe merged 1 commit into
mainfrom
gsdml/omitted-modules
Nov 24, 2026
Merged

boeboe merged 1 commit into
mainfrom
gsdml/omitted-modules

Conversation

@boeboe

@boeboe boeboe commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

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

  • go-profinet v0.22.0 → v0.23.0. --gsdml and the gsdml commands that build a model now fail with unsupported_gsdml (exit 3) for a DAP whose own submodules or plugged modules include one with FixedInSubslots or UsedInSubslots. 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 with unsupported_gsdml, naming the module and go-profinet's reason (gsdml.ModuleReport.Omitted and ModuleErr), with or without --plug-any-slot. Before, this said "no module type with ident number". An ident the file doesn't have is still invalid_input.
  • gsdml modules: omitted_modules (id, ident_number, reason) in JSON, a section after the usable modules in text, and omitted rows in the table.
  • Docs and release: docs/exitcodes.md, docs/json-output.md, the README, and a RELEASE.md v0.21.0 section, including Breaking.

Tests

  • TestOmittedModule: a GSDML file generated from the test model, with a used configurable submodule on catalog module 0x40. It covers gsdml modules in JSON, text and table output, the file without the submodule, connect --plug with and without --plug-any-slot, gsdml plan --plug, and an unknown ident.
  • TestOmittedModulesOf: a nil document, an empty document, and an unknown DAP.

make check passes (total coverage 95.0%), and every changed line in cmd/ar.go, cmd/gsdml.go and cmd/plan.go is covered locally.

🤖 Generated with Claude Code

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

codecov Bot commented Nov 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@boeboe
boeboe merged commit 1ec9f7a into main Nov 24, 2026
19 checks passed
@boeboe
boeboe deleted the gsdml/omitted-modules branch November 24, 2026 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant