Skip to content

Fix daemon rpc client logger lifetime issue#4841

Draft
xmkg wants to merge 9 commits intomainfrom
bugfix/fix-daemon-rpc-client-logger-lifetime-issue
Draft

Fix daemon rpc client logger lifetime issue#4841
xmkg wants to merge 9 commits intomainfrom
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, description TBD

@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 71.49123% with 65 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.29%. Comparing base (03a6685) to head (77b1364).
⚠️ Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
src/daemon/daemon.cpp 65.00% 35 Missing ⚠️
src/daemon/daemon_rpc.cpp 75.21% 30 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4841      +/-   ##
==========================================
- Coverage   87.45%   87.29%   -0.16%     
==========================================
  Files         258      259       +1     
  Lines       14094    14058      -36     
==========================================
- Hits        12324    12270      -54     
- Misses       1770     1788      +18     

☔ 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 from bd26fe1 to c594161 Compare April 21, 2026 08:02
xmkg added 6 commits April 21, 2026 11:03
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>
@xmkg xmkg force-pushed the bugfix/fix-daemon-rpc-client-logger-lifetime-issue branch from c594161 to b017368 Compare April 21, 2026 08:03
xmkg added 2 commits April 21, 2026 13:00
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 b017368 to 1eae221 Compare April 21, 2026 10:16
Signed-off-by: Mustafa Kemal Gilor <mustafa.gilor@canonical.com>
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