Skip to content

cm: launcher: change UpdateInstances to RunInstances#540

Merged
al1img merged 1 commit intoaosedge:feature_release_9.1from
mykola-kobets-epam:cm-proto-change-adaptation
Apr 1, 2026
Merged

cm: launcher: change UpdateInstances to RunInstances#540
al1img merged 1 commit intoaosedge:feature_release_9.1from
mykola-kobets-epam:cm-proto-change-adaptation

Conversation

@mykola-kobets-epam
Copy link
Copy Markdown
Contributor

No description provided.

@mykola-kobets-epam mykola-kobets-epam force-pushed the cm-proto-change-adaptation branch from 8489da2 to 1b78de8 Compare March 30, 2026 14:23
@@ -29,13 +29,10 @@ class InstanceRunnerItf {
* Updates instances on specified node.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Run instance on specified node.

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.

fixed

for (const auto& instance : *stopInstances) {
LOG_INF() << "Update node stop instance" << Log::Field("instance", static_cast<const InstanceIdent&>(instance))
for (const auto& instance : *instancesToRun) {
LOG_INF() << "Update node run instance" << Log::Field("instance", static_cast<const InstanceIdent&>(instance))
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

"Run node instances"

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.

fixed

return {true, ErrorEnum::eNone};
}

// Check desired ⊆ running.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What does mean?

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.

that's from initial implementation
(set1 <= set2) and (set2 <= set1) => set1 == set2

removed the comments, not needed

for (const auto& instance : *stopInstances) {
LOG_INF() << "Update node stop instance" << Log::Field("instance", static_cast<const InstanceIdent&>(instance))
for (const auto& instance : *instancesToRun) {
LOG_INF() << "Update node run instance" << Log::Field("instance", static_cast<const InstanceIdent&>(instance))
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

"Run node instances"

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.

fixed

Copy link
Copy Markdown

@MykolaSuperman MykolaSuperman left a comment

Choose a reason for hiding this comment

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

Reviewed-by: Mykola Solianko <mykola_solianko@epam.com>

@mykola-kobets-epam mykola-kobets-epam force-pushed the cm-proto-change-adaptation branch 2 times, most recently from bf0e06f to a609cd7 Compare March 31, 2026 22:48
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 31, 2026

Codecov Report

❌ Patch coverage is 97.80220% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.21%. Comparing base (61e5def) to head (eada1a0).
⚠️ Report is 1 commits behind head on feature_release_9.1.

Files with missing lines Patch % Lines
src/core/cm/launcher/node.cpp 94.44% 2 Missing ⚠️
Additional details and impacted files
@@                   Coverage Diff                   @@
##           feature_release_9.1     #540      +/-   ##
=======================================================
- Coverage                85.25%   85.21%   -0.04%     
=======================================================
  Files                      313      313              
  Lines                    28209    28182      -27     
  Branches                  3775     3773       -2     
=======================================================
- Hits                     24049    24016      -33     
- Misses                    4160     4166       +6     

☔ 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
Member

@mlohvynenko mlohvynenko left a comment

Choose a reason for hiding this comment

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

Reviewed-by: Mykhailo Lohvynenko <mykhailo_lohvynenko@epam.com>

Copy link
Copy Markdown
Collaborator

@al1img al1img left a comment

Choose a reason for hiding this comment

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

Reviewed-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com>

Signed-off-by: Mykola Kobets <mykola_kobets@epam.com>
Reviewed-by: Mykhailo Lohvynenko <mykhailo_lohvynenko@epam.com>
Reviewed-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com>
Reviewed-by: Mykola Solianko <mykola_solianko@epam.com>
@mykola-kobets-epam mykola-kobets-epam force-pushed the cm-proto-change-adaptation branch from a609cd7 to eada1a0 Compare April 1, 2026 10:32
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 1, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
61.3% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@al1img al1img merged commit b572146 into aosedge:feature_release_9.1 Apr 1, 2026
6 of 7 checks passed
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.

4 participants