Skip to content

Remove BalsaParser runtime flag. #40134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jul 17, 2025
Merged

Conversation

paul-r-gall
Copy link
Contributor

Commit Message: Remove BalsaParser/HttpParser runtime flag.
Additional Description: Removes the option to use HttpParser instead of BalsaParser
Risk Level: Low; Balsa parser has been the default for a significant amount of time.
Testing: unit, integration

Signed-off-by: Paul Ogilby <pgal@google.com>
Copy link

CC @envoyproxy/runtime-guard-changes: FYI only for changes made to (source/common/runtime/runtime_features.cc).
CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/).
envoyproxy/api-shepherds assignee is @markdroth
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

🐱

Caused by: #40134 was opened by paul-r-gall.

see: more, trace.

Signed-off-by: Paul Ogilby <pgal@google.com>
@paul-r-gall
Copy link
Contributor Author

/assign @ggreenway

Copy link
Member

@ggreenway ggreenway left a comment

Choose a reason for hiding this comment

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

Thanks for doing this!

/wait

TEST_P(Http1ClientConnectionImplTest,
ShouldDumpParsedAndPartialHeadersWithoutAllocatingMemoryIfProcessingHeaders) {
if (parser_impl_ == Http1ParserImpl::BalsaParser) {
// TODO(#21245): Re-enable this test for BalsaParser.
Copy link
Member

Choose a reason for hiding this comment

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

Should this test be kept to keep the TODO?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Realized that the memory allocation part was totally fine, but the information dumped is a little off.

Signed-off-by: Paul Ogilby <pgal@google.com>
Signed-off-by: Paul Ogilby <pgal@google.com>
Signed-off-by: Paul Ogilby <pgal@google.com>
ggreenway
ggreenway previously approved these changes Jul 9, 2025
Copy link
Member

@ggreenway ggreenway left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Paul Ogilby <pgal@google.com>
@markdroth
Copy link
Contributor

/lgtm api

Signed-off-by: Paul Ogilby <pgal@google.com>
Copy link

CC @envoyproxy/coverage-shephards: FYI only for changes made to (test/coverage.yaml).
envoyproxy/coverage-shephards assignee is @RyanTheOptimist

🐱

Caused by: #40134 was synchronize by paul-r-gall.

see: more, trace.

Signed-off-by: Paul Ogilby <pgal@google.com>
Copy link
Contributor

@RyanTheOptimist RyanTheOptimist left a comment

Choose a reason for hiding this comment

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

Coverage LGTM

@RyanTheOptimist
Copy link
Contributor

Looks like it needs a format update
/wait

@yanavlasov
Copy link
Contributor

LGTM. Will wait for CI to become green.

/wait

Signed-off-by: Paul Ogilby <pgal@google.com>
Signed-off-by: Paul Ogilby <pgal@google.com>
Copy link
Contributor

@adisuissa adisuissa left a comment

Choose a reason for hiding this comment

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

/lgtm api

@abeyad
Copy link
Contributor

abeyad commented Jul 17, 2025

/retest

Copy link
Contributor

@adisuissa adisuissa left a comment

Choose a reason for hiding this comment

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

LGTM'ing after format fix.

Copy link
Member

@botengyao botengyao left a comment

Choose a reason for hiding this comment

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

thanks!

@@ -11,6 +11,8 @@ directories:
source/common/crypto: 95.5
source/common/event: 98.3 # Emulated edge events guards don't report LCOV
source/common/filesystem/posix: 96.4 # FileReadToEndNotReadable fails in some env; createPath can't test all failure branches.
source/common/http: 96.5
source/common/http/http1: 93.4 # To be Femoved when http_inspector_use_balsa_parser is retired.
Copy link
Member

Choose a reason for hiding this comment

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

s/Femoved/removed?

Copy link
Member

Choose a reason for hiding this comment

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

We should fix, but I want to get this merged before release.

Copy link
Member

Choose a reason for hiding this comment

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

#40267 to fix this spelling

@ggreenway ggreenway merged commit 0d84e1a into envoyproxy:main Jul 17, 2025
26 checks passed
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.

8 participants