-
Notifications
You must be signed in to change notification settings - Fork 17
Schema documentation #114
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
SimonKozik
wants to merge
21
commits into
eclipse-score:main
Choose a base branch
from
etas-contrib:feature/schema_documentation
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.
Open
Schema documentation #114
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
020f040
First version of of documentation
SimonKozik 50f14bb
Fixing lists rendering
SimonKozik 72634c3
Fixing remaining problems with lists rendering
SimonKozik c4fd068
Adding default values provided by S-CORE standard
SimonKozik 6779bf0
Adding description of examples
SimonKozik 3c4d66c
Attempting to fix image path
SimonKozik 7e40afb
Trying to fix problem where image is not displayed
SimonKozik 71482ef
Updating readme file with info about things added in this PR
SimonKozik 33d0814
Cosmetic changes
SimonKozik d2281ab
Adding information about unconfigured fallback_run_target
SimonKozik 857828f
Adding links between documents
SimonKozik 2eb7e56
Changing file format for pictures, as per review comment
SimonKozik 80c6dda
Adding reference labels for each section
SimonKozik 35d1a33
Fixing spelling mistake in default values
SimonKozik 49752c7
Updating default values to match schema documentation
SimonKozik 941fc09
Updating default recovery action, as per review comment
SimonKozik ca146f4
Adding possibility to disable watchdog, as per review comment
SimonKozik 596e517
Adding extra clarification and rearranging text, as per review comment
SimonKozik c7449c0
Renaming schema file as per review comment
SimonKozik 8f6e598
Fixing usage of the old schema name after branch rebase
SimonKozik dcf306a
Fixing old value in the documentation
SimonKozik 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
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
5 changes: 5 additions & 0 deletions
5
...launch_manager_daemon/config/config_schema/default_values/alive_supervision_defaults.json
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,5 @@ | ||
| { | ||
| "alive_supervision" : { | ||
| "evaluation_cycle": 0.5 | ||
| } | ||
| } |
20 changes: 20 additions & 0 deletions
20
...nch_manager_daemon/config/config_schema/default_values/component_properties_defaults.json
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,20 @@ | ||
| { | ||
| "component_properties": { | ||
| "binary_name": "", | ||
| "application_profile": { | ||
| "application_type": "Reporting_And_Supervised", | ||
| "is_self_terminating": false, | ||
| "alive_supervision": { | ||
| "reporting_cycle": 0.5, | ||
| "failed_cycles_tolerance": 2, | ||
| "min_indications": 1, | ||
| "max_indications": 3 | ||
| } | ||
| }, | ||
| "depends_on": [], | ||
| "process_arguments": [], | ||
| "ready_condition": { | ||
| "process_state": "Running" | ||
| } | ||
| } | ||
| } |
28 changes: 28 additions & 0 deletions
28
...launch_manager_daemon/config/config_schema/default_values/deployment_config_defaults.json
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,28 @@ | ||
| { | ||
| "deployment_config": { | ||
| "ready_timeout": 0.5, | ||
| "shutdown_timeout": 0.5, | ||
| "environmental_variables": {}, | ||
| "bin_dir": "/opt", | ||
| "working_dir": "/tmp", | ||
| "ready_recovery_action": { | ||
| "restart": { | ||
| "number_of_attempts": 0, | ||
| "delay_before_restart": 0 | ||
| } | ||
| }, | ||
| "recovery_action": { | ||
| "switch_run_target": { | ||
| "run_target": "fallback_run_target" | ||
| } | ||
| }, | ||
| "sandbox": { | ||
| "uid": 1000, | ||
| "gid": 1000, | ||
| "supplementary_group_ids": [], | ||
| "security_policy": "", | ||
| "scheduling_policy": "SCHED_OTHER", | ||
| "scheduling_priority": 0 | ||
| } | ||
| } | ||
| } |
12 changes: 12 additions & 0 deletions
12
src/launch_manager_daemon/config/config_schema/default_values/run_target_defaults.json
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,12 @@ | ||
| { | ||
| "run_target": { | ||
| "description": "", | ||
| "depends_on": [], | ||
| "transition_timeout": 3, | ||
| "recovery_action": { | ||
| "switch_run_target": { | ||
| "run_target": "fallback_run_target" | ||
| } | ||
| } | ||
| } | ||
| } |
3 changes: 3 additions & 0 deletions
3
src/launch_manager_daemon/config/config_schema/default_values/watchdog_defaults.json
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,3 @@ | ||
| { | ||
| "watchdog": {} | ||
| } |
34 changes: 34 additions & 0 deletions
34
src/launch_manager_daemon/config/config_schema/docs/examples.rst
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,34 @@ | ||
| .. | ||
| # ******************************************************************************* | ||
| # Copyright (c) 2026 Contributors to the Eclipse Foundation | ||
| # | ||
| # See the NOTICE file(s) distributed with this work for additional | ||
| # information regarding copyright ownership. | ||
| # | ||
| # This program and the accompanying materials are made available under the | ||
| # terms of the Apache License Version 2.0 which is available at | ||
| # https://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # ******************************************************************************* | ||
|
|
||
| Configuration Examples | ||
| ###################### | ||
|
|
||
| This document provides a set of configuration examples that come with the **Launch Manager** schema. These examples are designed to show common ways to use **Launch Manager** and to demonstrate how configurations should be structured. They serve as practical guides, helping users understand how to apply various features effectively. | ||
|
|
||
| `example_conf.json` | ||
| ******************* | ||
|
|
||
| The `example_conf.json` file is a fundamental example within the **Launch Manager** system. While it presents a relatively simple setup, its main goal is to clearly show the key ideas behind defining a **Run Target**, specifying its individual **Components**, and setting up how they depend on each other. | ||
|
|
||
| Users can examine this basic example to understand the core principles. These principles can then be scaled and applied to build much more elaborate **Launch Manager** configurations, effectively managing even the most complex application setups. | ||
|
|
||
| A high-level overview of this configuration, which highlights its dependencies, is shown below: | ||
|
|
||
| .. figure:: images/example_conf_graph.svg | ||
| :alt: Graphical representation of example configuration | ||
| :width: 70% | ||
| :align: center | ||
|
|
||
| Dependency graph for example_conf.json |
81 changes: 81 additions & 0 deletions
81
src/launch_manager_daemon/config/config_schema/docs/images/example_conf_graph.drawio
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,81 @@ | ||
| <mxfile> | ||
| <diagram name="Seite-1" id="8TxOx58P-o2VodMCP5Yr"> | ||
| <mxGraphModel dx="1366" dy="796" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" background="#ffffff" math="0" shadow="0"> | ||
| <root> | ||
| <mxCell id="0" /> | ||
| <mxCell id="1" parent="0" /> | ||
| <mxCell id="1qNC7CyFBQH27r0SmDnI-17" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="1qNC7CyFBQH27r0SmDnI-9" target="1qNC7CyFBQH27r0SmDnI-16"> | ||
| <mxGeometry relative="1" as="geometry" /> | ||
| </mxCell> | ||
| <mxCell id="1qNC7CyFBQH27r0SmDnI-19" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="1qNC7CyFBQH27r0SmDnI-9" target="1qNC7CyFBQH27r0SmDnI-10"> | ||
| <mxGeometry relative="1" as="geometry" /> | ||
| </mxCell> | ||
| <mxCell id="1qNC7CyFBQH27r0SmDnI-9" value="Full" style="ellipse;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1"> | ||
| <mxGeometry x="250" y="1050" width="120" height="80" as="geometry" /> | ||
| </mxCell> | ||
| <mxCell id="1qNC7CyFBQH27r0SmDnI-13" style="rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="1qNC7CyFBQH27r0SmDnI-10" target="1qNC7CyFBQH27r0SmDnI-11"> | ||
| <mxGeometry relative="1" as="geometry" /> | ||
| </mxCell> | ||
| <mxCell id="1qNC7CyFBQH27r0SmDnI-14" value="Running" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="1qNC7CyFBQH27r0SmDnI-13"> | ||
| <mxGeometry x="-0.3481" y="3" relative="1" as="geometry"> | ||
| <mxPoint x="-3" y="7" as="offset" /> | ||
| </mxGeometry> | ||
| </mxCell> | ||
| <mxCell id="1qNC7CyFBQH27r0SmDnI-31" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="1qNC7CyFBQH27r0SmDnI-10" target="1qNC7CyFBQH27r0SmDnI-27"> | ||
| <mxGeometry relative="1" as="geometry" /> | ||
| </mxCell> | ||
| <mxCell id="1qNC7CyFBQH27r0SmDnI-32" value="Running" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="1qNC7CyFBQH27r0SmDnI-31"> | ||
| <mxGeometry x="0.5161" y="3" relative="1" as="geometry"> | ||
| <mxPoint as="offset" /> | ||
| </mxGeometry> | ||
| </mxCell> | ||
| <mxCell id="1qNC7CyFBQH27r0SmDnI-10" value="test_app1" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1"> | ||
| <mxGeometry x="250" y="1190" width="120" height="60" as="geometry" /> | ||
| </mxCell> | ||
| <mxCell id="1qNC7CyFBQH27r0SmDnI-11" value="dlt-daemon" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1"> | ||
| <mxGeometry x="250" y="1320" width="120" height="60" as="geometry" /> | ||
| </mxCell> | ||
| <mxCell id="1qNC7CyFBQH27r0SmDnI-12" value="setup_filesystem_sh" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1"> | ||
| <mxGeometry x="250" y="1450" width="120" height="60" as="geometry" /> | ||
| </mxCell> | ||
| <mxCell id="1qNC7CyFBQH27r0SmDnI-28" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="1" source="1qNC7CyFBQH27r0SmDnI-15" target="1qNC7CyFBQH27r0SmDnI-12"> | ||
| <mxGeometry relative="1" as="geometry" /> | ||
| </mxCell> | ||
| <mxCell id="1qNC7CyFBQH27r0SmDnI-29" value="Terminated" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="1qNC7CyFBQH27r0SmDnI-28"> | ||
| <mxGeometry x="0.1789" y="-1" relative="1" as="geometry"> | ||
| <mxPoint x="22" y="-1" as="offset" /> | ||
| </mxGeometry> | ||
| </mxCell> | ||
| <mxCell id="1qNC7CyFBQH27r0SmDnI-15" value="state_manager" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1"> | ||
| <mxGeometry x="60" y="1320" width="120" height="60" as="geometry" /> | ||
| </mxCell> | ||
| <mxCell id="1qNC7CyFBQH27r0SmDnI-18" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="1qNC7CyFBQH27r0SmDnI-16" target="1qNC7CyFBQH27r0SmDnI-15"> | ||
| <mxGeometry relative="1" as="geometry" /> | ||
| </mxCell> | ||
| <mxCell id="1qNC7CyFBQH27r0SmDnI-16" value="Minimal" style="ellipse;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1"> | ||
| <mxGeometry x="60" y="1150" width="120" height="80" as="geometry" /> | ||
| </mxCell> | ||
| <mxCell id="1qNC7CyFBQH27r0SmDnI-20" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="1" source="1qNC7CyFBQH27r0SmDnI-11" target="1qNC7CyFBQH27r0SmDnI-12"> | ||
| <mxGeometry relative="1" as="geometry" /> | ||
| </mxCell> | ||
| <mxCell id="1qNC7CyFBQH27r0SmDnI-22" value="Terminated" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="1qNC7CyFBQH27r0SmDnI-20"> | ||
| <mxGeometry x="-0.7005" relative="1" as="geometry"> | ||
| <mxPoint y="20" as="offset" /> | ||
| </mxGeometry> | ||
| </mxCell> | ||
| <mxCell id="1qNC7CyFBQH27r0SmDnI-27" value="someip-daemon" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1"> | ||
| <mxGeometry x="420" y="1320" width="120" height="60" as="geometry" /> | ||
| </mxCell> | ||
| <mxCell id="1qNC7CyFBQH27r0SmDnI-34" value="RunTarget" style="ellipse;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1"> | ||
| <mxGeometry x="20" y="1600" width="120" height="80" as="geometry" /> | ||
| </mxCell> | ||
| <mxCell id="1qNC7CyFBQH27r0SmDnI-35" value="Component" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1"> | ||
| <mxGeometry x="150" y="1610" width="120" height="60" as="geometry" /> | ||
| </mxCell> | ||
| <mxCell id="1qNC7CyFBQH27r0SmDnI-36" value="Legend" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontStyle=1;fontSize=15;" vertex="1" parent="1"> | ||
| <mxGeometry x="15" y="1560" width="80" height="30" as="geometry" /> | ||
| </mxCell> | ||
| </root> | ||
| </mxGraphModel> | ||
| </diagram> | ||
| </mxfile> |
4 changes: 4 additions & 0 deletions
4
src/launch_manager_daemon/config/config_schema/docs/images/example_conf_graph.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please save drawio fiel as drawio.svg so you have single file displayed as svg and also metadata