Skip to content

changing the timeout of the binding files - #6018

Open
abhijit-dhar wants to merge 1 commit into
openconfig:mainfrom
open-traffic-generator:binding-file-timeout-change
Open

changing the timeout of the binding files#6018
abhijit-dhar wants to merge 1 commit into
openconfig:mainfrom
open-traffic-generator:binding-file-timeout-change

Conversation

@abhijit-dhar

Copy link
Copy Markdown
Contributor

The OTG and gNMI timeout values specified in the sample binding files are currently too low to accommodate real-world deployment and test scenarios. We recommend increasing the maximum timeout to 9 minutes (540 seconds).

The existing 30-second timeout may not be sufficient under normal operating conditions and can result in misleading timeout failures, obscure error messages, and false alarms. A longer timeout will improve reliability and reduce the likelihood of reporting transient delays as test failures.

@abhijit-dhar
abhijit-dhar requested a review from a team as a code owner September 10, 2026 15:07
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, 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 updates the configuration for OTG and gNMI connections within the sample binding files. By extending the timeout threshold, the changes ensure that test environments can better accommodate real-world deployment scenarios and avoid unnecessary failures caused by short timeout limits.

Highlights

  • Timeout Adjustment: Increased the OTG and gNMI timeout values from 30 seconds to 540 seconds in sample binding files.
  • Reliability Improvement: Enhanced system stability by preventing transient delays from triggering false timeout failures during test execution.
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 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 .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 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

  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.

@google-cla

google-cla Bot commented Sep 10, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@OpenConfigBot

Copy link
Copy Markdown

Pull Request Functional Test Report for #6018 / 386c1bd

No tests identified for validation.

Help

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

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 increases the OTG and gNMI request timeouts from 30 seconds to 540 seconds in both topologies/otgdut_2.binding and topologies/otgdut_4.binding. The reviewer recommends reducing these timeouts to a more balanced value of 120 seconds to prevent excessively long test execution delays and CI/CD bottlenecks if services hang or become unreachable.

Comment thread topologies/otgdut_2.binding
target: "ixia-c-hostname:50051" # Change this to the Ixia-c-gnmi server endpoint.
skip_verify: true
timeout: 30
timeout: 540

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Increasing the gNMI request timeout to 540 seconds (9 minutes) is excessively high. If a gNMI operation hangs, waiting 9 minutes will block the test suite and waste CI/CD resources. A timeout of 120 seconds is typically sufficient to handle transient delays while ensuring the test fails within a reasonable timeframe.

Suggested change
timeout: 540
timeout: 120

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I insists the change because for most cases the API will return within a few seconds but for genuinely costly operations such as large learned info or stats , we need more time to respond, so a large timeout avoids false negatives and subsequent failures for subsequent tests

Comment thread topologies/otgdut_4.binding
Comment thread topologies/otgdut_4.binding
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