Repository navigation
http: test a StopAll filter that buffers the body until trailers - #49396
Merged
Merged
Conversation
Follow-up to envoyproxy#49151, which fixed the body dropped by a filter that resumes from StopAllIteration, buffers the replayed body and continues from its trailers callback. Add that stop kind to the FilterManagerTrailersInvariantTest matrix. Run the integration test without async host resolution: the router otherwise stops all iteration too and replays the buffered body itself, so the test passed without the fix. Signed-off-by: Boteng Yao <[email protected]>
Without async host resolution the router takes the body straight from the filter, so the test fails if the filter drops it. With it the router is stopped on all frames when the filter continues and replays the body itself, which the second case covers. Signed-off-by: Boteng Yao <[email protected]>
botengyao
marked this pull request as ready for review
November 18, 2026 15:27
paul-r-gall
approved these changes
Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Commit Message: http: test a StopAll filter that buffers the body until trailers
Additional Description:
Test-only follow-up to #49151, which fixed the body dropped by a filter that resumes from StopAllIteration, buffers the replayed body and continues from its trailers callback. It closes two gaps in the tests for that fix.
StopAllDecoderFilterRebuffersBodyUntilRequestTrailers: It runs with async host resolution, so the router stops all iteration on headers too and replays the shared request buffer itself when it resumes, which delivers the body the filter failed to forward. The test now runs in both modes. Without async host resolution the upstream gets an empty body without the fix and the full body with it. The async case is kept as...AsyncLband covers the path where the router is stopped as well.FilterManagerTrailersInvariantTesthas no stop kind for this case.StopAllThenBufferDataadds 24 cases (both directions, every add phase and stopper position).Risk Level: Low (test only)
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A
AI Usage: AI helped write and run these tests; I reviewed the change.