Skip to content

Conversation

@mykola-kobets-epam
Copy link
Contributor

No description provided.

Signed-off-by: Mykola Kobets <mykola_kobets@epam.com>
Signed-off-by: Mykola Kobets <mykola_kobets@epam.com>
Signed-off-by: Mykola Kobets <mykola_kobets@epam.com>
Signed-off-by: Mykola Kobets <mykola_kobets@epam.com>
@mykola-kobets-epam mykola-kobets-epam changed the title Process override env var in launcher Process override env vars in launcher Dec 23, 2025
Signed-off-by: Mykola Kobets <mykola_kobets@epam.com>
@codecov
Copy link

codecov bot commented Dec 23, 2025

Codecov Report

❌ Patch coverage is 89.74359% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.48%. Comparing base (e4ccbe1) to head (4e4be7e).

Files with missing lines Patch % Lines
src/core/cm/launcher/launcher.cpp 70.00% 6 Missing ⚠️
src/core/cm/launcher/balancer.cpp 77.27% 5 Missing ⚠️
src/core/cm/launcher/tests/launcher.cpp 98.43% 1 Missing ⚠️
Additional details and impacted files
@@                   Coverage Diff                   @@
##           feature_unification     #458      +/-   ##
=======================================================
+ Coverage                84.45%   84.48%   +0.03%     
=======================================================
  Files                      294      295       +1     
  Lines                    24954    25113     +159     
  Branches                  3410     3421      +11     
=======================================================
+ Hits                     21075    21217     +142     
- Misses                    3879     3896      +17     

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

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

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

See analysis details on SonarQube Cloud

return ErrorEnum::eNone;
}

Error Balancer::ApplyEnvVarOverrides(aos::InstanceInfo& info)
Copy link
Member

@mlohvynenko mlohvynenko Jan 5, 2026

Choose a reason for hiding this comment

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

Consider the next scenario:

  1. image config has no env vars set
  2. override env var handles ENV1=VAL1, TTL not set (and succeeds)
  3. override env var handles ENV2=VAL2, TTL not set (and succeeds)

What env vars are assigned to the instance after (3): both pairs?

*/
bool mIsUnitSubject {};

/**
Copy link
Collaborator

Choose a reason for hiding this comment

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

I guess no need to comment each field in this struct. It makes this struct too big.

return Error();
}

Error SaveOverrideEnvVars(const OverrideEnvVarsRequest& envVars) override
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you create pr on aos_core_cpp that implements these API?

return var;
}

template <typename T>
Copy link
Collaborator

Choose a reason for hiding this comment

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

It worth to be placed in common::tests::utils as well as same template from cryptoprovider test.

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.

3 participants