Repository navigation
TRANSCEIVER-109: Add 400ZR / 800ZR operational mode transition and inventory persistence test - #6218
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 implements the Ondatra test automation for TRANSCEIVER-109, which validates the operational mode transitions and inventory persistence of 400ZR and 800ZR coherent optics. The changes include the core test logic, necessary platform-specific deviations, and supporting infrastructure to handle transceiver state, inventory snapshots, and optical telemetry across multiple vendors. 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
|
There was a problem hiding this comment.
Code Review
This pull request introduces a new end-to-end test suite for 400ZR/800ZR operational mode transition and inventory persistence (TRANSCEIVER-109), along with supporting configuration and telemetry helper functions. The review feedback highlights several critical issues: compilation errors in internal/cfgplugins/interface.go due to mismatched argument counts in updateOpticalChannelConfig calls, a blocking synchronous ygnmi.Watch call in StartOnChangeInventoryWatcher that will cause the test to hang, and a style guide violation where configuration is pushed before registering cleanup operations with t.Cleanup.
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request implements the TRANSCEIVER-109 test suite for 400ZR/800ZR operational mode transitions and inventory persistence, along with associated helper functions in cfgplugins, components, and transceiver telemetry packages. The review feedback highlights three critical issues: a blocking call to ygnmi.Watch in StartOnChangeInventoryWatcher that should be run in a background goroutine, the need to use a deferred function to guarantee traffic is stopped on early exit or failure, and a bug in the Arista deviation path of OpticalChannelComponentFromPortWithRetry where a failed transceiver lookup results in an invalid optical channel name instead of a test failure.
…ventory persistence test code
… telemetry validation
35cf562 to
79f6853
Compare
Implements the Ondatra test automation for TRANSCEIVER-109 (400ZR / 800ZR Operational Mode Transition and Inventory Persistence), along with metadata platform exceptions, testregistry entry, and supporting cfgplugins/transceiver telemetry helpers.