Skip to content

Reorganization of communication within the daemon#2126

Draft
davidv1992 wants to merge 31 commits intomainfrom
organization-rework
Draft

Reorganization of communication within the daemon#2126
davidv1992 wants to merge 31 commits intomainfrom
organization-rework

Conversation

@davidv1992
Copy link
Copy Markdown
Member

No description provided.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 18, 2026

Codecov Report

❌ Patch coverage is 71.23288% with 231 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.07%. Comparing base (1df0cc9) to head (b255850).

Files with missing lines Patch % Lines
ntp-proto/src/algorithm/mod.rs 71.69% 92 Missing ⚠️
ntpd/src/daemon/system.rs 0.00% 46 Missing ⚠️
ntp-proto/src/system.rs 26.66% 44 Missing ⚠️
ntpd/src/daemon/mod.rs 0.00% 11 Missing ⚠️
ntpd/src/daemon/pps_source.rs 0.00% 11 Missing ⚠️
ntp-proto/src/algorithm/kalman/mod.rs 88.57% 8 Missing ⚠️
ntp-proto/src/lib.rs 66.66% 3 Missing ⚠️
ntpd/src/daemon/ntp_source.rs 85.71% 3 Missing ⚠️
ntpd/src/daemon/util.rs 0.00% 3 Missing ⚠️
ntpd/src/force_sync/mod.rs 0.00% 3 Missing ⚠️
... and 5 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2126      +/-   ##
==========================================
+ Coverage   83.53%   85.07%   +1.54%     
==========================================
  Files          71       70       -1     
  Lines       20007    19803     -204     
==========================================
+ Hits        16712    16848     +136     
+ Misses       3295     2955     -340     
Flag Coverage Δ
fuzz-cookie_parsing_sound 0.39% <0.00%> (-0.01%) ⬇️
fuzz-duration_from_float 0.26% <0.00%> (-0.01%) ⬇️
fuzz-encrypted_client_parsing 6.06% <0.00%> (-0.80%) ⬇️
fuzz-encrypted_server_parsing 10.28% <0.00%> (+0.52%) ⬆️
fuzz-handle 12.95% <0.00%> (-0.93%) ⬇️
fuzz-ipfilter 2.49% <0.00%> (-0.05%) ⬇️
fuzz-key_exchange_request_parsing 4.90% <0.00%> (+1.05%) ⬆️
fuzz-key_exchange_response_parsing 3.67% <0.00%> (-0.06%) ⬇️
fuzz-packet_keyset 4.91% <0.00%> (-0.84%) ⬇️
fuzz-packet_parsing_sound 7.05% <0.00%> (-0.16%) ⬇️
fuzz-record_encode_decode 4.40% <0.00%> (-0.12%) ⬇️
test-aarch64-apple-darwin 84.83% <71.23%> (+1.52%) ⬆️
test-x86_64-unknown-linux-gnu 84.74% <71.23%> (+1.51%) ⬆️
test-x86_64-unknown-linux-musl 84.74% <71.23%> (+1.51%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@rnijveld rnijveld force-pushed the organization-rework branch from 8d69adb to 3503aac Compare February 27, 2026 10:25
@rnijveld rnijveld force-pushed the organization-rework branch from 3503aac to ef14f0d Compare February 27, 2026 11:16
davidv1992 and others added 19 commits February 27, 2026 14:27
For the kalman algorithm this was done through some wrapper types.
The force-sync code is disabled for now.
This is needed for the implementation of clone on
tokio::sync::watch::Sender.
This will allow us to give the source access to the manager snapshots,
which is needed to eventually move source usability into the per-source
part of the algorithm interface.
This will eventually make it easier to make communication between source
and ntp_manager more implicit, and reduces the amount of things the
system struct is responsible for.
This is now no longer needed, and removing this reduces the work system
needs to do a lot.
This removes the need for any messages between ntp manager and sources,
which also allows the removal of several bits of the source-system
communication in the daemon.
This further simplifies system, facilitating its removal.
This makes the updating of the ntp snapshot more robust by ensuring the
latest data is available before it is used for synchronization.
This further simplifies system, preparing for its removal.
This makes it impossible to forget to do this on dropping the source
controller. It also simplifies system, which makes its removal easier.
This fixes incorrect strata being advertised by servers.
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.

2 participants