-
-
Notifications
You must be signed in to change notification settings - Fork 58
feature: PTP driver #1961
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feature: PTP driver #1961
Conversation
Automated commit by AI
Automated commit by Ollama 0.10.0, hf.co/unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q6_K_XL 30.5B ctx:61440 vram:44.7 GB Used MCP tool: get_ollama_model_info
Automated commit by Ollama 0.10.0, hf.co/unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q5_K_XL 30.5B ctx:82944 vram:45.1 GB Tools used: - get_ollama_model_info: Retrieved Ollama model information
Automated commit by AI No external MCP tools used.
Automated commit by AI No external MCP tools used.
Automated commit by AI No external MCP tools used.
Automated commit by AI No external MCP tools used.
- Changed precision from mandatory to optional in PtpSourceConfig - Default precision is now 0.000000001 seconds (1 nanosecond) - Updated test to verify default precision behavior
- Use correct ptp-time API (get_sys_offset_precise instead of non-existent fetch_blocking) - Fix data types to use ptp_sys_offset_precise from ptp-time crate - Add ReferenceId::PTP constant for proper source identification - Remove unused imports and fix compilation errors - Follow established patterns from PPS driver for consistency Automated commit by Amazon Q/Claude Sonnet 4
- Implement automatic detection of PTP timestamp capabilities at initialization - Add fallback mechanism: Precise -> Extended -> Standard timestamps - Support all three timestamp types from ptp-time crate - Extract timestamp data correctly for each capability level - Follow PRD requirement for capability detection only at initialization Automated commit by Amazon Q/Claude Sonnet 4
- Remove unused validate() method from PtpSourceConfig - Remove unused noise_estimate field from PtpSourceCreateParameters - Update PTP spawner to not reference removed field Automated commit by Amazon Q/Claude Sonnet 4
Automated commit by AI Created comprehensive integration tests for PTP driver system integration and message passing patterns, including spawner lifecycle, error handling, and communication verification. Also included existing integration tests in module structure.
Automated commit by AI Successfully ran comprehensive system integration tests with all 283 tests passing (205 in ntp-proto, 71 in ntpd including 10 PTP tests, 7 in integration tests). No issues found - all PTP driver system integration and message passing is working correctly.
Automated commit by AI Successfully ran all PTP integration tests (10 total tests passing). Fixed unused import warning in ptp_integration_test.rs. All integration tests are working correctly with no issues found.
Also sort fields alphabetically
Some sections have been reordered alphabetically for easier reference
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1961 +/- ##
===========================================
- Coverage 83.44% 21.56% -61.89%
===========================================
Files 70 37 -33
Lines 19266 5816 -13450
===========================================
- Hits 16076 1254 -14822
- Misses 3190 4562 +1372
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Thank you very much for this contribution. We have taken a preliminary look at this and it looks interesting and of sufficient quality that we would like to do a more complete review with the aim of including it. However, given the way this was built and the extent to which this was built using AI we unfortunately will have to require you to explicitly confirm that despite that, you are sure that you have the rights to this contribution and that it is not infringing on anyone's else rights by being a derivative work. In other words, we need you to confirm that your contribution satisfies the requirements under https://github.com/pendulum-project/ntpd-rs/blob/main/CONTRIBUTING.md#respect-free-softwareopen-source-licenses If you could do that for us that would clear the way for reviewing this. Otherwise, we unfortunately will have to respectfully decline this contribution. |
Thanks for the reply, @davidv1992. I am not an intellectual property lawyer, so I can't definitively affirm anything relating to rights or infringements of this code or any other code. My understanding as a non-professional is that the copyright status of AI-generated code is still unknown (at least in U.S. legal jurisdictions). Here's what I can affirm:
I hope the above satisfies your requirements. |
|
Just as a heads up, we are internally discussing the path forward here, but this may take a little while as this is still a bit of an edge case for us. |
No worries - thanks for the update. |
This is my first cut at a fix for #1138.
A few comments: