Skip to content

Cherry-pick PRs 295, 299 Previous log fixes to 1.7.4 - #340

Merged
shibu-kv merged 2 commits into
support/1.7.4from
topic/rdkv_8.4
Apr 21, 2026
Merged

Cherry-pick PRs 295, 299 Previous log fixes to 1.7.4#340
shibu-kv merged 2 commits into
support/1.7.4from
topic/rdkv_8.4

Conversation

@dharshini555

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: PriyaDharshini_Kathiravan <priyakathiravan05@gmail.com>
Copilot AI review requested due to automatic review settings April 21, 2026 16:31
@dharshini555
dharshini555 requested a review from a team as a code owner April 21, 2026 16:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Cherry-picks prior “log fixes” into the 1.7.4 branch by renaming the scheduler “log demand” flag to a “retain seekmap” flag, adjusting signal/report-generation paths accordingly, and adding additional DCA debug logging to help diagnose seek/marker behavior.

Changes:

  • Renames get_logdemand/set_logdemand to get_retainseekmap/set_retainseekmap and updates scheduler logic/tests.
  • Adjusts log-upload signal handling and on-demand report generation paths around the new retain/clear seekmap behavior.
  • Adds extra T2Debug logging in DCA marker/seek handling and moves properties initialization earlier in initReportProfiles().

Reviewed changes

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

Show a summary per file
File Description
source/test/scheduler/schedulerTest.cpp Updates unit tests to the new retain-seekmap scheduler API.
source/test/bulkdata/profileTest.cpp Updates a mock expectation to the new scheduler API name.
source/telemetry2_0.c Updates LOG_UPLOAD signal handling to use the retain-seekmap flag.
source/scheduler/scheduler.h Public API rename from logdemand to retainseekmap.
source/scheduler/scheduler.c Implements renamed API + updated interrupt/clearseek behavior.
source/dcautil/dca.c Adds additional debug logs for seek values and marker extraction.
source/bulkdata/reportprofiles.c Removes on-demand logdemand set; moves properties init earlier.

Comment thread source/dcautil/dca.c
Comment on lines +47 to 48
static bool isretainSeekmap = true;

Copilot AI Apr 21, 2026

Copy link

Choose a reason for hiding this comment

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

Nit: local static state is named isretainSeekmap, which is inconsistent with the file’s existing snake_case style (sc_initialized, is_activation_time_out, etc.). Consider renaming to a consistent style (e.g., is_retain_seekmap or similar) to keep the scheduler state variables uniform.

Copilot uses AI. Check for mistakes.
Comment on lines +790 to +791
// generateDcaReport may call set_retainseekmap
EXPECT_CALL(*g_schedulerMock, set_retainseekmap(_))

Copilot AI Apr 21, 2026

Copy link

Choose a reason for hiding this comment

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

This test now expects SchedulerMock to have a set_retainseekmap(bool) method, but the current mock interface in source/test/bulkdata/SchedulerMock.h still exposes set_logdemand(bool). As written, this will not compile; update the SchedulerMock (and its C wrappers) to the new API name or adjust the expectation to match the actual mock API used by the test binary.

Suggested change
// generateDcaReport may call set_retainseekmap
EXPECT_CALL(*g_schedulerMock, set_retainseekmap(_))
// generateDcaReport may call the scheduler mock's current API
EXPECT_CALL(*g_schedulerMock, set_logdemand(_))

Copilot uses AI. Check for mistakes.
Comment thread source/telemetry2_0.c
}
else if (sig == LOG_UPLOAD_ONDEMAND || sig == SIGIO)
{
T2Info(("LOG_UPLOAD_ONDEMAND received!\n"));

Copilot AI Apr 21, 2026

Copy link

Choose a reason for hiding this comment

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

The LOG_UPLOAD_ONDEMAND/SIGIO signal path no longer sets the scheduler flag that controls whether seekmap is cleared. Previously this branch set set_logdemand(true) (retain seekmap); now it only interrupts. If a prior LOG_UPLOAD set the flag to clear seekmap, an on-demand upload could unintentionally clear it. Consider explicitly calling set_retainseekmap(true) here to preserve the prior on-demand semantics.

Suggested change
T2Info(("LOG_UPLOAD_ONDEMAND received!\n"));
T2Info(("LOG_UPLOAD_ONDEMAND received!\n"));
set_retainseekmap(true);

Copilot uses AI. Check for mistakes.
@@ -428,7 +428,6 @@ static void* reportOnDemand(void *input)
if(!strncmp(action, ON_DEMAND_ACTION_UPLOAD, MAX_PROFILENAMES_LENGTH))
{
T2Info("Upload XCONF report on demand \n");

Copilot AI Apr 21, 2026

Copy link

Choose a reason for hiding this comment

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

On-demand upload no longer sets the retain/clear-seekmap flag before generating a report (previously set_logdemand(true)). If the flag was set to clear seekmap by a previous scheduled upload trigger, this on-demand path can inherit that state and clear seekmap unexpectedly. Set set_retainseekmap(true) before generateDcaReport(...) to keep on-demand behavior consistent.

Suggested change
T2Info("Upload XCONF report on demand \n");
T2Info("Upload XCONF report on demand \n");
set_retainseekmap(true);

Copilot uses AI. Check for mistakes.
@shibu-kv
shibu-kv merged commit bf4c960 into support/1.7.4 Apr 21, 2026
8 of 10 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 21, 2026
@shibu-kv
shibu-kv deleted the topic/rdkv_8.4 branch April 21, 2026 19:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants