Skip to content

Adding additional delay between two check request#5426

Open
Sagrohi wants to merge 2 commits into
openconfig:mainfrom
Sagrohi:sagrohi/gnoi-upgrade-fix
Open

Adding additional delay between two check request#5426
Sagrohi wants to merge 2 commits into
openconfig:mainfrom
Sagrohi:sagrohi/gnoi-upgrade-fix

Conversation

@Sagrohi
Copy link
Copy Markdown

@Sagrohi Sagrohi commented May 5, 2026

As per the recent commit to this file, an additional checkreq RPC call has been introduced alongside the existing one. According to the Juniper implementation guidelines, there must be a minimum delay of 120 seconds between two RPC calls; therefore, an extra delay of 120 seconds has been added.

@Sagrohi Sagrohi requested a review from a team as a code owner May 5, 2026 18:39
@google-cla
Copy link
Copy Markdown

google-cla Bot commented May 5, 2026

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.

@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 introduces a mandatory 120-second delay between consecutive RPC calls within the debug file copying test. This update ensures the test suite remains compliant with Juniper implementation guidelines, preventing potential issues that may arise from rapid successive requests.

Highlights

  • Compliance with Juniper Guidelines: Added a 120-second delay between RPC calls to adhere to vendor-specific implementation requirements.
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.

@OpenConfigBot
Copy link
Copy Markdown

OpenConfigBot commented May 5, 2026

Pull Request Functional Test Report for #5426 / 9d5247a

Virtual Devices

Device Test Test Documentation Job Raw Log
Arista cEOS status
gNOI-5.3: Copying Debug Files
Cisco 8000E status
gNOI-5.3: Copying Debug Files
Cisco XRd status
gNOI-5.3: Copying Debug Files
Juniper ncPTX status
gNOI-5.3: Copying Debug Files
Nokia SR Linux status
gNOI-5.3: Copying Debug Files
Openconfig Lemming status
gNOI-5.3: Copying Debug Files

Hardware Devices

Device Test Test Documentation Raw Log
Arista 7808 status
gNOI-5.3: Copying Debug Files
Cisco 8808 status
gNOI-5.3: Copying Debug Files
Juniper PTX10008 status
gNOI-5.3: Copying Debug Files
Nokia 7250 IXR-10e status
gNOI-5.3: Copying Debug Files

Help

Copy link
Copy Markdown
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 introduces a 120-second delay in the TestCopyingDebugFiles test. The review feedback suggests making this delay conditional for Juniper platforms to avoid unnecessary wait times on other vendors, ensuring more efficient test execution.

time.Sleep(30 * time.Second)
}

time.Sleep(120 * time.Second)
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

The 120-second delay is applied globally to all vendors, which unnecessarily increases test execution time for non-Juniper platforms. Since this requirement is specific to Juniper implementation guidelines, the sleep should be gated by a vendor check to maintain efficiency for other platforms.

Note that while time.Sleep is permissible in this repository when waiting for a Device Under Test (DUT) to stabilize after an operation (as opposed to polling for a condition), it should be applied conditionally when the requirement is vendor-specific.

	if dut.Vendor() == ondatra.JUNIPER {
		t.Logf("Waiting 120s between Healthz RPC calls for Juniper...")
		time.Sleep(120 * time.Second)
	}
References
  1. time.Sleep is permissible in tests when waiting for a Device Under Test (DUT) to stabilize after an operation, as opposed to polling for a condition.

@Sagrohi
Copy link
Copy Markdown
Author

Sagrohi commented May 6, 2026

@googlebot I signed it!

@Sagrohi Sagrohi force-pushed the sagrohi/gnoi-upgrade-fix branch from b239a44 to 3f29d37 Compare May 6, 2026 10:57
@Sagrohi Sagrohi force-pushed the sagrohi/gnoi-upgrade-fix branch from ddba8a4 to 45ba7c9 Compare May 6, 2026 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants