Skip to content

Conversation

@jukie
Copy link
Contributor

@jukie jukie commented Oct 11, 2025

What type of PR is this?

What this PR does / why we need it:
Carries over changes from stale PR #6508 with linting and full implementation of GrpcTimeoutHeaderMax will handle in a follow-up

Which issue(s) this PR fixes:

Fixes #5446

Release Notes: Yes

shiavm006 and others added 4 commits October 10, 2025 22:10
Add StreamTimeout field to HTTPTimeout struct in BackendTrafficPolicy to enable
configuration of timeouts specifically for gRPC streaming requests.

Key changes:
1. Add StreamTimeout field to api/v1alpha1/timeout_types.go
2. Add StreamTimeout field to internal/ir/xds.go HTTPTimeout
3. Update buildClusterSettingsTimeout to process StreamTimeout
4. Update XDS translation to use StreamTimeout for gRPC routes (IsHTTP2)
5. Add getEffectiveTimeout function to prioritize StreamTimeout for gRPC routes

When StreamTimeout is set to 0s, timeouts are disabled for streaming requests.
This resolves the 15-second timeout limitation for gRPC streaming calls.

Signed-off-by: Shivam Mittal <[email protected]>
Update CRDs, Helm charts, and other generated files to include
the new StreamTimeout field in HTTPTimeout structs.

Signed-off-by: Shivam Mittal <[email protected]>
Signed-off-by: shiavm006 <[email protected]>
@jukie jukie changed the title Grpc streaming timeout feat: gRPC streaming timeout Oct 11, 2025
@codecov
Copy link

codecov bot commented Oct 11, 2025

Codecov Report

❌ Patch coverage is 80.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.04%. Comparing base (0efe168) to head (35e8284).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
internal/gatewayapi/clustersettings.go 62.50% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7194      +/-   ##
==========================================
+ Coverage   72.02%   72.04%   +0.02%     
==========================================
  Files         230      230              
  Lines       33405    33420      +15     
==========================================
+ Hits        24059    24079      +20     
+ Misses       7594     7591       -3     
+ Partials     1752     1750       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jukie jukie marked this pull request as ready for review October 11, 2025 05:16
@jukie jukie requested a review from a team as a code owner October 11, 2025 05:16
@jukie jukie requested a review from a team October 11, 2025 05:16
Signed-off-by: jukie <[email protected]>
@jukie jukie force-pushed the grpc-streaming-timeout branch from e1ccce4 to 297892f Compare October 11, 2025 16:00
@jukie
Copy link
Contributor Author

jukie commented Oct 11, 2025

/retest

@jukie jukie force-pushed the grpc-streaming-timeout branch from 056651d to 506b768 Compare October 15, 2025 04:17
@jukie jukie requested review from a team and zirain October 15, 2025 04:17
Signed-off-by: jukie <[email protected]>
@jukie
Copy link
Contributor Author

jukie commented Oct 15, 2025

/retest

arkodg
arkodg previously approved these changes Oct 24, 2025
Copy link
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

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

LGTM thanks

@arkodg arkodg requested review from a team October 24, 2025 21:50
@arkodg arkodg added this to the v1.6.0-rc.1 Release milestone Oct 24, 2025
arkodg
arkodg previously approved these changes Oct 24, 2025
@jukie
Copy link
Contributor Author

jukie commented Oct 24, 2025

/retest

@jukie jukie requested review from a team October 24, 2025 23:43
Copy link
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

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

LGTM thanks

@arkodg arkodg requested review from a team October 27, 2025 18:50
@jukie
Copy link
Contributor Author

jukie commented Oct 27, 2025

/retest

1 similar comment
@jukie
Copy link
Contributor Author

jukie commented Oct 27, 2025

/retest

@jukie
Copy link
Contributor Author

jukie commented Oct 29, 2025

/retest

@jukie jukie enabled auto-merge (squash) October 29, 2025 00:11
@arkodg arkodg disabled auto-merge October 29, 2025 00:22
@arkodg arkodg merged commit 21cbec5 into envoyproxy:main Oct 29, 2025
32 of 33 checks passed
@jukie jukie deleted the grpc-streaming-timeout branch October 29, 2025 00:58
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.

Set timeout for streaming rpc linked to a GRPCRoute

5 participants