Fixing qos_basic_test for Arista#5126
Conversation
Summary of ChangesHello @ram-mac, 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 addresses a recurring failure in the "qos_basic_test" on Arista devices. The fix involves introducing a deviation to account for Arista's lack of support for the "TransmitPkts" state path, allowing the test to conditionally skip device-under-test (DUT) side QoS counter checks. This ensures the test can pass on Arista platforms while still validating traffic flow via ATE. Highlights
Changelog
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. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
Pull Request Functional Test Report for #5126 / 92cccffVirtual Devices
Hardware Devices
|
There was a problem hiding this comment.
Code Review
This pull request correctly addresses a test failure on Arista devices by introducing the qos_get_state_path_unsupported deviation. The changes in qos_basic_test.go appropriately use this deviation to conditionally skip DUT-side QoS counter checks, which is the correct approach. The implementation is sound.
The qos_basic_test failure is caused by the Arista device failing to support the TransmitPkts state path.
-To fix this we need to enable the qos_get_state_path_unsupported deviation for Arista and update the test to skip DUT-side QoS counter checks when this deviation is active.
-Traffic verification via ATE will still be performed.