Skip to content

Improve ext_proc code coverage#44926

Open
etruong42 wants to merge 6 commits into
envoyproxy:mainfrom
etruong42:extproccov
Open

Improve ext_proc code coverage#44926
etruong42 wants to merge 6 commits into
envoyproxy:mainfrom
etruong42:extproccov

Conversation

@etruong42
Copy link
Copy Markdown
Contributor

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

@repokitteh-read-only
Copy link
Copy Markdown

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #44926 was opened by etruong42.

see: more, trace.

@etruong42
Copy link
Copy Markdown
Contributor Author

/coverage

@repokitteh-read-only
Copy link
Copy Markdown

Coverage for this Pull Request will be rendered here:

https://storage.googleapis.com/envoy-cncf-pr/44926/coverage/index.html

For comparison, current coverage on main branch is here:

https://storage.googleapis.com/envoy-cncf-postsubmit/main/coverage/index.html

The coverage results are (re-)rendered each time the CI Envoy/Checks (coverage) job completes.

🐱

Caused by: a #44926 (comment) was created by @etruong42.

see: more, trace.

@etruong42 etruong42 force-pushed the extproccov branch 2 times, most recently from e89daf0 to 71026e1 Compare May 8, 2026 01:35
Signed-off-by: Ethan Truong <ethantruong@google.com>
@etruong42 etruong42 force-pushed the extproccov branch 2 times, most recently from b64c310 to 75365e9 Compare May 8, 2026 21:49
Signed-off-by: Ethan Truong <ethantruong@google.com>
etruong42 added 2 commits May 10, 2026 12:18
Signed-off-by: Ethan Truong <ethantruong@google.com>
Signed-off-by: Ethan Truong <ethantruong@google.com>
@repokitteh-read-only
Copy link
Copy Markdown

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

🐱

Caused by: #44926 was ready_for_review by etruong42.

see: more, trace.

@etruong42
Copy link
Copy Markdown
Contributor Author

/assign yanjunxiang-google

@repokitteh-read-only
Copy link
Copy Markdown

etruong42 is not allowed to assign users.

🐱

Caused by: a #44926 (comment) was created by @etruong42.

see: more, trace.

@tyxia
Copy link
Copy Markdown
Member

tyxia commented May 11, 2026

/gemini review

@etruong42
Copy link
Copy Markdown
Contributor Author

/assign yanjunxiang-google

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 significantly enhances test coverage for the external processing filters across both HTTP and network implementations. It introduces accessor classes to facilitate testing of private members and adds several new test files and cases covering logging, response processing, and various edge cases such as timeouts and invalid headers. The review feedback highlights a logic error in a test case where a tautological assertion prevents proper verification of disallowed mode overrides.

Comment thread test/extensions/filters/http/ext_proc/filter_test.cc Outdated
etruong42 added 2 commits May 11, 2026 17:58
Signed-off-by: Ethan Truong <ethantruong@google.com>
Signed-off-by: Ethan Truong <ethantruong@google.com>
Copy link
Copy Markdown
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

@tyxia
Copy link
Copy Markdown
Member

tyxia commented May 20, 2026

/gemini review

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 significantly improves the test coverage for the external processing (ext_proc) filters in both HTTP and network contexts. Key changes include the addition of accessor classes to facilitate testing of private members, new unit tests for logging info and response processors, and expanded test cases covering edge cases such as timeouts, error handling, and header mutations. Additionally, coverage thresholds in test/coverage.yaml have been updated to reflect these improvements. I have no feedback to provide as there were no review comments to assess.

Copy link
Copy Markdown
Member

@tyxia tyxia 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

@tyxia
Copy link
Copy Markdown
Member

tyxia commented May 20, 2026

pass to @yanjunxiang-google

@yanjunxiang-google
Copy link
Copy Markdown
Contributor

Please split the PR into two PRs with one for HTTP ext_proc, and one for network ext_proc as they are seperate filters.

@etruong42
Copy link
Copy Markdown
Contributor Author

@yanjunxiang-google - I have split up this PR

Network ext_proc PR: #45196
HTTP ext_proc PR: #45197

Thanks!

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