Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[servicemanager] Return desired services/layers statuses #249

Merged
merged 5 commits into from
Mar 4, 2025

Conversation

mlohvynenko
Copy link
Member

No description provided.

Copy link

codecov bot commented Jan 28, 2025

Codecov Report

Attention: Patch coverage is 79.18216% with 56 lines in your changes missing coverage. Please review.

Project coverage is 83.75%. Comparing base (1680062) to head (02bb015).
Report is 7 commits behind head on develop.

Files with missing lines Patch % Lines
src/sm/servicemanager/servicemanager.cpp 64.38% 26 Missing ⚠️
src/sm/layermanager/layermanager.cpp 79.48% 8 Missing ⚠️
tests/sm/servicemanager/servicemanager_test.cpp 88.70% 7 Missing ⚠️
tests/sm/stubs/layermanagerstub.hpp 16.66% 5 Missing ⚠️
tests/sm/layermanager/layermanager_test.cpp 90.90% 4 Missing ⚠️
include/aos/common/types.hpp 91.30% 2 Missing ⚠️
tests/sm/stubs/imagehandlerstub.hpp 83.33% 2 Missing ⚠️
tests/sm/stubs/servicemanagerstub.hpp 33.33% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #249      +/-   ##
===========================================
+ Coverage    83.72%   83.75%   +0.02%     
===========================================
  Files          157      157              
  Lines        14041    14242     +201     
  Branches      1739     1756      +17     
===========================================
+ Hits         11756    11928     +172     
- Misses        2285     2314      +29     

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

@mlohvynenko mlohvynenko force-pushed the validate_layer branch 11 times, most recently from eb52d70 to 47bfc54 Compare January 29, 2025 17:59
@mlohvynenko mlohvynenko changed the title Validate layer [servicemanager] Return desired services/layers statuses Jan 29, 2025
@@ -330,6 +292,87 @@ Error ServiceManager::RemoveItem(const String& id)
* Private
**********************************************************************************************************************/

RetWithError<UniquePtr<ServiceInfoStaticArray>> ServiceManager::ProcessAlreadyInstalledServices(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not so good API, unclear what is returned without looking inside function. I recommend either return it through named param, Or even better to divide into two separate funcitons.

Copy link
Member Author

Choose a reason for hiding this comment

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

Refactored to accept via param

@mlohvynenko mlohvynenko force-pushed the validate_layer branch 5 times, most recently from a5ad8ca to 1ec7511 Compare February 12, 2025 11:32
@mlohvynenko mlohvynenko deleted the validate_layer branch February 21, 2025 16:26
@mlohvynenko mlohvynenko restored the validate_layer branch February 21, 2025 16:26
@mlohvynenko mlohvynenko reopened this Feb 21, 2025
Signed-off-by: Mykhailo Lohvynenko <Mykhailo_Lohvynenko@epam.com>
Signed-off-by: Mykhailo Lohvynenko <Mykhailo_Lohvynenko@epam.com>
Signed-off-by: Mykhailo Lohvynenko <Mykhailo_Lohvynenko@epam.com>
Signed-off-by: Mykhailo Lohvynenko <Mykhailo_Lohvynenko@epam.com>
Signed-off-by: Mykhailo Lohvynenko <Mykhailo_Lohvynenko@epam.com>
Copy link

sonarqubecloud bot commented Mar 4, 2025

Quality Gate Failed Quality Gate failed

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

See analysis details on SonarQube Cloud

@mlohvynenko mlohvynenko merged commit 2d6e4a1 into aosedge:develop Mar 4, 2025
4 of 6 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