Skip to content

Schema documentation#114

Open
SimonKozik wants to merge 21 commits intoeclipse-score:mainfrom
etas-contrib:feature/schema_documentation
Open

Schema documentation#114
SimonKozik wants to merge 21 commits intoeclipse-score:mainfrom
etas-contrib:feature/schema_documentation

Conversation

@SimonKozik
Copy link
Copy Markdown
Contributor

This pull request followup on #88 and provide documentation for JSON schema.

Part of #38

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 11, 2026

License Check Results

🚀 The license check job ran with the Bazel command:

bazel run --lockfile_mode=error //:license-check

Status: ⚠️ Needs Review

Click to expand output
[License Check Output]
Extracting Bazel installation...
Starting local Bazel server (8.4.2) and connecting to it...
INFO: Invocation ID: c4a3445d-8c69-4552-8f82-82b43772267e
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
WARNING: For repository 'score_rust_policies', the root module requires module version score_rust_policies@0.0.3, but got score_rust_policies@0.0.5 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
    currently loading: 
Loading: 0 packages loaded
    currently loading: 
Loading: 0 packages loaded
    currently loading: 
Analyzing: target //:license-check (1 packages loaded, 0 targets configured)
Analyzing: target //:license-check (1 packages loaded, 0 targets configured)

Analyzing: target //:license-check (52 packages loaded, 9 targets configured)

Analyzing: target //:license-check (89 packages loaded, 9 targets configured)

Analyzing: target //:license-check (145 packages loaded, 2642 targets configured)

Analyzing: target //:license-check (153 packages loaded, 5687 targets configured)

Analyzing: target //:license-check (160 packages loaded, 7852 targets configured)

Analyzing: target //:license-check (165 packages loaded, 7901 targets configured)

Analyzing: target //:license-check (166 packages loaded, 8025 targets configured)

INFO: Analyzed target //:license-check (170 packages loaded, 10039 targets configured).
[3 / 14] checking cached actions
[13 / 16] JavaToolchainCompileClasses external/rules_java+/toolchains/platformclasspath_classes; 0s disk-cache, processwrapper-sandbox
[14 / 16] JavaToolchainCompileBootClasspath external/rules_java+/toolchains/platformclasspath.jar; 0s disk-cache, processwrapper-sandbox
INFO: Found 1 target...
Target //:license.check.license_check up-to-date:
  bazel-bin/license.check.license_check
  bazel-bin/license.check.license_check.jar
INFO: Elapsed time: 26.577s, Critical Path: 2.63s
INFO: 16 processes: 12 internal, 3 processwrapper-sandbox, 1 worker.
INFO: Build completed successfully, 16 total actions
INFO: Running command line: bazel-bin/license.check.license_check ./formatted.txt <args omitted>
usage: org.eclipse.dash.licenses.cli.Main [-batch <int>] [-cd <url>]
       [-confidence <int>] [-ef <url>] [-excludeSources <sources>] [-help] [-lic
       <url>] [-project <shortname>] [-repo <url>] [-review] [-summary <file>]
       [-timeout <seconds>] [-token <token>]

@github-actions
Copy link
Copy Markdown

The created documentation from the pull request is available at: docu-html

@SimonKozik SimonKozik temporarily deployed to workflow-approval March 13, 2026 14:23 — with GitHub Actions Inactive
@SimonKozik SimonKozik temporarily deployed to workflow-approval March 13, 2026 14:23 — with GitHub Actions Inactive
@SimonKozik SimonKozik temporarily deployed to workflow-approval March 13, 2026 14:51 — with GitHub Actions Inactive
@SimonKozik SimonKozik temporarily deployed to workflow-approval March 13, 2026 14:51 — with GitHub Actions Inactive
Copy link
Copy Markdown
Contributor

@MaciejKaszynski MaciejKaszynski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

Copy link
Copy Markdown
Contributor

@paulquiring paulquiring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very concise and detailed. One comment: I feel that someone without prior knowledge of this topic would need a bit more information. I left a proposal in the comments.

A single component might be deployed across several different systems. To facilitate this, the specific deployment configuration (how and where a component runs) is intentionally kept separate from the inherent properties of the component itself. This separation promotes flexibility and reusability.

.. _lm_conf_run_targets_grouping_and_components_activation:
Run Targets: Grouping and Components Activation
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get the feeling that someone with no prior knowledge of this topic would need a little more information.

Just adding one more paragraph and moving around the paragraphs, would help.

  1. Run Targets: Grouping and Components Activation -> Run Targets: Modelling the system
    Explain active, (un)assigned

  2. Right after "When the Launch Manager Starts a Component" you could move "Run Targets: Grouping and Components Activation" as is.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes applied, finger cross it reads better now and is more understandable.

@@ -0,0 +1,8 @@
{
"watchdog": {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should not by default configure this watchdog.
For /dev/watchdog to be available you require a resource manager / kernel driver that sets this up.
If we have this as default configured, users will likely stumble upon this as LaunchManager will not startup because the /dev/watchdog is not available

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per discussion earlier, possibility to disable watchdog is now added.

},
"recovery_action": {
"switch_run_target": {
"run_target": "Off"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be fallback_run_target?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be resolved now


The S-CORE standard provides the following default values for ``watchdog`` properties if they are not explicitly defined elsewhere:

.. code-block:: json
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would recommend to have the default values either here or to include the files from the default_values folder, but I would like to avoid having the same information in two locations.

@@ -0,0 +1,596 @@
..
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we please integrate this into the lifecycle documentation build?

@NicolasFussberger
Copy link
Copy Markdown
Contributor

Please consider this comment from @pawelrutkaq #110 (comment)

lets remove s-core from name. makse no sens imho. and it even wors with - and _ mixup


**Properties:**

* **device_file_path** (string, optional)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like most of the properties text is copy/paste from the description that is already in the schema file.
If anyone changes the schema file, they may forget to update this copy or vice versa.
Therefore, I would prefer to avoid duplication.
I would recommend to either simply refer to the schema file and only adding additional information here or including sections of the schema if that is possible (e.g. using rst include)

@SimonKozik SimonKozik force-pushed the feature/schema_documentation branch from 37b8657 to 8f6e598 Compare March 24, 2026 09:33
Copy link
Copy Markdown
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

6 participants