-
Notifications
You must be signed in to change notification settings - Fork 31
fix(gateway): preserve plugin App external flag through hybrid merge #522
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
Open
bburda
wants to merge
3
commits into
main
Choose a base branch
from
fix/hybrid-merge-drops-external-flag
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+590
−44
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
63 changes: 63 additions & 0 deletions
63
src/ros2_medkit_gateway/config/examples/external_app_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,63 @@ | ||
| # SOVD System Manifest: External-app fault-rollup fixture (#517) | ||
| # ============================================================== | ||
| # Minimal hybrid-mode manifest that models a non-ROS asset (a PLC bridged into | ||
| # SOVD by a protocol plugin) as an external App. The App has external: true and | ||
| # reports faults to the fault_manager under its own entity id rather than a ROS | ||
| # FQN. Fault-scope resolution must recognise that bare id on the App route and | ||
| # on every aggregate route that rolls it up (component, function, area) - #517 | ||
| # was the fault scope pointing at a live FQN instead of the bare id, which | ||
| # silently emptied those rollups. | ||
| # | ||
| # The App deliberately also carries a ros_binding (the #517 "neighbor" case): a | ||
| # manifest may declare a binding while a protocol plugin classifies the asset | ||
| # external. effective_fqn() then derives a live FQN "/plc/plc_process", so a | ||
| # fault scope that used the FQN would drop the app's faults (reported under the | ||
| # bare id). The external classification must win - the app is scoped by its | ||
| # entity id. This also raises validation warning R013 (external + ros_binding). | ||
| # | ||
| # Used by: test/features/test_external_app_fault_rollup.test.py | ||
|
|
||
| manifest_version: "1.0" | ||
|
|
||
| metadata: | ||
| name: "external-app-fault-rollup" | ||
| version: "1.0.0" | ||
| description: "External (non-ROS) app fault-rollup regression fixture (#517)" | ||
|
|
||
| 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 | ||
| description: "Non-ROS PLC introspected by a protocol plugin" | ||
|
|
||
| apps: | ||
| - id: plc-process | ||
| name: "PLC Process" | ||
| external: true | ||
| is_located_on: s7-plc | ||
| description: "Non-ROS process bridged into SOVD; reports faults under its entity id" | ||
| # Stray binding (#517 neighbor case): effective_fqn() would derive | ||
| # "/plc/plc_process", but the external classification must win so fault | ||
| # scope stays the bare id "plc-process". | ||
| ros_binding: | ||
| node_name: plc_process | ||
| namespace: /plc | ||
|
|
||
| functions: | ||
| - id: level-control | ||
| name: "Level Control" | ||
| category: "control" | ||
| description: "Level control capability hosted by the PLC process" | ||
| hosted_by: | ||
| - plc-process |
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
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.