Skip to content

Adding a new ready condition FileState - #402

Open
MaciejKaszynski wants to merge 3 commits into
eclipse-score:mainfrom
etas-contrib:new-file-state-config
Open

Adding a new ready condition FileState#402
MaciejKaszynski wants to merge 3 commits into
eclipse-score:mainfrom
etas-contrib:new-file-state-config

Conversation

@MaciejKaszynski

Copy link
Copy Markdown
Contributor

Adding a new ready condition for file state.

E.g. a component like "setup network" can wait for some /dev/<network file> to make the component active. Then Later components can depend on this.

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

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.6.0) and connecting to it...
INFO: Invocation ID: 16839d90-166a-4ae3-85ac-d4f27590cc5f
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
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: 
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 (39 packages loaded, 10 targets configured)

Analyzing: target //:license-check (88 packages loaded, 10 targets configured)

Analyzing: target //:license-check (147 packages loaded, 2363 targets configured)

Analyzing: target //:license-check (159 packages loaded, 6264 targets configured)

Analyzing: target //:license-check (164 packages loaded, 6285 targets configured)

Analyzing: target //:license-check (169 packages loaded, 6334 targets configured)

Analyzing: target //:license-check (173 packages loaded, 9569 targets configured)

Analyzing: target //:license-check (176 packages loaded, 11463 targets configured)

INFO: Analyzed target //:license-check (177 packages loaded, 11589 targets configured).

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: 24.125s, Critical Path: 0.26s
INFO: 16 processes: 4 disk cache hit, 12 internal.
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

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

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

@MaciejKaszynski MaciejKaszynski changed the title Adding new config field Adding a new ready condition FileState Aug 3, 2026
Comment thread score/launch_manager/docs/user_guide/configuration.rst Outdated
Comment thread score/launch_manager/docs/user_guide/configuration.rst
Comment thread score/launch_manager/src/daemon/src/configuration/config.hpp Outdated
Comment thread score/launch_manager/docs/user_guide/configuration.rst
Comment thread score/launch_manager/docs/user_guide/configuration.rst Outdated
Comment thread score/launch_manager/src/daemon/src/configuration/configuration_adapter.cpp Outdated
@MaciejKaszynski
MaciejKaszynski requested a review from danth August 13, 2026 09:11
Comment thread score/launch_manager/docs/user_guide/configuration.rst Outdated
@MaciejKaszynski
MaciejKaszynski deployed to workflow-approval August 13, 2026 14:16 — with GitHub Actions Active
@MaciejKaszynski
MaciejKaszynski deployed to workflow-approval August 13, 2026 14:16 — with GitHub Actions Active

@SimonKozik SimonKozik left a comment

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.

JSON schema looks good

table ReadyCondition {
process_state:ProcessState = null; // required
// Required state of the component's POSIX process.
process_state:ProcessState = null; // 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.

Suggested change
process_state:ProcessState = null; // optional
process_state:ProcessState; // optional

optional non-scalar values are currently all defined without "= null" in this schema because flatbuffer will just return nullptr if not configured which can be used for checking.

Its a bit counter intuitive, but the "= null" is used here for required scalar values so that it can be verified in the code that they have been configured (if they are just marked as required, then flatbuffer will return a default value and its not detectable if they have actually been configured or not).

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.

So I think the behavior we want is to be able to either configure process_state or file_state (might want more than one in the future but for now just one).
I think since ProcessState is an enum so a scalar value and I do not get a ptr so can't do it this way from what I see.

Comment thread score/launch_manager/src/daemon/src/configuration/configuration_adapter_UT.cpp Outdated
@anmittag

Copy link
Copy Markdown
Member

@MaciejKaszynski a) branch is outdated b) some review comments are open

can you please update accordingly?

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.

5 participants