Skip to content

Conversation

@dracazacula
Copy link
Contributor

do not merge

@dracazacula dracazacula requested a review from a team as a code owner December 29, 2025 12:17
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @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, explicitly marked as "do not merge", temporarily disables a significant portion of the TestGribiDecap function in vrf_policy_driven_te_test.go. This is achieved by commenting out five specific test cases and their related logging statements. This action suggests the author is likely in the process of debugging, refactoring, or isolating particular test scenarios for development purposes, rather than intending a permanent alteration to the test suite.

Highlights

  • Test Case Disablement: Several test cases, specifically 'Test-2' through 'Test-6', within the TestGribiDecap function in vrf_policy_driven_te_test.go have been commented out.
  • Logging Statements Disabled: Associated t.Log statements related to VRF selection policy configurations have also been commented out alongside the disabled test cases.

🧠 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 Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@OpenConfigBot
Copy link

Pull Request Functional Test Report for #4963 / effffdf

Virtual Devices

Device Test Test Documentation Job Raw Log
Arista cEOS status
TE-17.1: VRF selection policy driven TE
6ab3827a Log
Cisco 8000E status
TE-17.1: VRF selection policy driven TE
7ad243ba Log
Cisco XRd status
TE-17.1: VRF selection policy driven TE
5d937b8e Log
Juniper ncPTX status
TE-17.1: VRF selection policy driven TE
099572e5 Log
Nokia SR Linux status
TE-17.1: VRF selection policy driven TE
c1a1c3a9 Log
Openconfig Lemming status
TE-17.1: VRF selection policy driven TE
d9753c91 Log

Hardware Devices

Device Test Test Documentation Raw Log
Arista 7808 status
TE-17.1: VRF selection policy driven TE
Cisco 8808 status
TE-17.1: VRF selection policy driven TE
Juniper PTX10008 status
TE-17.1: VRF selection policy driven TE
Nokia 7250 IXR-10e status
TE-17.1: VRF selection policy driven TE

Help

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a 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 comments out several tests within TestGribiDecap. Given the 'do not merge' title, this is likely for temporary debugging. My review provides a suggestion for a better practice of temporarily disabling tests using t.Skip(), which improves visibility in test reports compared to commenting out code. If the tests are meant to be permanently disabled, they should be removed instead.

Comment on lines +2456 to +2480
// t.Run("Test-2: match on source, protocol and DSCP, VRF_DECAP hit -> VRF_ENCAP_A miss -> DEFAULT", func(t *testing.T) {
// testGribiDecapMatchSrcProtoDSCP(ctx, t, dut, args)
// })

t.Run("Test-3: Mixed Prefix Decap gRIBI Entries", func(t *testing.T) {
testGribiDecapMixedLenPref(ctx, t, dut, args)
})
// t.Run("Test-3: Mixed Prefix Decap gRIBI Entries", func(t *testing.T) {
// testGribiDecapMixedLenPref(ctx, t, dut, args)
// })

t.Log("Delete vrf selection policy W and Apply vrf selectioin policy C")
configureVrfSelectionPolicyC(t, dut)
// t.Log("Delete vrf selection policy W and Apply vrf selectioin policy C")
// configureVrfSelectionPolicyC(t, dut)

t.Run("Test-4: Tunneled traffic with no decap", func(t *testing.T) {
testTunnelTrafficNoDecap(ctx, t, dut, args)
})
// t.Run("Test-4: Tunneled traffic with no decap", func(t *testing.T) {
// testTunnelTrafficNoDecap(ctx, t, dut, args)
// })

t.Log("Delete vrf selection policy C and Apply vrf selectioin policy W")
configureVrfSelectionPolicyW(t, dut)
// t.Log("Delete vrf selection policy C and Apply vrf selectioin policy W")
// configureVrfSelectionPolicyW(t, dut)

t.Run("Test-5: Match on default term and send to default VRF", func(t *testing.T) {
testTunnelTrafficMatchDefaultTerm(ctx, t, dut, args)
})
// t.Run("Test-5: Match on default term and send to default VRF", func(t *testing.T) {
// testTunnelTrafficMatchDefaultTerm(ctx, t, dut, args)
// })

t.Run("Test-6: Decap then encap", func(t *testing.T) {
testTunnelTrafficDecapEncap(ctx, t, dut, args)
})
// t.Run("Test-6: Decap then encap", func(t *testing.T) {
// testTunnelTrafficDecapEncap(ctx, t, dut, args)
// })
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This change comments out several sub-tests. While this is acceptable for a temporary 'do-not-merge' pull request, this approach should not be merged. If these tests are intended to be permanently disabled, the code should be removed entirely. If they are temporarily disabled for a mergeable PR, consider using t.Skip() inside the test functions to make the intent clearer in test logs. For example:

t.Run("Test-2: ...", func(t *testing.T) {
    t.Skip("Skipping test temporarily for debugging purposes.")
    testGribiDecapMatchSrcProtoDSCP(ctx, t, dut, args)
})

This provides better visibility in test reports by explicitly marking tests as skipped.

@dracazacula
Copy link
Contributor Author

/fptest virtual

@coveralls
Copy link

Pull Request Test Coverage Report for Build 20572688893

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 10.03%

Totals Coverage Status
Change from base Build 20561567024: 0.0%
Covered Lines: 2227
Relevant Lines: 22203

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants