-
Notifications
You must be signed in to change notification settings - Fork 31
Fault scope: external Component owns its fault_manager faults (#516) #530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
321cf91
feat(gateway): add external classification to Component model (#516)
bburda fc222fb
feat(gateway): parse component external: key (#516)
bburda 9f19b4c
feat(gateway): merge component external classification across layers …
bburda 77ba9d8
feat(gateway): external Component owns its fault_manager faults (#516)
bburda 933645b
feat(gateway): add external field to XMedkitComponent/XMedkitApp DTOs…
bburda 84a58bd
feat(gateway): surface external classification on component/app REST …
bburda 1416b55
test(gateway): end-to-end external Component fault rollup + wire pari…
bburda 51137b4
docs(gateway): document component external classification (#516)
bburda acbc3a5
docs(gateway): scope external DTO comment to primary routes and fix t…
bburda 1b6f98c
test(gateway): match example-manifest header convention and locate ma…
bburda 43b2609
feat(gateway): emit external on relationship routes, centralize the w…
bburda File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
71 changes: 71 additions & 0 deletions
71
src/ros2_medkit_gateway/config/examples/external_component_fault_manifest.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| # SOVD System Manifest: External-component fault-rollup fixture (#516) | ||
| # ==================================================================== | ||
| # An external Component (a PLC bridged into SOVD | ||
| # by a protocol plugin) owns its fault_manager faults with NO child App located | ||
| # on it. Mirrors the #517 external-App fixture but at the Component level. Also | ||
| # carries AAS-Nameplate identity to confirm identity is orthogonal to the | ||
| # external classification, and an internal (ROS) Component as the guardrail. | ||
| # | ||
| # `plc-diag` is a separate external App used only to pin App external wire | ||
| # parity (test_external_flag_and_identity_on_the_wire) - it is deliberately NOT | ||
| # `is_located_on: s7-plc`. Locating it on the Component would give | ||
| # `s7-plc` a contributing child app, and per the fault-scope rule | ||
| # (ResolveEntitySourceFqnsTest.ExternalComponentWithContributingAppKeepsAppScope) | ||
| # the component's fault scope would then resolve to the app's id/FQN instead of | ||
| # falling back to the component's own bare id | ||
| # (ResolveEntitySourceFqnsTest.ExternalComponentWithNoAppsOwnsFaultsUnderItsOwnId), | ||
| # which would silently break the component/function/area rollup this fixture | ||
| # exists to pin. | ||
| # | ||
| # Used by: test/features/test_external_component_fault_rollup.test.py | ||
| manifest_version: "1.0" | ||
|
|
||
| metadata: | ||
| name: "external-component-fault-rollup" | ||
| version: "1.0.0" | ||
| description: "External (non-ROS) Component fault-rollup fixture (#516)" | ||
|
|
||
| config: | ||
| unmanifested_nodes: warn | ||
| inherit_runtime_resources: true | ||
|
|
||
| areas: | ||
| - id: plc-cell | ||
| name: "PLC Cell" | ||
| namespace: /plc_cell | ||
| description: "Industrial cell hosting a PLC bridged into SOVD" | ||
|
|
||
| components: | ||
| - id: s7-plc | ||
| name: "Siemens S7 PLC" | ||
| type: "controller" | ||
| area: plc-cell | ||
| external: true | ||
| description: "Non-ROS PLC introspected by a protocol plugin; owns its faults" | ||
| identity: | ||
| manufacturer: "Siemens" | ||
| model: "S7-1500" | ||
| order_code: "6ES7515-2AM02-0AB0" | ||
| serial_number: "SN-PLC-0001" | ||
| role: "plc" | ||
| - id: nav-controller | ||
| name: "Nav Controller" | ||
| type: "controller" | ||
| area: plc-cell | ||
| description: "Internal ROS component (guardrail: must NOT own bare-id faults)" | ||
| identity: | ||
| manufacturer: "Acme" | ||
| model: "NavCtl-1" | ||
|
|
||
| apps: | ||
| - id: plc-diag | ||
| name: "PLC Diagnostics" | ||
| external: true | ||
| description: "External diagnostic app (guards App external wire parity); not located on s7-plc on purpose (see header)" | ||
|
|
||
| functions: | ||
| - id: material_flow | ||
| name: "Material Flow" | ||
| category: "process" | ||
| hosted_by: | ||
| - s7-plc |
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.