Skip to content

sm: launcher: rename update instances to run instances#535

Open
mlohvynenko wants to merge 1 commit intoaosedge:feature_release_9.1from
mlohvynenko:feature_sm_itf
Open

sm: launcher: rename update instances to run instances#535
mlohvynenko wants to merge 1 commit intoaosedge:feature_release_9.1from
mlohvynenko:feature_sm_itf

Conversation

@mlohvynenko
Copy link
Copy Markdown
Member

This patch updated launcher interface to handle
run instances instead of update instances:

  • a list of desired run instances is passed to the launcher instead stop and start instances lists;
  • the launcher is responsible for stopping and starting instances based on the provided list of desired run instances;
  • instances are started based on the desired run instances priorities.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 23, 2026

Codecov Report

❌ Patch coverage is 90.16393% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.21%. Comparing base (b572146) to head (a45d5aa).

Files with missing lines Patch % Lines
src/core/sm/launcher/launcher.cpp 87.75% 6 Missing ⚠️
Additional details and impacted files
@@                   Coverage Diff                   @@
##           feature_release_9.1     #535      +/-   ##
=======================================================
- Coverage                85.21%   85.21%   -0.01%     
=======================================================
  Files                      313      313              
  Lines                    28182    28211      +29     
  Branches                  3773     3780       +7     
=======================================================
+ Hits                     24015    24039      +24     
- Misses                    4167     4172       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Service Manager launcher API from “update instances (stop/start lists)” to “run instances (desired set)”, moving stop/start decision-making and start ordering (by priority) into the launcher implementation.

Changes:

  • Renamed launcher interface method from UpdateInstances(...) to RunInstances(instances).
  • Updated SM launcher implementation to derive stop/start sets internally and to sort desired instances by priority before starting.
  • Refactored and renamed SM launcher tests/mocks to match the new API.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/core/sm/tests/mocks/launchermock.hpp Updates mock interface to RunInstances(...).
src/core/sm/launcher/tests/launcher.cpp Renames tests and switches calls from UpdateInstances to RunInstances.
src/core/sm/launcher/launcher.hpp Updates public API + internal helpers/state to support “desired set” flow.
src/core/sm/launcher/launcher.cpp Implements RunInstances, adds sorting and internal stop-list derivation.
src/core/sm/launcher/itf/launcher.hpp Updates launcher interface contract to RunInstances(...).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

This patch updated launcher interface to handle
run instances instead of update instances:
- a list of desired run instances is passed to the launcher
instead stop and start instances lists;
- the launcher is responsible for stopping and starting instances
based on the provided list of desired run instances;
- instances are started based on the desired
run instances priorities.

Signed-off-by: Mykhailo Lohvynenko <mykhailo_lohvynenko@epam.com>
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 1, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
E Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants