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. |
Hi @davidv1992, I assume from the long silence that AI-assisted coding is not ever going to be OK with this project. The PR now has conflicts with main that need to be resolved. If you don't have any further interest in it, I suggest closing it. Let me know if you'd like me to submit a new PR with just the specifications and documentation changes so that someone else can implement the feature manually. |
|
Apologies for the long delay, there has been some internal problems that made this slip to the bottom of the pile and made our communication less then ideal. I will make sure we will get back to you before the end of the week. |
|
Apologies for delaying this yet further, due to some communication issues internally in the team we are going to respond early next week, hopefully on monday. |
|
Sorry to delay the answer in full yet again. @rnijveld can expand on what I can say, but he is unfortunately not available for another few days. In short though, this PR fell by the wayside not just because of the use of AI, but also because of its size, structure with external dependencies, and some general technical debt on our side that we are in the process of addressing. The use of AI on its own was not disqualifying in this particular case, but it did make review harder. I'll leave the specifics to @rnijveld as he did most of the legwork on this, and thus can give the first-hand picture. On the technical debt side, we are currently not happy with how we handle non-ntp sources. The code for this is (as you may have experienced) quite repetitive, and doesn't generalize nicely. This is something we are now in the process of fixing. Once that is done, using ptp clocks as sources should be a very natural feature, and we are planning to implement that. Unfortunately, due to problems on our end, good communication with you on all this fell through the track. Tracking tasks around reviews is something we are now working on, which should hopefully help avoid creating situations like this in the future. Our apologies that it did not go well this time. |
|
Thanks @davidv1992 - I'll close this PR now. |
This is my first cut at a fix for #1138.
A few comments: