Removing Config Adapter - #455
Open
MaciejKaszynski wants to merge 15 commits into
Open
Conversation
MaciejKaszynski
requested a deployment
to
workflow-approval
August 12, 2026 08:17 — with
GitHub Actions
Waiting
MaciejKaszynski
requested a deployment
to
workflow-approval
August 12, 2026 08:17 — with
GitHub Actions
Waiting
MaciejKaszynski
requested a deployment
to
workflow-approval
August 13, 2026 07:13 — with
GitHub Actions
Waiting
MaciejKaszynski
requested a deployment
to
workflow-approval
August 13, 2026 07:13 — with
GitHub Actions
Waiting
License Check Results🚀 The license check job ran with the Bazel command: bazel run --lockfile_mode=error //:license-checkStatus: Click to expand output |
MaciejKaszynski
force-pushed
the
new-config
branch
from
August 13, 2026 09:15
48210c0 to
84721b9
Compare
MaciejKaszynski
requested a deployment
to
workflow-approval
August 13, 2026 09:15 — with
GitHub Actions
Waiting
MaciejKaszynski
requested a deployment
to
workflow-approval
August 13, 2026 09:15 — with
GitHub Actions
Waiting
MaciejKaszynski
requested a deployment
to
workflow-approval
August 13, 2026 14:26 — with
GitHub Actions
Waiting
MaciejKaszynski
requested a deployment
to
workflow-approval
August 13, 2026 14:26 — with
GitHub Actions
Waiting
MaciejKaszynski
requested a deployment
to
workflow-approval
August 14, 2026 08:24 — with
GitHub Actions
Waiting
MaciejKaszynski
requested a deployment
to
workflow-approval
August 14, 2026 08:24 — with
GitHub Actions
Waiting
MaciejKaszynski
requested a deployment
to
workflow-approval
August 14, 2026 08:28 — with
GitHub Actions
Waiting
MaciejKaszynski
requested a deployment
to
workflow-approval
August 14, 2026 08:28 — with
GitHub Actions
Waiting
MaciejKaszynski
requested a deployment
to
workflow-approval
August 14, 2026 10:51 — with
GitHub Actions
Waiting
MaciejKaszynski
requested a deployment
to
workflow-approval
August 14, 2026 10:51 — with
GitHub Actions
Waiting
MaciejKaszynski
requested a deployment
to
workflow-approval
August 14, 2026 14:24 — with
GitHub Actions
Waiting
MaciejKaszynski
requested a deployment
to
workflow-approval
August 14, 2026 14:24 — with
GitHub Actions
Waiting
MaciejKaszynski
marked this pull request as ready for review
August 14, 2026 14:24
MaciejKaszynski
requested review from
FScholPer,
NicolasFussberger,
anmittag,
antonkri,
pawelrutkaq and
ramceb
as code owners
August 14, 2026 14:24
|
The created documentation from the pull request is available at: docu-html |
danth
reviewed
Aug 14, 2026
| { | ||
| score::concurrency::InterruptibleFuture<void> retVal_{}; | ||
|
|
||
| std::cout << "Setting state " << pg_name << pg_state << std::endl; |
Member
There was a problem hiding this comment.
Use LM_LOG_DEBUG, or remove this.
| ISupervisionEventPublisher& supervision_event_publisher, | ||
| osal::IProcess* process_interface, | ||
| std::shared_ptr<SafeProcessMapInserter> process_map, | ||
| std::unordered_map<std::size_t, GraphIndex>& run_target_map) |
|
|
||
| LM_LOG_DEBUG() << "Process group index" << index << "(with name" << pg_name << ") has" << num_processes | ||
| << "processes"; | ||
| DependencyGraph<Graph::Component> graph(components.size() + run_targets.size() + 1); |
Member
There was a problem hiding this comment.
Should we add a comment explaining why the + 1 is necessary?
| component_name_to_index[component_name] = index; | ||
|
|
||
| // all of this relies on graphindex having sequential indexes | ||
| // TODO use IdHash later... |
Member
There was a problem hiding this comment.
Maybe add a link to #463 and explain that this method will be simplified after that change.
| { | ||
| return static_cast<int32_t>(index); | ||
| auto it = component_name_to_index.find(dep_name); | ||
| LM_LOG_ERROR() << run_targets[i].name << "HAS DEP TO " << dep_name; |
Member
There was a problem hiding this comment.
Suggested change
| LM_LOG_ERROR() << run_targets[i].name << "HAS DEP TO " << dep_name; | |
| LM_LOG_DEBUG() << run_targets[i].name << "HAS DEP TO " << dep_name; |
Comment on lines
+27
to
+28
| #include <ios> | ||
| #include <iostream> |
| // Wait for process group states to change while actively draining shutdown events. | ||
| if (!graph_) | ||
| { | ||
| return; |
Comment on lines
+492
to
+497
| LM_LOG_DEBUG() << "HERER++++++++"; | ||
| // Now process the request | ||
| switch (scc->request().request_or_response_) | ||
| { | ||
| case ControlClientCode::kSetStateRequest: | ||
| LM_LOG_DEBUG() << "HERER++++++++"; |
Comment on lines
+716
to
+717
| // TODO: Determine recovery state from configuration | ||
| recovery_state.pg_state_name_ = IdentifierHash("fallback"); // TODO: Get from configuration |
| SCORE_LANGUAGE_FUTURECPP_PRECONDITION_MESSAGE( | ||
| it != component_name_to_index.end(), "RunTarget dependency not found in component list"); | ||
|
|
||
| graph.addDependency(num_of_components + i, it->second); |
Member
There was a problem hiding this comment.
I think this would be clearer if we had something like
for (std::size_t run_target_i = 0; run_target_i < run_targets.size(); ++run_target_i) {
std::size_t node_i = num_of_components + run_target_i;
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #420
Currently we have a lot of code to bridge the old config and new. This PR removes the bridge and changes. Process Group Manager, Graph and Alive Monitor to use the new config.