gNOI-5.1: Remove std_dev check from ping test#5364
gNOI-5.1: Remove std_dev check from ping test#5364raviv-arista wants to merge 1 commit intoopenconfig:mainfrom
Conversation
The test pings loopback address where ping RTTs are extremely tight (30-50 us). The variance between packets is typically < 500 ns, which is < 0.0005 ms. Linux ping (iputils) reports mdev rounded to 3 decimal places in ms, so this rounds to mdev = 0.000 ms, and the gNOI server reports std_dev = 0 ns. The test expectation for ping std_dev > 1 is not correct.
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request updates the gNOI ping test suite to remove an incorrect expectation regarding standard deviation. Due to the extremely low latency of loopback pings, the reported standard deviation often rounds to zero, causing the previous test validation to fail unnecessarily. The changes remove the standard deviation check entirely to ensure test stability. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
Pull Request Functional Test Report for #5364 / 80ce162Virtual Devices
Hardware Devices
|
There was a problem hiding this comment.
Code Review
This pull request removes the standard deviation validation from the gNOI ping tests. It deletes the minimumStdDev constant, removes the StdDev field from the expected statistics in multiple test cases, and eliminates the logic for verifying the standard deviation of ping responses. I have no feedback to provide.
The test pings loopback address where ping RTTs are extremely tight (30-50 us). The variance between packets is typically < 500 ns, which is < 0.0005 ms. Linux ping (iputils) reports mdev rounded to 3 decimal places in ms, so this rounds to mdev = 0.000 ms, and the gNOI server reports std_dev = 0 ns.
The test expectation for ping std_dev > 1 is not correct. Removed std_dev check itself as std_dev will always be greater than or equal to 0.