Skip to content

Increase payload size and adjust gRPC message size limit for Acctz-4.2#5503

Open
youssefyamoutyy wants to merge 2 commits into
openconfig:mainfrom
b4firex:acctz-record-payload-truncation-pr5022
Open

Increase payload size and adjust gRPC message size limit for Acctz-4.2#5503
youssefyamoutyy wants to merge 2 commits into
openconfig:mainfrom
b4firex:acctz-record-payload-truncation-pr5022

Conversation

@youssefyamoutyy
Copy link
Copy Markdown
Contributor

The PR incorporates PR 5022 fix by increasing the test payload size and setting a larger MaxCallRecvMsgSize for the Accountz record subscription. That lets the test receive the oversized, and later truncated record response. grpc: received message larger than max was seen.

Adding closed PR as reference: #5022

@youssefyamoutyy youssefyamoutyy requested a review from a team as a code owner May 25, 2026 18:56
@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 addresses a gRPC message size limit error encountered during the Acctz record subscription test. By increasing the test payload size and adjusting the gRPC receive message limit, the test is now able to successfully process the oversized, truncated record responses as intended.

Highlights

  • Payload Size Increase: Increased the test payload size by tripling the number of network instances generated to ensure the test correctly triggers the truncation scenario.
  • gRPC Configuration: Updated the gRPC client configuration to set a larger MaxCallRecvMsgSize (45MB) to accommodate the oversized record responses.
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 25, 2026

Pull Request Functional Test Report for #5503 / e66c3ab

Virtual Devices

Device Test Test Documentation Job Raw Log
Arista cEOS status
ACCTZ-4.2: Record Payload Truncation
Cisco 8000E status
ACCTZ-4.2: Record Payload Truncation
Cisco XRd status
ACCTZ-4.2: Record Payload Truncation
Juniper ncPTX status
ACCTZ-4.2: Record Payload Truncation
Nokia SR Linux status
ACCTZ-4.2: Record Payload Truncation
Openconfig Lemming status
ACCTZ-4.2: Record Payload Truncation

Hardware Devices

Device Test Test Documentation Raw Log
Arista 7808 status
ACCTZ-4.2: Record Payload Truncation
Cisco 8808 status
ACCTZ-4.2: Record Payload Truncation
Juniper PTX10008 status
ACCTZ-4.2: Record Payload Truncation
Nokia 7250 IXR-10e status
ACCTZ-4.2: Record Payload Truncation

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 increases the loop limit for generating network instances to 150 to create a larger payload and configures the gRPC subscription with a larger maximum message receive size. A review comment points out that increasing the loop limit causes the generated IP addresses to fall into public IP ranges, violating the repository's network assignment guidelines.

ocRoot := &oc.Root{}

for i := 0; i < 50; i++ {
for i := 0; i < 150; i++ {
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

By increasing the loop limit to 150, the generated next-hop IP addresses 192.%d.2.1 (on line 53) will fall into ranges like 192.150.2.1, which are public IP addresses and violate the repository's network assignment guidelines. According to the Repository Style Guide (Section 1, Network Assignments): Use RFC 5737 blocks (192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24) or 100.64.0.0/10, 198.18.0.0/15. Please update the IP generation logic to use a compliant range, such as 198.18.i.1 (since 198.18.0.0/15 can easily accommodate 150 subnets).

References
  1. IPv4: Use RFC 5737 blocks (192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24) or 100.64.0.0/10, 198.18.0.0/15. (link)

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.

4 participants