Skip to content

Fix for issue 1108 - #1109

Open
paulquiring wants to merge 5 commits into
eclipse-score:mainfrom
etas-contrib:bug-1108
Open

paulquiring wants to merge 5 commits into
eclipse-score:mainfrom
etas-contrib:bug-1108

Conversation

@paulquiring

Copy link
Copy Markdown
Contributor

fixes: #1108

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The shutdown regression can pass with the original bug because it lacks coordinated overlap checks, while the parallel-launch traceability tag is unsupported by a startup-overlap assertion.

2 open issues
What changed in this PR

Fixes #1108 by making Launch Manager wait for every dependent to finish shutting down before stopping a shared dependency.

Changes:

  • Track shutdown completion per node instead of repeatedly reading live component state.
  • Add unit and integration regression tests for shared-dependency shutdown ordering.
  • Prevent out-of-bounds access in the test argument parser.
File Description
tests/​utils/​test_helper/​arg_parser.hpp Guard argument indexing with a length check.
tests/​integration/​shared_dependency_shutdown/​test.py Run the regression scenario and validate test results.
tests/​integration/​shared_dependency_shutdown/​shared_dependency_shutdown.puml Document the expected shutdown sequence.
tests/​integration/​shared_dependency_shutdown/​dependent_process.cpp Model fast and slow graceful shutdowns.
tests/​integration/​shared_dependency_shutdown/​control_client_test_driver.cpp Drive transitions and check shutdown counters.
tests/​integration/​shared_dependency_shutdown/​config.json Configure the dependency graph and shutdown delays.
tests/​integration/​shared_dependency_shutdown/​component_shared_process.cpp Detect premature shutdown of the shared dependency.
tests/​integration/​shared_dependency_shutdown/​common.hpp Define shared counters and expected component counts.
tests/​integration/​shared_dependency_shutdown/​BUILD Build and register the integration scenario.
tests/​integration/​BUILD Include the regression in the integration suite.
score/​launch_manager/​src/​daemon/​src/​process_group_manager/​details/​transition.hpp Gate shutdown ordering on tracked completion notifications.
score/​launch_manager/​src/​daemon/​src/​process_group_manager/​details/​transition_UT.cpp Verify that a shared dependency waits for both dependents.

Review effort: Max

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Paul Quiring <paul.quiring@etas.com>
@github-actions

Copy link
Copy Markdown
Contributor

Documentation preview for this pull request is available at:
pr-1109: https://eclipse-score.github.io/lifecycle/pr-1109/

This branch is waiting to be deployed

1 waiting deployment
workflow-approval — 88a26448 Waiting Nov 27, 2026 by paulquiring via Build and test arm64-qnx / approval #2892
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.

Deactivation order of components can be wrong

3 participants