-
Notifications
You must be signed in to change notification settings - Fork 25
Launch Manager loads the new configuration file #248
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
paulquiring
wants to merge
9
commits into
eclipse-score:main
Choose a base branch
from
etas-contrib:feature/lm-use-new-configuration
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
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
39d87dc
Half done
paulquiring eb807a1
Before self review
paulquiring c2e120c
Add tests
paulquiring ea6a884
applied suggestions from review
paulquiring 33b323a
Merge branch 'main' into feature/lm-use-new-configuration
paulquiring a5b69ec
Fix CI issues
paulquiring 3276a84
Fix some findings
paulquiring 5562109
Merge branch 'main' into feature/lm-use-new-configuration
paulquiring 1bc241c
Apply suggtestions from reivew
paulquiring 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| .. | ||
| # ******************************************************************************* | ||
| # 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 | ||
| # ******************************************************************************* | ||
| Getting Started | ||
| ############### | ||
|
|
||
| This guide walks through creating a minimal Launch Manager configuration and running the | ||
| daemon for the first time. | ||
|
|
||
| Configuration | ||
| ************* | ||
|
|
||
| The Launch Manager reads its configuration from a FlatBuffers binary file. When building | ||
| with Bazel, the ``launch_manager_config`` rule handles the conversion from a human-readable | ||
| JSON file to the binary format automatically. | ||
|
|
||
| Bazel Build Rule | ||
| ================ | ||
|
|
||
| Add a ``launch_manager_config`` target to your ``BUILD`` file: | ||
|
|
||
| .. code-block:: starlark | ||
| load("//:defs.bzl", "launch_manager_config") | ||
| launch_manager_config( | ||
| name = "my_config", | ||
| config = ":my_config.json", | ||
| flatbuffer_out_dir = "etc", | ||
| ) | ||
| Write a Configuration File | ||
| ========================== | ||
|
|
||
| Create a JSON configuration file that describes the components to launch, the run targets, | ||
| and the alive supervision settings. | ||
|
|
||
| .. dropdown:: Example configuration (lifecycle_demo_test.json) | ||
|
|
||
| .. literalinclude:: ../../../../examples/demo_verification/lifecycle_demo_test.json | ||
| :language: json | ||
|
|
||
| For a full description of all available fields see :doc:`configuration`. | ||
|
|
||
| Running the Launch Manager | ||
| ************************** | ||
|
|
||
| Start the daemon by pointing it at the generated FlatBuffers binary with the ``-c`` option: | ||
|
|
||
| .. code-block:: bash | ||
| launch_manager -c etc/my_config_gen.bin | ||
| Command-line Options | ||
| ==================== | ||
|
|
||
| .. code-block:: text | ||
| Usage: launch_manager [-c <config>] [-h] | ||
| Options: | ||
| -c <config> Path to the flatbuffer config binary. | ||
| Default: etc/launch_manager_config_gen.bin | ||
| -h Print this help and exit. | ||
| Passing an unknown option prints the usage line and exits with a non-zero exit code. |
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 |
|---|---|---|
|
|
@@ -17,6 +17,7 @@ User Guide | |
|
|
||
| .. toctree:: | ||
|
|
||
| getting_started.rst | ||
| concepts.rst | ||
| ready_state.rst | ||
| configuration.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
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
68 changes: 0 additions & 68 deletions
68
score/launch_manager/src/daemon/src/alive_monitor/config/hm_flatcfg.fbs
This file was deleted.
Oops, something went wrong.
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.
move this to the correct location
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.
done