-
Notifications
You must be signed in to change notification settings - Fork 197
Do not merge test frr encap #4966
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
/fptest virtual |
Summary of ChangesHello @dracazacula, 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 primarily addresses a logical error in VRF policy creation for IPv6 configurations and refines error reporting in a BGP test case. Additionally, it updates test metadata to acknowledge a specific platform deviation related to ISIS interface settings, ensuring more accurate test execution and reporting. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. 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
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request includes a bug fix in VRF policy creation, an update to a test file, and a metadata update. My review focuses on two key issues. First, a change in encap_frr_with_reencap_vrf_test.go introduces a critical bug by replacing t.Fatal with t.Errorf, which will lead to a panic. I've recommended reverting this. Second, while a bug was correctly fixed in vrfpolicy.go, the surrounding logic remains susceptible to a panic. I've provided a suggestion to make the code more robust.
| if !ok { | ||
| fptest.LogQuery(t, "BGP reported state", nbrPath.State(), gnmi.Get(t, dut, nbrPath.State())) | ||
| t.Fatal("No BGP neighbor formed") | ||
| t.Errorf("No BGP neighbor formed") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing t.Fatal to t.Errorf will cause a panic on line 624 if the BGP neighbor fails to establish (!ok). When !ok, the status variable can be nil, and calling status.Val() will result in a nil pointer dereference. t.Fatal was correct here as it stops test execution, preventing the panic. Please revert this change to use t.Fatal to ensure the test exits correctly on failure.
| t.Errorf("No BGP neighbor formed") | |
| t.Fatal("No BGP neighbor formed") |
Pull Request Test Coverage Report for Build 20662280754Details
💛 - Coveralls |
236962b to
d3130e0
Compare
|
/fptest virtual |
d3130e0 to
293c6a4
Compare
|
/fptest virtual |
293c6a4 to
b2aa1ea
Compare
|
/fptest virtual |
b2aa1ea to
5b20cf5
Compare
|
/fptest virtual |
5b20cf5 to
336eba2
Compare
|
/fptest virtual |
8747709 to
c3653a2
Compare
|
/fptest virtual |
c3653a2 to
e9af621
Compare
|
/fptest virtual |
e9af621 to
0e12ac4
Compare
0e12ac4 to
03ed13b
Compare
|
/fptest virtual |
No description provided.