Skip to content

Proto communication david#2197

Merged
rnijveld merged 13 commits intoproto-communication-splitfrom
proto-communication-david
Apr 16, 2026
Merged

Proto communication david#2197
rnijveld merged 13 commits intoproto-communication-splitfrom
proto-communication-david

Conversation

@davidv1992
Copy link
Copy Markdown
Member

No description provided.

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.
@davidv1992 davidv1992 requested a review from rnijveld April 10, 2026 14:39
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 10, 2026

Codecov Report

❌ Patch coverage is 47.38956% with 131 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.43%. Comparing base (f296cb1) to head (1ff3a1c).

Files with missing lines Patch % Lines
ntpd/src/daemon/system.rs 0.00% 62 Missing ⚠️
ntp-proto/src/algorithm/mod.rs 35.59% 38 Missing ⚠️
ntp-proto/src/system.rs 45.28% 29 Missing ⚠️
ntp-proto/src/source.rs 95.65% 2 Missing ⚠️
Additional details and impacted files
@@                      Coverage Diff                      @@
##           proto-communication-split    #2197      +/-   ##
=============================================================
+ Coverage                      84.41%   84.43%   +0.01%     
=============================================================
  Files                             70       70              
  Lines                          19757    19723      -34     
=============================================================
- Hits                           16678    16653      -25     
+ Misses                          3079     3070       -9     
Flag Coverage Δ
fuzz-cookie_parsing_sound 0.39% <0.00%> (+<0.01%) ⬆️
fuzz-duration_from_float 0.27% <0.00%> (+<0.01%) ⬆️
fuzz-encrypted_client_parsing 7.16% <0.00%> (+0.56%) ⬆️
fuzz-encrypted_server_parsing 10.22% <0.00%> (+0.53%) ⬆️
fuzz-handle 11.69% <0.00%> (-1.25%) ⬇️
fuzz-ipfilter 2.50% <0.00%> (+0.02%) ⬆️
fuzz-key_exchange_request_parsing 3.75% <0.00%> (-1.20%) ⬇️
fuzz-key_exchange_response_parsing 3.68% <0.00%> (+0.06%) ⬆️
fuzz-packet_keyset 5.64% <0.00%> (-0.02%) ⬇️
fuzz-packet_parsing_sound 6.08% <0.00%> (+0.95%) ⬆️
fuzz-record_encode_decode 4.44% <0.00%> (+0.03%) ⬆️
test-aarch64-apple-darwin 84.21% <47.38%> (+0.04%) ⬆️
test-x86_64-unknown-linux-gnu 84.12% <47.38%> (+0.04%) ⬆️
test-x86_64-unknown-linux-musl 84.12% <47.38%> (+0.04%) ⬆️

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.

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.
@davidv1992 davidv1992 force-pushed the proto-communication-david branch from 18028b1 to 1ff3a1c Compare April 15, 2026 07:50
@rnijveld rnijveld merged commit 3d769f2 into proto-communication-split Apr 16, 2026
28 of 29 checks passed
@rnijveld rnijveld deleted the proto-communication-david branch April 16, 2026 13:04
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