VPAAMP-946: Fix the Logs for the Updated Config Values - #1839
Open
srikanthreddybijjam-comcast wants to merge 1 commit into
Open
VPAAMP-946: Fix the Logs for the Updated Config Values#1839srikanthreddybijjam-comcast wants to merge 1 commit into
srikanthreddybijjam-comcast wants to merge 1 commit into
Conversation
Vinish100
reviewed
Aug 7, 2026
| << "Accepted bool set: value must update when higher-priority owner sets via ProcessConfigJson"; | ||
|
|
||
| // Float (manifestTimeout): dev-cfg sets 30s, app tries to set 5s -> retained as 30s | ||
| mAampConfig->SetConfigValue(AAMP_DEV_CFG_SETTING, eAAMPConfig_ManifestTimeout, 30.0); |
Contributor
There was a problem hiding this comment.
Check if there is a duplicate L1 for the same case. For validation of new logs, lets use a simple L2
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
Suppressed comments (4)
test/utests/tests/ConfigTests/ConfigTests.cpp:1523
- This int-owner block only covers the rejected path and uses cJSON_Parse without asserting success. Adding an accepted case (APPLICATION set followed by DEV_CFG JSON set) makes the owner semantics covered for ints and improves L1 test validity.
// Int (abrCacheLife): dev-cfg sets 60, app tries to set 5 -> retained as 60
mAampConfig->SetConfigValue(AAMP_DEV_CFG_SETTING, eAAMPConfig_ABRCacheLife, 60);
cJSON *abrCacheLife5 = cJSON_Parse(R"({"abrCacheLife":5})");
mAampConfig->ProcessConfigJson(abrCacheLife5, AAMP_APPLICATION_SETTING);
cJSON_Delete(abrCacheLife5);
test/utests/tests/ConfigTests/ConfigTests.cpp:1515
- This section only covers the rejected float-owner path and doesn’t assert the accepted path, despite the test intent comment. Also, cJSON_Parse is used without asserting success. Covering accepted+rejected (and asserting parse success) aligns the test oracle with the stated intent and improves L1 validity.
// Float (manifestTimeout): dev-cfg sets 30s, app tries to set 5s -> retained as 30s
mAampConfig->SetConfigValue(AAMP_DEV_CFG_SETTING, eAAMPConfig_ManifestTimeout, 30.0);
cJSON *manifestTimeout5s = cJSON_Parse(R"({"manifestTimeout":5})");
mAampConfig->ProcessConfigJson(manifestTimeout5s, AAMP_APPLICATION_SETTING);
cJSON_Delete(manifestTimeout5s);
test/utests/tests/ConfigTests/ConfigTests.cpp:1492
- The new test name/comment says it verifies logging ("LogsActualValue"), but the test only asserts stored config values and does not validate log output. This is misleading for future readers; either capture/assert logs, or rename/update the comment to match what is actually tested.
// Verifies that ProcessConfigJson logs and stores the actual in-effect value for all config types:
// rejected sets (lower-priority owner) retain the higher-priority value;
// accepted sets (higher-priority owner) update the value.
TEST_F(AampConfigTests, ProcessConfigJson_LogsActualValueAfterOwnerChange)
{
test/utests/tests/ConfigTests/ConfigTests.cpp:1510
- The "accepted bool set" section doesn’t actually exercise an accepted owner override: after setting DEV_CFG to true, the subsequent APPLICATION SetConfigValue(false) is rejected (lower priority), so the value never becomes false and the later JSON set doesn’t prove the update path. Reorder the steps so APPLICATION sets first and DEV_CFG updates via ProcessConfigJson, then verify APPLICATION rejection.
This issue also appears in the following locations of the same file:
- line 1511
- line 1519
// Bool (bulkTimedMetadata): dev-cfg sets true, app tries to set false -> retained as true
mAampConfig->SetConfigValue(AAMP_DEV_CFG_SETTING, eAAMPConfig_BulkTimedMetaReport, true);
cJSON *bulkTimedMetaFalse = cJSON_Parse(R"({"bulkTimedMetadata":false})");
mAampConfig->ProcessConfigJson(bulkTimedMetaFalse, AAMP_APPLICATION_SETTING);
cJSON_Delete(bulkTimedMetaFalse);
Reason for change: Modified the config update logs with accurate value Test Procedure: Refer the ticket VPAAMP-946 Priority: P2 Signed-off-by: srikanthreddybijjam-comcast <srikanthreddybijjam.2000@gmail.com>
srikanthreddybijjam-comcast
force-pushed
the
feature/VPAAMP-946
branch
from
August 7, 2026 06:44
0edc351 to
f51fd44
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reason for change: Modified the config update logs with accurate value
Test Procedure: Refer the ticket VPAAMP-946
Priority: P2