Fixing telemetry_interfaces_test for Nokia#5459
Conversation
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 telemetry_interfaces_test suite to improve compatibility with Nokia (SR Linux) devices. The changes focus on relaxing strict counter validation, adding platform-specific deviations for unsupported paths, and ensuring proper interface initialization to prevent test failures in environments where certain default behaviors or schema paths differ from standard expectations. 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 the 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 counterproductive. 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 #5459 / ee87d05Virtual Devices
Hardware Devices
|
There was a problem hiding this comment.
Code Review
This pull request updates the telemetry interfaces test to improve platform compatibility and reliability. Key changes include adding Nokia platform exceptions in the metadata, refining interface state checks by removing redundant IsZero() calls, introducing conditional skips for unsupported paths, and ensuring mandatory interface type configuration. I have provided feedback regarding the need to extend the IsZero() removal to all relevant subtests and a suggestion to ensure the interface type is consistently set during MAC address configuration.
singhavnish2516
left a comment
There was a problem hiding this comment.
Please see the comment before merging.
Following are the changes
-Counter Validation: Removed the IsZero() check which erroneously failed when counters (like out-errors) were correctly reported as 0.
-Description: Added a logic guard to prevent TEST1 from failing if the description leaf is missing, with MissingValueForDefaults deviation is set
-Rates: Used the StatePathUnsupported deviation which would fix the rate check (TEST3) on Nokia, as the device rejects the in-rate schema path.
-Aggregation Guard: Added a vendor check to skip TEST6 on Nokia physical ports, resolving the [FailedPrecondition] error.