Skip to content

Fix daemon rpc client logger lifetime issue#4841

Open
xmkg wants to merge 11 commits into
mainfrom
bugfix/fix-daemon-rpc-client-logger-lifetime-issue
Open

Fix daemon rpc client logger lifetime issue#4841
xmkg wants to merge 11 commits into
mainfrom
bugfix/fix-daemon-rpc-client-logger-lifetime-issue

Conversation

@xmkg
Copy link
Copy Markdown
Member

@xmkg xmkg commented Apr 20, 2026

Description

Implementation for #4818.

@xmkg xmkg marked this pull request as draft April 20, 2026 22:27
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 20, 2026

Codecov Report

❌ Patch coverage is 73.28244% with 70 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.61%. Comparing base (0a8d1b9) to head (42ccaae).
⚠️ Report is 27 commits behind head on main.

Files with missing lines Patch % Lines
src/daemon/daemon.cpp 70.97% 36 Missing ⚠️
src/daemon/daemon_rpc.cpp 74.05% 34 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4841      +/-   ##
==========================================
- Coverage   87.78%   87.61%   -0.16%     
==========================================
  Files         269      270       +1     
  Lines       14573    14537      -36     
==========================================
- Hits        12791    12735      -56     
- Misses       1782     1802      +20     

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

@xmkg xmkg force-pushed the bugfix/fix-daemon-rpc-client-logger-lifetime-issue branch 3 times, most recently from b017368 to 1eae221 Compare April 21, 2026 10:16
xmkg added 10 commits May 7, 2026 18:12
Signed-off-by: Mustafa Kemal Gilor <mustafa.gilor@canonical.com>
Signed-off-by: Mustafa Kemal Gilor <mustafa.gilor@canonical.com>
Signed-off-by: Mustafa Kemal Gilor <mustafa.gilor@canonical.com>
Use the new DaemonRpcContext class to pass around context to the fns.
DaemonRpc class now takes logger as a constructor arg.
Streamline request read calls into dispatch function.

Signed-off-by: Mustafa Kemal Gilor <mustafa.gilor@canonical.com>
Signed-off-by: Mustafa Kemal Gilor <mustafa.gilor@canonical.com>
Signed-off-by: Mustafa Kemal Gilor <mustafa.gilor@canonical.com>
Signed-off-by: Mustafa Kemal Gilor <mustafa.gilor@canonical.com>
Signed-off-by: Mustafa Kemal Gilor <mustafa.gilor@canonical.com>
Signed-off-by: Mustafa Kemal Gilor <mustafa.gilor@canonical.com>
Signed-off-by: Mustafa Kemal Gilor <mustafa.gilor@canonical.com>
@xmkg xmkg force-pushed the bugfix/fix-daemon-rpc-client-logger-lifetime-issue branch from 77b1364 to 086f9aa Compare May 7, 2026 15:36
@xmkg xmkg marked this pull request as ready for review May 7, 2026 15:37
Signed-off-by: Mustafa Kemal Gilor <mustafa.gilor@canonical.com>
@xmkg xmkg requested review from a team and sharder996 and removed request for a team May 7, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant