ACL-1.2: Refactor verifyACLCounters for eventual consistency#5557
ACL-1.2: Refactor verifyACLCounters for eventual consistency#5557rolandphung wants to merge 1 commit into
Conversation
Change verifyACLCounters to wait for the expected counters to align instead of sampling the first counter that was successful. The device needs some time to complete updating the counter. Also add `SkipACLCountersVerificationDuringUpdate` deviation to `verifyFlowStatistics` during the make before break update test case.
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 improves the reliability of ACL counter verification in network tests by implementing an eventual consistency approach. By waiting for the device to report the expected packet counts, the tests are less prone to race conditions where counters might not have fully updated. Additionally, the test flow was adjusted to respect specific device deviations during update operations. 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 #5557 / e76054fVirtual Devices
Hardware Devices
|
There was a problem hiding this comment.
Code Review
This pull request refactors the ACL counter verification in acl_update_test.go by updating verifyACLCounters to use gnmi.Watch to wait until the matched packets counter increases by the expected amount, rather than asserting immediately. Additionally, in sendAndVerifyTraffic, the verification of flow statistics is now conditionally skipped along with ACL counter verification during updates if the deviation SkipACLCountersVerificationDuringUpdate is enabled. There are no review comments, and I have no feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Change verifyACLCounters to wait for the expected counters to align instead of sampling the first counter that was successful. The device needs some time to complete updating the counter.
Also add
SkipACLCountersVerificationDuringUpdatedeviation toverifyFlowStatisticsduring the make before break update test case.